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.
Patch attached for 2.1 branch.
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?
For handling Manual asi on production, We created separate ticket and we handling posting there.
Please note that attached updated patch Idempiere-2579_1 with all changes.
This also contain changes you suggested in your code review.
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?