Hi,
It is doable!
And it can be auto committed according to the expiration date.
But you have to do lots of customization for this.
The SelectOrderItems.php must be revised to handle the committed quantity, and you have to rework the DefineCartClass.php to handle the different kinds of situation such as users add, reduce, delete the items selected etc.
And a reserved serial no items tables have to be established for items reserved. At the same time, you have to calculate item available which is quite compliate scenario. And you have to rewrite the serial items lot no handling scripts to meet those changes.
Best regards!
Exson
(01-25-2018, 03:21 AM)HDeriauFF Wrote: Hi
Could someone point me in the right direction to automatically inject in the cart a lot number for each line?
What I'm trying to achieve: when landing on ConfirmDispatch_Invoice.php, I want the "this dispatch quantity" being equal to "ordered", acting like I would have already selected my batches if I had clicked on the "enter batch/roll/lot#" link, depleting batches with closest expiration date first.
Doable? Would save countless hours since our orders have up to 150 lines!
Thank you for your input!