fix:配件合同费用分摊
This commit is contained in:
parent
b721c88053
commit
9cc62548d9
@ -407,7 +407,8 @@ public class SalesOrderPJEdit extends AbstractBillPlugIn implements Plugin, Befo
|
||||
for (Integer i : seq) {
|
||||
BigDecimal safobamount = (BigDecimal) model.getValue("yem_safobamount", i);
|
||||
BigDecimal calc = BigDecimalUtils.div(safobamount, amount, 12).multiply(sumedamount).setScale(2, RoundingMode.HALF_UP);
|
||||
if (i == seq.size() - 1) {
|
||||
String yemBilltype = (String) model.getValue("yem_billtype.billno");
|
||||
if (i == seq.size() - 1 && ("yem_es_salesorder_nmpj".equals(yemBilltype)||"yem_es_salesorder_PJ".equals(yemBilltype))) {
|
||||
model.setValue("yem_totalamount", sumedamount.subtract(excludeLastRow), i);
|
||||
} else {
|
||||
model.setValue("yem_totalamount", calc, i);
|
||||
|
Loading…
Reference in New Issue
Block a user