Recalcing Qty Available on SO lines
See attached plugin.
I want to change the calculation for the Qty Available column to also include backorders on unprocessed orders.
I'm confident my calculation is sound, but after I've added a line, the Qty Avail still gets displayed as the Jiwa default value - which is only backorders from processed orders, i.e. data in the IN_OnBackorder table.
I suspect I'm not hooking the correct event. I've tried both
salesOrderForm.SalesOrder.SalesOrderLines.Added
and
salesOrderForm.SalesOrder.SalesOrderLineAdded.
Suggestions?
I want to change the calculation for the Qty Available column to also include backorders on unprocessed orders.
I'm confident my calculation is sound, but after I've added a line, the Qty Avail still gets displayed as the Jiwa default value - which is only backorders from processed orders, i.e. data in the IN_OnBackorder table.
I suspect I'm not hooking the correct event. I've tried both
salesOrderForm.SalesOrder.SalesOrderLines.Added
and
salesOrderForm.SalesOrder.SalesOrderLineAdded.
Suggestions?