付款申请单 候补发票
This commit is contained in:
parent
bb309726b6
commit
e383a443af
|
@ -65,15 +65,16 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
|
|||
}
|
||||
int rowIndex = this.getModel().getEntryCurrentRowIndex("entryentity");
|
||||
DynamicObject rowEntity = this.getModel().getEntryRowEntity("entryentity", rowIndex);//获取对应行的单据体
|
||||
// BigDecimal applyoftaxamount = rowEntity.getBigDecimal("thisapplyoftax");//获取单据体对应的 本次申请金额⑫
|
||||
// BigDecimal totalAmount = this.getSum1("subentryentity", "applyinvoftaxamt");//算出子单据申请金额总和
|
||||
// if(applyoftaxamount.compareTo(totalAmount)!=0){
|
||||
// this.getView().showTipNotification(
|
||||
// "合同付款信息的 本次申请金额\n" +
|
||||
// " 不等于 合同进项发票的 本次申请金额总和 ,请重写填写合同进项发票的申请金额");
|
||||
// this.getView().showTipNotification("发票保存失败!");
|
||||
// args.setCancel(true);
|
||||
// }
|
||||
BigDecimal applyoftaxamount = rowEntity.getBigDecimal("thisapplyoftax");//获取单据体对应的 本次申请金额⑫
|
||||
BigDecimal totalAmount = this.getSum1("subentryentity", "applyinvoftaxamt");//算出子单据申请金额总和
|
||||
if(applyoftaxamount.compareTo(totalAmount)!=0){
|
||||
this.getView().showTipNotification(
|
||||
"合同付款信息的 本次申请金额\n" +
|
||||
" 不等于 合同进项发票的 本次申请金额总和 ,请重写填写合同进项发票的申请金额");
|
||||
this.getView().showTipNotification("发票保存失败!");
|
||||
args.setCancel(true);
|
||||
return;
|
||||
}
|
||||
// DynamicObject[] invArr = new DynamicObject[rowCount];//用于存储发票
|
||||
|
||||
DynamicObjectCollection subentryentitys = rowEntity.getDynamicObjectCollection("subentryentity");
|
||||
|
|
Loading…
Reference in New Issue