推送凭证(付款)__核算维度可配置优化_工具类(seq优化)

--s
This commit is contained in:
weiyunlong 2025-06-27 11:41:45 +08:00
parent 595d59dd59
commit 5023e6d81b
1 changed files with 14 additions and 9 deletions

View File

@ -30,8 +30,7 @@ import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
import static shjh.jhzj7.fi.fi.utils.SapUtils.getAsstacttypeMap;
import static shjh.jhzj7.fi.fi.utils.SapUtils.sap_accounVoucher;
import static shjh.jhzj7.fi.fi.utils.SapUtils.*;
/**
* 付款单推送SAP凭证操作插件
@ -214,13 +213,13 @@ public class PaybillPushSapOperation extends AbstractOperationServicePlugIn impl
DynamicObject entry = entries.get(i);
String entrydc = (String) entry.get("entrydc");//分录方向(1.借方,-1.贷方)
if ("1".equals(entrydc)) {
String id = getVoucherEntrySeq(entry.getLong("id"));
//判断完借方,然后判断I下标,i==0,Hang ->001 i==1,Hang ->002
// if (i == 0) {
// jsonObject.put("BUZEI", "001");//todo:行编号_凭证明细序号0001
// } else if (i == 1) {
// jsonObject.put("BUZEI", "002");
// }
jsonObject.put("BUZEI", "001");//todo:行编号_凭证明细序号0001
if ("1".equals(id)) {
jsonObject.put("BUZEI", "001");//行编号_凭证明细序号
} else if ("2".equals(id)) {
jsonObject.put("BUZEI", "002");
}
DynamicObject account = entry.getDynamicObject("account");//科目
//核算维度(弹性域)_客户
if (null != account) {
@ -418,7 +417,13 @@ public class PaybillPushSapOperation extends AbstractOperationServicePlugIn impl
DynamicObject account = entry.getDynamicObject("account");//科目
if (null != account) {
// jsonObject.put("BUZEI", entry.get("seq"));//行编号_凭证明细序号
jsonObject.put("BUZEI", "001");//行编号_凭证明细序号
String id = getVoucherEntrySeq(entry.getLong("id"));
//判断完借方,然后判断I下标,i==0,Hang ->001 i==1,Hang ->002
if ("1".equals(id)) {
jsonObject.put("BUZEI", "001");//行编号_凭证明细序号
} else if ("2".equals(id)) {
jsonObject.put("BUZEI", "002");
}
jsonObject.put("HKONT", account.getString("number")); // 总账科目_科目(凭证分录account)
jsonObject.put("UMSKZ", JhzjUtils.getUMSKZ(account.getString("number")));//特殊总账标识
}