Search in sources :

Example 6 with UnitCostCalcLine

use of com.axelor.apps.production.db.UnitCostCalcLine in project axelor-open-suite by axelor.

the class UnitCostCalculationServiceImpl method updateUnitCosts.

public void updateUnitCosts(UnitCostCalculation unitCostCalculation) throws AxelorException {
    for (UnitCostCalcLine unitCostCalcLine : unitCostCalculation.getUnitCostCalcLineList()) {
        updateUnitCosts(unitCostCalcLineRepository.find(unitCostCalcLine.getId()));
        JPA.clear();
    }
    updateStatusProductCostPriceUpdated(unitCostCalculationRepository.find(unitCostCalculation.getId()));
}
Also used : UnitCostCalcLine(com.axelor.apps.production.db.UnitCostCalcLine)

Aggregations

UnitCostCalcLine (com.axelor.apps.production.db.UnitCostCalcLine)6 BillOfMaterial (com.axelor.apps.production.db.BillOfMaterial)3 Product (com.axelor.apps.base.db.Product)2 BigDecimal (java.math.BigDecimal)2 CostSheet (com.axelor.apps.production.db.CostSheet)1 CostSheetLine (com.axelor.apps.production.db.CostSheetLine)1 DMSFile (com.axelor.dms.db.DMSFile)1 MetaFiles (com.axelor.meta.MetaFiles)1 MetaFile (com.axelor.meta.db.MetaFile)1 Transactional (com.google.inject.persist.Transactional)1 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1 InputStream (java.io.InputStream)1 ArrayList (java.util.ArrayList)1