fix:
1.生成随机资料时,只有业务分类为整机,且是否赠品为否的行生成
(cherry picked from commit 1d45f34ef8
)
This commit is contained in:
parent
cb5a3bbaca
commit
2e71eb7779
@ -816,16 +816,18 @@ public class SalesOrderPJEdit extends AbstractBillPlugIn implements Plugin, Befo
|
|||||||
DynamicObject productModel = (DynamicObject) model.getValue("yem_productmodel", i);
|
DynamicObject productModel = (DynamicObject) model.getValue("yem_productmodel", i);
|
||||||
if (YEM.isNotEmpty(materialClass) && YEM.isNotEmpty(productModel)) {
|
if (YEM.isNotEmpty(materialClass) && YEM.isNotEmpty(productModel)) {
|
||||||
if ("Z".equals(materialClass)) {
|
if ("Z".equals(materialClass)) {
|
||||||
DynamicObject products = productModel.getDynamicObject("yem_products");
|
boolean yemIfgift =(boolean) model.getValue("yem_ifgift");
|
||||||
if (YEM.isNotEmpty(products)) {
|
if (!yemIfgift) {
|
||||||
Long id = products.getLong("id");
|
DynamicObject products = productModel.getDynamicObject("yem_products");
|
||||||
if (map.containsKey(id)) {
|
if (YEM.isNotEmpty(products)) {
|
||||||
map.put(id, map.get(id).add((BigDecimal) model.getValue("yem_qty", i)));
|
Long id = products.getLong("id");
|
||||||
} else {
|
if (map.containsKey(id)) {
|
||||||
map.put(id, (BigDecimal) model.getValue("yem_qty", i));
|
map.put(id, map.get(id).add((BigDecimal) model.getValue("yem_qty", i)));
|
||||||
|
} else {
|
||||||
|
map.put(id, (BigDecimal) model.getValue("yem_qty", i));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user