diff --git a/src/main/java/com/yem/wm/im/clientdemand/utils/ClientUtils.java b/src/main/java/com/yem/wm/im/clientdemand/utils/ClientUtils.java index 0069b12e..0c856942 100644 --- a/src/main/java/com/yem/wm/im/clientdemand/utils/ClientUtils.java +++ b/src/main/java/com/yem/wm/im/clientdemand/utils/ClientUtils.java @@ -1930,10 +1930,10 @@ public class ClientUtils { */ public static Map queryLogistics(IDataModel model, int idx, String expenseItemNo) { DynamicObject dataEntity = model.getDataEntity(true); - DynamicObject transportstyle = dataEntity.getDynamicObject("yem_transportstyle"); DynamicObjectCollection materialinfo = dataEntity.getDynamicObjectCollection("yem_es_materialinfo"); DynamicObject d = materialinfo.get(idx); DynamicObjectCollection ports = d.getDynamicObjectCollection("yem_port"); + DynamicObject transportstyle = d.getDynamicObject("yem_shippingmethod"); if (ports.isEmpty()) { return null; }