差旅默认明细的费用项目
This commit is contained in:
parent
3205530f81
commit
cda2891109
|
@ -78,12 +78,13 @@ public class ConvertBillPlugln extends AbstractConvertPlugIn implements Plugin {
|
|||
DynamicObjectCollection entry = contract.getDynamicObjectCollection("entry");
|
||||
entry.get(i).set("e_actamt",multiply); //付款单实付
|
||||
entry.get(i).set("e_payableamt",loanamount); //应付
|
||||
entry.get(i).set("e_payablelocamt", loanamount);
|
||||
|
||||
entry.get(i).set("e_unsettledlocalamt", multiply);
|
||||
entry.get(i).set("e_unsettledlocalamt.", multiply);
|
||||
entry.get(i).set("e_unlockamt", multiply);
|
||||
entry.get(i).set("e_unsettledamt", multiply);
|
||||
entry.get(i).set("e_payableamt", multiply);
|
||||
entry.get(i).set("e_payablelocamt", multiply);
|
||||
// entry.get(i).set("e_payableamt", multiply);
|
||||
// entry.get(i).set("e_payablelocamt", multiply);
|
||||
entry.get(i).set("e_localamt", multiply);
|
||||
|
||||
sfTatalo = sfTatalo.add(multiply);
|
||||
|
|
|
@ -38,6 +38,8 @@ public class GenerateSKClickPlugln extends AbstractBillPlugIn implements Plugin
|
|||
public void afterDoOperation(AfterDoOperationEventArgs afterDoOperationEventArgs) {
|
||||
// super.afterDoOperation(afterDoOperationEventArgs);
|
||||
if("shkd_shoukuan".equals(afterDoOperationEventArgs.getOperateKey())){
|
||||
|
||||
DynamicObject currency = (DynamicObject)this.getModel().getValue("currency");
|
||||
DynamicObject temp2 = BusinessDataServiceHelper.loadSingle("bd_supplier",
|
||||
new QFilter("number", QFilter.equals, "2020071139634629").toArray());
|
||||
String name = temp2.getString("name");
|
||||
|
@ -67,6 +69,13 @@ public class GenerateSKClickPlugln extends AbstractBillPlugIn implements Plugin
|
|||
sk.set("payeraccount", bankaccount);//payeraccount 银行账号
|
||||
sk.set("payeraccountname", accountname);//payeraccountname 账户名称
|
||||
sk.set("payerbank", bank);//payerbank 开户银行
|
||||
sk.set("oriaccnotpayamount",expenseamount); //未付金额
|
||||
sk.set("accnotpayamount",expenseamount); //未付金额
|
||||
sk.set("accnotpayamount",expenseamount); //未付金额
|
||||
sk.set("accexchangerate",BigDecimal.ONE); //未付金额
|
||||
sk.set("receiveamount",expenseamount); //未付金额
|
||||
sk.set("accountcurrency",expenseamount); //未付金额
|
||||
sk.set("accountcurrency",currency); //未付金额
|
||||
}
|
||||
this.getView().updateView("accountentry");
|
||||
this.getView().showTipNotification("生成收款明细成功!");
|
||||
|
@ -87,4 +96,14 @@ public class GenerateSKClickPlugln extends AbstractBillPlugIn implements Plugin
|
|||
public void itemClick(ItemClickEvent evt) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterCreateNewData(EventObject e) {
|
||||
super.afterCreateNewData(e);
|
||||
String shkd_billtypefield = this.getModel().getValue("shkd_billtypefield").toString();
|
||||
if("er_publicreimbursebill_BT_03".equals(shkd_billtypefield)){
|
||||
this.getModel().setValue("ispaybyhead",true);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue