fix price update from discounted to untaxed when changing quantity

This commit is contained in:
zakaria.hachem
2024-10-20 11:20:44 +01:00
parent 742ec3e75e
commit 9c1cf0bab0

View File

@@ -67,10 +67,12 @@ public class StockMoveLineController {
return;
}
}
stockMoveLine = Beans.get(StockMoveLineService.class).compute(stockMoveLine, stockMove);
response.setValue("unitPriceUntaxed", stockMoveLine.getUnitPriceUntaxed());
response.setValue("unitPriceTaxed", stockMoveLine.getUnitPriceTaxed());
response.setValue("companyUnitPriceUntaxed", stockMoveLine.getCompanyUnitPriceUntaxed());
if(!(stockMove.getPartner() != stockMove.getCompany().getPartner() || stockMove.getTypeSelect()== StockMoveRepository.TYPE_INCOMING)) {
stockMoveLine = Beans.get(StockMoveLineService.class).compute(stockMoveLine, stockMove);
response.setValue("unitPriceUntaxed", stockMoveLine.getUnitPriceUntaxed());
response.setValue("unitPriceTaxed", stockMoveLine.getUnitPriceTaxed());
response.setValue("companyUnitPriceUntaxed", stockMoveLine.getCompanyUnitPriceUntaxed());
}
}
public void setProductInfo(ActionRequest request, ActionResponse response) {