Add auto generate lot flag to Attribute Set. When check, lot is auto generated for MR, Production and Physical Inventory.
Fix production costing and posting - when costing level is batch, perform roll up instead of variance calculation.
Fix reversal of production and -ve production.
Fix posting of Shipment, Production and Inventory transaction - when costing level is batch and there's no ASI at Line ( Attribute Set > Exclude - M_InOutLine and Sales Transaction=Y, Production Line and Inventory Line), cost should derived from *LineMA ( Product + ASI ).
Support batch level standard cost adjustment for product with zero on hand ( new product ).
Always disallow negative on hand for Product with Instance Attribute.
Fix Material Policy - Sort by DateMPolicy+ASI_ID instead of just DateMPolicy
hi in case 1750, endProductId get from MProductionPlan so your patch still conflict.
i added my patch
, please help to review.
other issue. createTransactions now don't use mustBeStocked = true anymore.
so can remove it and bellow block of code
Hi below code will rise cast exception when have plugin implement IModelFactory for table M_ProductionLine.
i'm don't correct remember test case, but productionLine can be null
do same idea but don't meet above issue.