fix price update from discounted to untaxed when changing quantity
This commit is contained in:
@@ -67,10 +67,12 @@ public class StockMoveLineController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stockMoveLine = Beans.get(StockMoveLineService.class).compute(stockMoveLine, stockMove);
|
if(!(stockMove.getPartner() != stockMove.getCompany().getPartner() || stockMove.getTypeSelect()== StockMoveRepository.TYPE_INCOMING)) {
|
||||||
response.setValue("unitPriceUntaxed", stockMoveLine.getUnitPriceUntaxed());
|
stockMoveLine = Beans.get(StockMoveLineService.class).compute(stockMoveLine, stockMove);
|
||||||
response.setValue("unitPriceTaxed", stockMoveLine.getUnitPriceTaxed());
|
response.setValue("unitPriceUntaxed", stockMoveLine.getUnitPriceUntaxed());
|
||||||
response.setValue("companyUnitPriceUntaxed", stockMoveLine.getCompanyUnitPriceUntaxed());
|
response.setValue("unitPriceTaxed", stockMoveLine.getUnitPriceTaxed());
|
||||||
|
response.setValue("companyUnitPriceUntaxed", stockMoveLine.getCompanyUnitPriceUntaxed());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProductInfo(ActionRequest request, ActionResponse response) {
|
public void setProductInfo(ActionRequest request, ActionResponse response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user