There already has the existing logic which is able to calculation the physical cost amount for the formula item, but for co-by product the logic is not implemented, so the solution is to implement it, similar as the exiting logic.
The details are:
The class inventMov_prod has a specialized version of the estimatedPhysicalValue method that in case of the use estimated cost price parameter checked goes to the prodCalcTrans and fetches the cost from there. Same approach can be implemented for formula and co/by products by adding similar logic to classes inventMov_ProdCoBy (which would go to the pmfprodcalctrans) and inventMov_Process (falling back to prodcalctrans).
Artikelnummer: 4016207 – Letzte Überarbeitung: 17.03.2017 – Revision: 1