Batch level costing do not work with LineMA


For supporting multiple ASI per line, we added support for manual attribute tab entry.
This works great for storage operation but do not work for posting when batch level costing use.

Need to create docline per ASI instead of per line in inout, inventory and movement to support same.




Deepak Pansheriya
April 15, 2015, 1:28 PM

Patch attached for 2.1 branch.

Carlos Ruiz
April 15, 2015, 4:49 PM

Thanks , my peer review:

  • some times the costing level is based on product category, so I think the line

    must looke like

    but I haven't tested - m_as is private at this moment - and I don't know if the details are loaded per each accounting schema when multiple accounting schemas are used - debug is required for such case

  • also I think Doc_Production and Doc_Movement requires similar changes?

Deepak Pansheriya
September 22, 2015, 10:25 AM

For handling Manual asi on production, We created separate ticket and we handling posting there.

Deepak Pansheriya
October 6, 2015, 10:30 AM


Please note that attached updated patch Idempiere-2579_1 with all changes.
This also contain changes you suggested in your code review.

Deepak Pansheriya
June 10, 2016, 7:31 AM

I am working to make above patch compatible with latest code.
1. Can you please answer me, Should we add this fix to 3.1 or development?
2. For posting, Should we given preference to line ASI or LineMA ASI? For example if ASI may presents on both LineMA and on Line. If ASI are different then should we use LineMA to post first?


Carlos Ruiz


Deepak Pansheriya


Tested By



Fix versions

Affects versions