付款申请单 候补发票
This commit is contained in:
parent
9319acb1c4
commit
aeaa780f5f
|
@ -190,7 +190,12 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
|
||||||
this.getModel().setValue("oftaxinvoiceamount", invoice.getBigDecimal("totaloftaxamount"), rowIndex);
|
this.getModel().setValue("oftaxinvoiceamount", invoice.getBigDecimal("totaloftaxamount"), rowIndex);
|
||||||
this.getModel().setValue("unapplyinvoftaxamt", invoice.getBigDecimal("unapplyamount"), rowIndex);
|
this.getModel().setValue("unapplyinvoftaxamt", invoice.getBigDecimal("unapplyamount"), rowIndex);
|
||||||
this.getModel().setValue("unapplyinvtax", invoice.getBigDecimal("unapplyinvtax"), rowIndex);
|
this.getModel().setValue("unapplyinvtax", invoice.getBigDecimal("unapplyinvtax"), rowIndex);
|
||||||
this.getModel().setValue("applyinvoftaxamt", invoice.getBigDecimal("unapplyamount"), rowIndex);
|
if(rows.size() == 1) {
|
||||||
|
this.setSingleApplyinvoftaxamt();
|
||||||
|
}else {
|
||||||
|
this.getModel().setValue("applyinvoftaxamt", invoice.getBigDecimal("unapplyamount"), rowIndex);
|
||||||
|
}
|
||||||
|
|
||||||
invArr[index++] = invoice;
|
invArr[index++] = invoice;
|
||||||
invoice.set("isclaimed", true);
|
invoice.set("isclaimed", true);
|
||||||
int upCurIndex = this.getModel().getEntryCurrentRowIndex("entryentity");
|
int upCurIndex = this.getModel().getEntryCurrentRowIndex("entryentity");
|
||||||
|
@ -200,7 +205,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
|
||||||
invoice.set("connecttype", "contract");
|
invoice.set("connecttype", "contract");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setSingeapplyinvoftaxamt();
|
|
||||||
|
|
||||||
// this.setApplyAmtByInvoice(this.getModel().getEntryCurrentRowIndex("entryentity"));
|
// this.setApplyAmtByInvoice(this.getModel().getEntryCurrentRowIndex("entryentity"));
|
||||||
log.info("SupplementInvoiceBillPlugin:发票保存");
|
log.info("SupplementInvoiceBillPlugin:发票保存");
|
||||||
|
@ -209,7 +214,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
|
||||||
this.setEnableByInvoice1();
|
this.setEnableByInvoice1();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setSingeapplyinvoftaxamt() {
|
private void setSingleApplyinvoftaxamt() {
|
||||||
int rowCount = this.getModel().getEntryRowCount("subentryentity");//获取子单据分录行数
|
int rowCount = this.getModel().getEntryRowCount("subentryentity");//获取子单据分录行数
|
||||||
log.info("SupplementInvoiceBillPlugin:子单据体分录行数:"+rowCount);
|
log.info("SupplementInvoiceBillPlugin:子单据体分录行数:"+rowCount);
|
||||||
EntryGrid grid = (EntryGrid)this.getView().getControl("entryentity");//获取单据体控件-合同付款信息
|
EntryGrid grid = (EntryGrid)this.getView().getControl("entryentity");//获取单据体控件-合同付款信息
|
||||||
|
@ -218,9 +223,10 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
|
||||||
DynamicObject rowEntity = this.getModel().getEntryRowEntity("entryentity", entity_rows[0]);//获取对应行的单据体
|
DynamicObject rowEntity = this.getModel().getEntryRowEntity("entryentity", entity_rows[0]);//获取对应行的单据体
|
||||||
BigDecimal applyoftaxamount = rowEntity.getBigDecimal("thisapplyoftax");//获取单据体对应的 本次申请金额
|
BigDecimal applyoftaxamount = rowEntity.getBigDecimal("thisapplyoftax");//获取单据体对应的 本次申请金额
|
||||||
log.info("SupplementInvoiceBillPlugin:选中的单据体的申请金额数量:" + applyoftaxamount);
|
log.info("SupplementInvoiceBillPlugin:选中的单据体的申请金额数量:" + applyoftaxamount);
|
||||||
if(rowCount==1){
|
this.getModel().setValue("applyinvoftaxamt", applyoftaxamount,0);
|
||||||
this.getModel().setValue("applyinvoftaxamt", applyoftaxamount,0);
|
// if(rowCount==1){
|
||||||
}
|
// this.getModel().setValue("applyinvoftaxamt", applyoftaxamount,0);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setEnableByInvoice1() {
|
protected void setEnableByInvoice1() {
|
||||||
|
|
Loading…
Reference in New Issue