入库单优化
This commit is contained in:
parent
ca1c54c379
commit
376e843391
|
|
@ -558,6 +558,9 @@ public class MaterialInBillEditPluginExt extends AbstractEcmaBillPlugin implemen
|
|||
BigDecimal oftaxamount = EcNumberHelper.toBigDecimal(this.getModel().getValue("oftaxamount", i));
|
||||
BigDecimal notaxamount = oftaxamount.divide(BigDecimal.ONE.add(taxrate.divide(BigDecimal.valueOf(100L))), 10, RoundingMode.HALF_UP);
|
||||
BigDecimal qty = EcNumberHelper.toBigDecimal(this.getModel().getValue("qty", i));
|
||||
if (qty.compareTo(BigDecimal.ZERO) == 0) {
|
||||
return;
|
||||
}
|
||||
BigDecimal price = notaxamount.divide(qty, 10, RoundingMode.HALF_UP);
|
||||
this.getModel().setValue("price", price, i);//入库单价
|
||||
BigDecimal taxprice = oftaxamount.divide(qty, 10, RoundingMode.HALF_UP);
|
||||
|
|
|
|||
Loading…
Reference in New Issue