fix:
1.单台赠送配件金额 为空的行的数量不需要汇总
This commit is contained in:
parent
40f1d10aef
commit
3823a99628
@ -1000,11 +1000,11 @@ public class SalesOrderZJEdit extends AbstractBillPlugIn implements Plugin, Befo
|
||||
DynamicObject productModel = (DynamicObject) model.getValue("yem_productmodel", i);
|
||||
if (YEM.isNotEmpty(materialClass) && YEM.isNotEmpty(productModel)) {
|
||||
if ("Z".equals(materialClass)) {
|
||||
boolean yemIfgift = (boolean) model.getValue("yem_ifgift");
|
||||
if (!yemIfgift) {
|
||||
DynamicObject products = productModel.getDynamicObject("yem_products");
|
||||
if (YEM.isNotEmpty(products)) {
|
||||
Long id = products.getLong("id");
|
||||
boolean yemIfgift = (boolean) model.getValue("yem_ifgift",i);
|
||||
if (!yemIfgift) {
|
||||
if (map.containsKey(id)) {
|
||||
map.put(id, map.get(id).add((BigDecimal) model.getValue("yem_qty", i)));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user