浏览代码

面辅料102采购发票调整

huxy 2 天之前
父节点
当前提交
8fda39e3eb

+ 6 - 5
jeecg-boot-module-system/src/main/java/org/jeecg/modules/splfi/service/impl/SyPackingListFabricServiceImpl.java

@@ -2971,11 +2971,12 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 			List<Object> autoIds=new ArrayList<>();
 			for (SyPackingListFabricItem item : listFabricItems){
 				JSONObject  jsonObject=new JSONObject();
-				if(item.getMasterMetering().equalsIgnoreCase("KG")){
-					jsonObject.put("IQUANTITY",item.getNetWeight());//净重
-				}else{
-					jsonObject.put("IQUANTITY",item.getActualDeclaredQuantity());//实际报关数量
-				}
+//				if(item.getMasterMetering().equalsIgnoreCase("KG")){
+//					jsonObject.put("IQUANTITY",item.getNetWeight());//净重
+//				}else{
+//					jsonObject.put("IQUANTITY",item.getActualDeclaredQuantity());//实际报关数量
+//				}
+				jsonObject.put("IQUANTITY",item.getActualDeclaredQuantity());//实际报关数量
 				jsonObject.put("CINVCODE",item.getInventoryCode());//存货编码
 //				jsonObject.put("CWHCODE",syPackingListFabricItemMapper.getVencode(item.getSupplier()));//获取仓库编码
 				String cwhcode="PT0005";//辅料仓