收款凭证传输客户/供应商修改

This commit is contained in:
李贵强 2025-04-16 10:52:48 +08:00
parent ab52a9c81e
commit 2a32872d31
1 changed files with 13 additions and 7 deletions

View File

@ -314,21 +314,27 @@ public class RecPushVoucherOperation extends AbstractOperationServicePlugIn impl
//查找核算维度
DynamicObjectCollection checkItems = account.getDynamicObjectCollection("checkitementry");
if (checkItems!=null&&checkItems.size()!=0){
//是否已经反写
boolean isMark=false;
for (DynamicObject checkItem : checkItems) {
//是否已经反写
boolean isMark=false;
//核算维度
String assTactItemNum = checkItem.getString("asstactitem.number");
if (assTactItemNum!=null){
switch (assTactItemNum){
case "0001"://客户
String assTactItemName = checkItem.getString("asstactitem.name");
if (assTactItemName!=null){
switch (assTactItemName){
case "客户":
case "客户编码":
IT_ITEMS.put("KUNNR", cusOrSupNumber);
isMark=true;
break;
case "0005"://供应商
case "供应商":
IT_ITEMS.put("LIFNR", cusOrSupNumber);
isMark=true;
break;
}
}
if (isMark){
break;
}
}
}
}