Enhancement of Batch Level Costing

Description

  • 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

Environment

None

Activity

Show:
Hiep Lq
June 27, 2017, 7:16 PM

hi in case 1750, endProductId get from MProductionPlan so your patch still conflict.
i added my patch

, please help to review.

Hiep Lq
June 27, 2017, 7:19 PM

other issue. createTransactions now don't use mustBeStocked = true anymore.
so can remove it and bellow block of code

Heng Sin Low
July 4, 2017, 9:28 AM

https://bitbucket.org/idempiere/idempiere/commits/a8388a8

  • Fixed checking of Reversal_ID not working when productionplan is use.

Hiep Lq
July 4, 2017, 10:47 AM

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.

Heng Sin Low
July 4, 2017, 12:07 PM

https://bitbucket.org/idempiere/idempiere/commits/25ed4b5

  • Use safer approach for production reversal checking.

Fixed

Assignee

Heng Sin Low

Reporter

Heng Sin Low

Labels

None

Tested By

None

Components

Fix versions

Priority

Major