fix:
1.随机资料及配件工具包,机型台数根据发运更新
This commit is contained in:
parent
58618daa8b
commit
091b36894e
@ -665,7 +665,7 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
|||||||
for (int i = 0; i < collection.size(); i++) {
|
for (int i = 0; i < collection.size(); i++) {
|
||||||
BigDecimal raprate = collection.get(i).getBigDecimal("yem_raprate");
|
BigDecimal raprate = collection.get(i).getBigDecimal("yem_raprate");
|
||||||
BigDecimal offeramount = dataEntity.getBigDecimal("yem_offeramount");
|
BigDecimal offeramount = dataEntity.getBigDecimal("yem_offeramount");
|
||||||
this.getModel().setValue("yem_rapamt", PaymentControlUtil.getAdvancePayment(offeramount, raprate),i);
|
this.getModel().setValue("yem_rapamt", PaymentControlUtil.getAdvancePayment(offeramount, raprate), i);
|
||||||
}
|
}
|
||||||
// this.getView().invokeOperation("save");
|
// this.getView().invokeOperation("save");
|
||||||
break;
|
break;
|
||||||
@ -689,7 +689,7 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
|||||||
// } else {
|
// } else {
|
||||||
// ies.add(i1);
|
// ies.add(i1);
|
||||||
// }
|
// }
|
||||||
}else {
|
} else {
|
||||||
ies.add(i1);
|
ies.add(i1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -700,6 +700,34 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
|||||||
this.getView().showMessage("数量不允许低于关联调拨数量;,请重新填写");
|
this.getView().showMessage("数量不允许低于关联调拨数量;,请重新填写");
|
||||||
this.getModel().setValue("yem_qty", e.getChangeSet()[0].getOldValue());
|
this.getModel().setValue("yem_qty", e.getChangeSet()[0].getOldValue());
|
||||||
}
|
}
|
||||||
|
Map<Long, BigDecimal> map = new HashMap<>();
|
||||||
|
DynamicObjectCollection yemEsMaterialinfo = this.getModel().getEntryEntity("yem_es_materialinfo");
|
||||||
|
if (yemEsMaterialinfo.size() > 0) {
|
||||||
|
for (DynamicObject dynamicObject : yemEsMaterialinfo) {
|
||||||
|
DynamicObject yemProductmodel = dynamicObject.getDynamicObject("yem_productmodel");
|
||||||
|
if (yemProductmodel != null) {
|
||||||
|
long aLong = yemProductmodel.getDynamicObject("yem_products").getLong("id");
|
||||||
|
// long aLong = yemProductmodel.getLong("id");
|
||||||
|
BigDecimal yemQty = dynamicObject.getBigDecimal("yem_qty");
|
||||||
|
if (map.get(aLong).compareTo(BigDecimal.ZERO) == 0) {
|
||||||
|
map.put(aLong, yemQty);
|
||||||
|
} else {
|
||||||
|
map.put(aLong, yemQty.add(map.get(aLong)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
DynamicObjectCollection yemEsSalesorderP = this.getModel().getEntryEntity("yem_es_salesorder_p");
|
||||||
|
for (int i = 0; i < yemEsSalesorderP.size(); i++) {
|
||||||
|
DynamicObject dynamicObject = yemEsSalesorderP.get(i);
|
||||||
|
DynamicObject yemAccessorytype = dynamicObject.getDynamicObject("yem_accessorytype");
|
||||||
|
if (yemAccessorytype != null) {
|
||||||
|
long aLong = yemAccessorytype.getLong("id");
|
||||||
|
if (map.get(aLong).compareTo(BigDecimal.ZERO) != 0) {
|
||||||
|
this.getModel().setValue("yem_pcstype",map.get(aLong) ,i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
case "yem_isdismantlecar":
|
case "yem_isdismantlecar":
|
||||||
extracted();
|
extracted();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user