Force serialised stock to use FIFO and not prompt for serial
Here's a little breakout to force serialised stock to just use FIFO to get stock, and not prompt the user to select the serial numbers, when selling serialised stock on the sales order entry form.
EDIT : Altered the above code to include the "Sales Order Line Added Before Quantity Set Breakout" - this is required for the above to work in 06.05.13. We changed the order in which some breakouts were fired in 06.05.13 to fix a bug to do with discounting (Bug 7138) - and this altered the behavior - so the introduction of the Sales Order Line Added Before Quantity Set Breakout was to keep the existing breakouts working.
- Code: Select all
' Sales Order Line Changed Breakout
' =================================
SalesOrderLineObject.SalesOrderSerialStockSelectionType = 1 ' e_SalesOrderSerialStockSelectionFIFO
End Sub
' Sales Order Line Added Breakout
' =================================
SalesOrderLineObject.SalesOrderSerialStockSelectionType = 1 ' e_SalesOrderSerialStockSelectionFIFO
End Sub
' Sales Order Line Added Before Quantity Set Breakout
' =============================================
SalesOrderLineObject.SalesOrderSerialStockSelectionType = 1 ' e_SalesOrderSerialStockSelectionFIFO
End Sub
EDIT : Altered the above code to include the "Sales Order Line Added Before Quantity Set Breakout" - this is required for the above to work in 06.05.13. We changed the order in which some breakouts were fired in 06.05.13 to fix a bug to do with discounting (Bug 7138) - and this altered the behavior - so the introduction of the Sales Order Line Added Before Quantity Set Breakout was to keep the existing breakouts working.