拉取SAP新增凭证抬头文本

--s
This commit is contained in:
weiyunlong 2025-05-23 12:07:27 +08:00
parent a4ab06b57d
commit 2ea5f0077d
4 changed files with 26 additions and 1 deletions

View File

@ -240,6 +240,7 @@ public class SappzFormPlugin extends AbstractFormPlugin {
String uuid = it_list.getString("XBLNR");
this.getModel().setValue("shjh_uuid", uuid, i);//单据号
this.getModel().setValue("shjh_bktxt", it_list.getString("BKTXT"), i);//凭证抬头文本
/**
* 员工借款单 A
* 通用报销单 B
@ -701,6 +702,9 @@ public class SappzFormPlugin extends AbstractFormPlugin {
//凭证类型
DynamicObject shjh_pztype = (DynamicObject) this.getModel().getValue("shjh_pztype", selectRow);
ap_payapply.set("shjh_documenttype", shjh_pztype);
//凭证抬头文本
String shjh_bktxt = (String) this.getModel().getValue("shjh_bktxt", selectRow);
ap_payapply.set("shjh_voucherheadertext", shjh_bktxt);
//SAP凭证来源
//单据号
String uuid = (String) this.getModel().getValue("shjh_uuid", selectRow);

View File

@ -0,0 +1,15 @@
package shjh.jhzj7.fi.fi.plugin.form;
import kd.bos.form.events.AfterDoOperationEventArgs;
import kd.bos.form.plugin.AbstractFormPlugin;
public class VoucherFormPlugin extends AbstractFormPlugin {
@Override
public void afterDoOperation(AfterDoOperationEventArgs afterDoOperationEventArgs) {
super.afterDoOperation(afterDoOperationEventArgs);
if (afterDoOperationEventArgs.getOperateKey().equals("voucheruncheck")) {
this.getView().invokeOperation("refresh");
}
}
}

View File

@ -351,6 +351,10 @@ public class QuerySapCreatePayApplyTask extends AbstractTask {
//表头申请金额
ap_payapply.set("applyamount", amount);
//凭证抬头文本
String shjh_bktxt = it_list.getString("BKTXT");
ap_payapply.set("shjh_voucherheadertext", shjh_bktxt);
//付款类型:取值范围对公付款对私付款SAP科目编号1221020200 对私付款费控劳务人员报销单 对私付款其他均赋值为对公付款
if ("1221020200".equals(accountingsubject)) {
QFilter Q9 = new QFilter("name", QCP.equals, "对私付款");

View File

@ -551,7 +551,9 @@ public class ApplyAdjustBillControler {
}
String uuid = it_list.getString("XBLNR");//单据号
ap_payapply.set("shjh_fkdjbh", uuid);
//凭证抬头文本
String shjh_bktxt = it_list.getString("BKTXT");
ap_payapply.set("shjh_voucherheadertext", shjh_bktxt);
//部门
String department = it_list.getString("ZREQ_DEPT");
QFilter q8 = new QFilter("number", QCP.equals, department);