1.生产商城调整
This commit is contained in:
parent
418a0e73c8
commit
9a4e5b5cce
|
|
@ -120,9 +120,9 @@ public class YdthPurInConvertPlugin extends AbstractConvertPlugIn implements Plu
|
|||
String registrationCode = jsonMap.get("registrationCode") != null ? jsonMap.get("registrationCode").toString() : null; // 注册证号
|
||||
String licenceCode = jsonMap.get("licenceCode") != null ? jsonMap.get("licenceCode").toString() : null; // 生产许可证号
|
||||
String producer = jsonMap.get("producer") != null ? jsonMap.get("producer").toString() : null; // 生产厂商
|
||||
DynamicObject tqq9_goodspackage = BusinessDataServiceHelper.loadSingle("tqq9_goodspackage", new QFilter[]{new QFilter("tqq9_mater.number", QCP.equals, uniqueCode).and("tqq9_isauto", QCP.equals, true)});
|
||||
// DynamicObject tqq9_goodspackage = BusinessDataServiceHelper.loadSingle("tqq9_goodspackage", new QFilter[]{new QFilter("tqq9_mater.number", QCP.equals, uniqueCode).and("tqq9_isauto", QCP.equals, true)});
|
||||
DynamicObject tqq9_registration = BusinessDataServiceHelper.loadSingle("tqq9_registration", new QFilter[]{new QFilter("number", QCP.equals, registrationCode)});
|
||||
DynamicObject tqq9_proxyandfactory = BusinessDataServiceHelper.loadSingle("tqq9_proxyandfactory", new QFilter[]{new QFilter("number", QCP.equals, producer)});
|
||||
// DynamicObject tqq9_proxyandfactory = BusinessDataServiceHelper.loadSingle("tqq9_proxyandfactory", new QFilter[]{new QFilter("number", QCP.equals, producer)});
|
||||
|
||||
BigDecimal qty = entry.getBigDecimal("qty");//原数量
|
||||
BigDecimal amountandtax = entry.getBigDecimal("amountandtax");//折扣后价税合计
|
||||
|
|
@ -151,7 +151,7 @@ public class YdthPurInConvertPlugin extends AbstractConvertPlugIn implements Plu
|
|||
// 第一次直接赋值
|
||||
entry.set("qty", quantity);
|
||||
entry.set("baseqty", quantity);
|
||||
entry.set("tqq9_goods", tqq9_goodspackage);
|
||||
// entry.set("tqq9_goods", tqq9_goodspackage);
|
||||
entry.set("producedate", manufactureDate);
|
||||
entry.set("expirydate", expirationDate);
|
||||
entry.set("lotnumber", batch);
|
||||
|
|
@ -161,7 +161,7 @@ public class YdthPurInConvertPlugin extends AbstractConvertPlugIn implements Plu
|
|||
entry.set("tqq9_wmsdetailid", wmsDetailId);
|
||||
entry.set("tqq9_licenseno", licenceCode);
|
||||
entry.set("tqq9_registration", tqq9_registration);
|
||||
entry.set("tqq9_proxyandfactory", tqq9_proxyandfactory);
|
||||
entry.set("tqq9_proxyandfactory", producer);
|
||||
DynamicObjectCollection billentry_lk = entry.getDynamicObjectCollection("billentry_lk");
|
||||
billentry_lk.clear();
|
||||
} else {
|
||||
|
|
@ -187,7 +187,7 @@ public class YdthPurInConvertPlugin extends AbstractConvertPlugIn implements Plu
|
|||
|
||||
newEntry.set("qty", quantity);
|
||||
newEntry.set("baseqty", quantity);
|
||||
newEntry.set("tqq9_goods", tqq9_goodspackage);
|
||||
// newEntry.set("tqq9_goods", tqq9_goodspackage);
|
||||
newEntry.set("producedate", manufactureDate);
|
||||
newEntry.set("expirydate", expirationDate);
|
||||
newEntry.set("lotnumber", batch);
|
||||
|
|
@ -197,7 +197,7 @@ public class YdthPurInConvertPlugin extends AbstractConvertPlugIn implements Plu
|
|||
newEntry.set("tqq9_wmsdetailid", wmsDetailId);
|
||||
newEntry.set("tqq9_licenseno", licenceCode);
|
||||
newEntry.set("tqq9_registration", tqq9_registration);
|
||||
newEntry.set("tqq9_proxyandfactory", tqq9_proxyandfactory);
|
||||
newEntry.set("tqq9_proxyandfactory", producer);
|
||||
DynamicObjectCollection billentry_lk = newEntry.getDynamicObjectCollection("billentry_lk");
|
||||
billentry_lk.clear();
|
||||
// 处理完新entry后的逻辑(比如加入集合或其他操作)
|
||||
|
|
|
|||
Loading…
Reference in New Issue