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