fix:
业务分类为整机且是否赠品为是的,随机资料机型台数不要加上
This commit is contained in:
parent
fd96b0f480
commit
1b2f3a89ce
@ -1536,6 +1536,7 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
|
||||
yem_es_materialinfo.set("yem_amt", yem_amt);
|
||||
yem_es_materialinfo.set("yem_locamt", yem_amt.multiply(newbill.getBigDecimal("yem_exrate")));
|
||||
qty_s = BigDecimalUtils.add(qty_s, yem_qty, 10);
|
||||
if (!yem_es_materialinfo.getString("yem_businesssort").equals("Z") || !yem_es_materialinfo.getBoolean("yem_ifgift")) {
|
||||
DynamicObject yem_productmodel = yem_es_materialinfo.getDynamicObject("yem_productmodel");
|
||||
if (yem_productmodel != null) {
|
||||
DynamicObject yem_products = yem_productmodel.getDynamicObject("yem_products");
|
||||
@ -1550,6 +1551,7 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
|
||||
|
||||
}
|
||||
|
||||
|
||||
// if ("Z".equals(key)) {
|
||||
DynamicObjectCollection yem_multiconfig_s = yem_es_materialinfo.getDynamicObjectCollection("yem_multiconfig");
|
||||
for (int j = 0; j < yem_multiconfig_s.size(); j++) {
|
||||
@ -1565,6 +1567,7 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
|
||||
yem_retrofitting.set("yem_qtyamt", yem_qtyamt);
|
||||
}
|
||||
// }
|
||||
}
|
||||
} else {
|
||||
yem_es_materialinfo_s.remove(i--);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user