关联发票带出三个金额
This commit is contained in:
parent
5faa6da5ce
commit
d80b3b9e8a
|
@ -546,6 +546,23 @@ public class ReconPayreqFormPlugin extends AbstractFormPlugin implements BeforeF
|
|||
|
||||
}
|
||||
|
||||
private void updateAmt(){
|
||||
DynamicObject dataEntity = this.getModel().getDataEntity();
|
||||
DynamicObjectCollection invoiceentry = dataEntity.getDynamicObjectCollection("invoiceentry");
|
||||
if (invoiceentry!=null) {
|
||||
for (int i = 0; i < invoiceentry.size(); i++) {
|
||||
DynamicObject dynamicObject = invoiceentry.get(i);
|
||||
DynamicObject inventry_invoicebill = dynamicObject.getDynamicObject("inventry_invoicebill");
|
||||
BigDecimal notaxamt = inventry_invoicebill.getBigDecimal("notaxamt");
|
||||
BigDecimal tax = inventry_invoicebill.getBigDecimal("tax");
|
||||
BigDecimal amount = inventry_invoicebill.getBigDecimal("amount");
|
||||
dynamicObject.set("qeug_notaxamt",notaxamt);
|
||||
dynamicObject.set("qeug_tax",tax);
|
||||
dynamicObject.set("qeug_amount",amount);
|
||||
}
|
||||
this.getView().updateView("invoiceentry");
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void closedCallBack(ClosedCallBackEvent closedCallBackEvent) {
|
||||
super.closedCallBack(closedCallBackEvent);
|
||||
|
@ -581,7 +598,7 @@ public class ReconPayreqFormPlugin extends AbstractFormPlugin implements BeforeF
|
|||
invoiceEntry.set("inventry_haswriteoffamt", invoiceBill.getBigDecimal("writeoffamount"));
|
||||
invoiceAmt = invoiceAmt.add(invoiceBill.getBigDecimal("invoiceamount"));
|
||||
}
|
||||
|
||||
this.updateAmt();
|
||||
getModel().updateCache();
|
||||
getView().updateView("invoiceentry");
|
||||
|
||||
|
|
Loading…
Reference in New Issue