付款申请单已审核 重新添加发票
This commit is contained in:
parent
5d5725ee3f
commit
60ec78c0aa
|
@ -36,6 +36,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
|
|||
super.beforeDoOperation(args);
|
||||
FormOperate operate = (FormOperate)args.getSource();
|
||||
String key = operate.getOperateKey();//获取操作码
|
||||
log.info("SupplementInvoiceBillPlugin:操作码:"+key);
|
||||
if(StringUtil.equals("supplementInvoice", key)) {//候补发票
|
||||
log.info("SupplementInvoiceBillPlugin:点击候补发票");
|
||||
this.beforeNewSubEntry(args);
|
||||
|
@ -45,13 +46,15 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
|
|||
@Override
|
||||
public void propertyChanged(PropertyChangedArgs e) {
|
||||
super.propertyChanged(e);
|
||||
|
||||
log.info("SupplementInvoiceBillPlugin:发生变动的字段:"+e.getProperty().getName());
|
||||
String billId = this.getModel().getDataEntity().getPkValue().toString();
|
||||
log.info("SupplementInvoiceBillPlugin:主键名:"+billId);
|
||||
if (!billId.equals("0") && "C".equals(this.getModel().getValue("billstatus"))){//单据为已审核情况下
|
||||
String key = e.getProperty().getName();
|
||||
// int rowIndex = e.getChangeSet()[0].getRowIndex();
|
||||
log.info("SupplementInvoiceBillPlugin:发票申请金额发生变动,与合同的申请金额进行比较");
|
||||
// log.info("SupplementInvoiceBillPlugin:发票申请金额发生变动,与合同的申请金额进行比较");
|
||||
if(StringUtil.equals("applyinvoftaxamt", key)) {
|
||||
log.info("SupplementInvoiceBillPlugin:发票申请金额发生变动,与合同的申请金额进行比较");
|
||||
this.compareApplyInvoftaxamt();
|
||||
}
|
||||
}
|
||||
|
@ -72,7 +75,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
|
|||
|
||||
protected void beforeNewSubEntry(BeforeDoOperationEventArgs args) {
|
||||
String billId = this.getModel().getDataEntity().getPkValue().toString();
|
||||
|
||||
log.info("SupplementInvoiceBillPlugin:主键值:"+billId);
|
||||
if (!billId.equals("0") && "C".equals(this.getModel().getValue("billstatus"))) {//单据状态是否为审核
|
||||
log.info("SupplementInvoiceBillPlugin:单据已审核");
|
||||
EntryGrid grid = (EntryGrid)this.getView().getControl("entryentity");//获取单据体控件-合同付款信息
|
||||
|
@ -94,6 +97,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
|
|||
log.info("SupplementInvoiceBillPlugin:在进项发票基础资料中进项筛选");
|
||||
Object currencyId = this.getModel().getValue("currency_id");
|
||||
long orgId = ((DynamicObject)this.getModel().getValue("org")).getLong("id");
|
||||
log.info("SupplementInvoiceBillPlugin:orgId"+orgId);
|
||||
QFilter filter = new QFilter("org", "=", orgId);
|
||||
filter.and(new QFilter("isclaimed", "=", false));
|
||||
filter.and(new QFilter("billstatus", "=", "C"));
|
||||
|
@ -210,7 +214,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
|
|||
amount = amount == null ? BigDecimal.ZERO : amount;
|
||||
totalAmount = totalAmount.add(amount);
|
||||
}
|
||||
|
||||
log.info("SupplementInvoiceBillPlugin:发票申请总金额"+totalAmount);
|
||||
return totalAmount;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue