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

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"); DynamicObjectCollection checkItems = account.getDynamicObjectCollection("checkitementry");
if (checkItems!=null&&checkItems.size()!=0){ if (checkItems!=null&&checkItems.size()!=0){
//是否已经反写
boolean isMark=false;
for (DynamicObject checkItem : checkItems) { for (DynamicObject checkItem : checkItems) {
//是否已经反写
boolean isMark=false;
//核算维度 //核算维度
String assTactItemNum = checkItem.getString("asstactitem.number"); String assTactItemName = checkItem.getString("asstactitem.name");
if (assTactItemNum!=null){ if (assTactItemName!=null){
switch (assTactItemNum){ switch (assTactItemName){
case "0001"://客户 case "客户":
case "客户编码":
IT_ITEMS.put("KUNNR", cusOrSupNumber); IT_ITEMS.put("KUNNR", cusOrSupNumber);
isMark=true;
break; break;
case "0005"://供应商 case "供应商":
IT_ITEMS.put("LIFNR", cusOrSupNumber); IT_ITEMS.put("LIFNR", cusOrSupNumber);
isMark=true;
break; break;
} }
} }
if (isMark){
break;
}
} }
} }
} }