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