fix:变更单的折扣金额 不需要触发值更新
This commit is contained in:
parent
751c6fbe97
commit
0324937d60
@ -1607,31 +1607,32 @@ public class ClientUtils {
|
|||||||
Boolean ifGift = (Boolean) model.getValue("yem_ifgift", i);
|
Boolean ifGift = (Boolean) model.getValue("yem_ifgift", i);
|
||||||
if (!ifGift) {
|
if (!ifGift) {
|
||||||
BigDecimal saFobAmount = (BigDecimal) model.getValue("yem_safobamount", i);
|
BigDecimal saFobAmount = (BigDecimal) model.getValue("yem_safobamount", i);
|
||||||
|
//20/40*10
|
||||||
BigDecimal diaAmt = saFobAmount.divide(amount, RoundingMode.HALF_UP).multiply(fundPoolAmt).setScale(2, RoundingMode.HALF_UP);
|
BigDecimal diaAmt = saFobAmount.divide(amount, RoundingMode.HALF_UP).multiply(fundPoolAmt).setScale(2, RoundingMode.HALF_UP);
|
||||||
if (i == seq) {
|
if (i == seq) {
|
||||||
model.beginInit();
|
model.beginInit();
|
||||||
view.updateView("yem_disamt", i);
|
view.updateView("yem_disamt", i);
|
||||||
|
model.endInit();
|
||||||
if (!model.getDataEntityType().getName().equals("yem_es_xsalesorder")) {
|
if (!model.getDataEntityType().getName().equals("yem_es_xsalesorder")) {
|
||||||
model.setValue("yem_disamt", fundPoolAmt.subtract(fundPoolAmtSum), i);
|
model.setValue("yem_disamt", fundPoolAmt.subtract(fundPoolAmtSum), i);
|
||||||
}
|
}
|
||||||
model.endInit();
|
|
||||||
} else {
|
} else {
|
||||||
fundPoolAmtSum = fundPoolAmtSum.add(diaAmt);
|
fundPoolAmtSum = fundPoolAmtSum.add(diaAmt);
|
||||||
model.beginInit();
|
model.beginInit();
|
||||||
if (!model.getDataEntityType().getName().equals("yem_es_xsalesorder")) {
|
if (!model.getDataEntityType().getName().equals("yem_es_xsalesorder")) {
|
||||||
model.setValue("yem_disamt", diaAmt, i);
|
model.setValue("yem_disamt", diaAmt, i);
|
||||||
|
model.endInit();
|
||||||
view.updateView("yem_disamt", i);
|
view.updateView("yem_disamt", i);
|
||||||
}
|
}
|
||||||
model.endInit();
|
|
||||||
}
|
}
|
||||||
// System.out.printf("++++++++-- i = %s -- seq = %s -- yem_disamt = %s%n", i, seq, model.getValue("yem_disamt", i));
|
// System.out.printf("++++++++-- i = %s -- seq = %s -- yem_disamt = %s%n", i, seq, model.getValue("yem_disamt", i));
|
||||||
} else {
|
} else {
|
||||||
model.beginInit();
|
model.beginInit();
|
||||||
if (!model.getDataEntityType().getName().equals("yem_es_xsalesorder")) {
|
if (!model.getDataEntityType().getName().equals("yem_es_xsalesorder")) {
|
||||||
model.setValue("yem_disamt", null, i);
|
model.setValue("yem_disamt", null, i);
|
||||||
|
model.endInit();
|
||||||
view.updateView("yem_disamt", i);
|
view.updateView("yem_disamt", i);
|
||||||
}
|
}
|
||||||
model.endInit();
|
|
||||||
}
|
}
|
||||||
ClientUtils.countAfterFrontAmt(model, i);//计算折扣后销售金额
|
ClientUtils.countAfterFrontAmt(model, i);//计算折扣后销售金额
|
||||||
ClientUtils.addSaAmountTk(model, i);//销售金额(价格条款)结算币别
|
ClientUtils.addSaAmountTk(model, i);//销售金额(价格条款)结算币别
|
||||||
|
Loading…
Reference in New Issue
Block a user