Browse Source

优化设置物料编号值的写法

suntg 7 years ago
parent
commit
59b3d748ff

+ 2 - 4
src/main/java/com/uas/platform/b2b/erp/model/PurchaseAPBillDetail.java

@@ -151,10 +151,8 @@ public class PurchaseAPBillDetail {
 		apBillItem.setOrderDetno(abd_orderdetno);
 		apBillItem.setPdinoutNo(abd_pdinoutno);
 		apBillItem.setPrice(abd_price);
-		ProductInfo product = new ProductInfo();
-		product.setCode(abd_prodcode);
-		product.setEnUU(SystemSession.getUser().getEnterprise().getUu());
-		apBillItem.setProduct(product);
+		// 设置product对象,被删除2018年7月23日14:12:44
+		apBillItem.setProductCode(abd_prodcode);
 		apBillItem.setQty(abd_qty);
 		apBillItem.setRemark(abd_remark);
 		apBillItem.setTaxAmount(abd_taxamount);