fix:明细信息的销售方式包含CKD时,装柜信息的整机件数不锁定,其他情况都锁定
This commit is contained in:
parent
685402c9c0
commit
be3cb232d3
@ -589,6 +589,21 @@ public class EncaseMentEdit extends AbstractBillPlugIn implements Plugin, Before
|
|||||||
// case "yem_wholecube"://整柜立方
|
// case "yem_wholecube"://整柜立方
|
||||||
// ZJHZ();//汇总至表头
|
// ZJHZ();//汇总至表头
|
||||||
// break;
|
// break;
|
||||||
|
case "yem_salesmethod":
|
||||||
|
DynamicObjectCollection yemImMaterialinfoMi = this.getModel().getEntryEntity("yem_im_materialinfo_mi");
|
||||||
|
if (!yemImMaterialinfoMi.isEmpty()) {
|
||||||
|
boolean bool = false;
|
||||||
|
for (DynamicObject dynamicObject : yemImMaterialinfoMi) {
|
||||||
|
DynamicObject yemSalesmethod = dynamicObject.getDynamicObject("yem_salesmethod");
|
||||||
|
if (yemSalesmethod != null) {
|
||||||
|
String yemSalesmethodString = yemSalesmethod.getString("name");
|
||||||
|
if (yemSalesmethodString.equals("CKD")) {
|
||||||
|
bool = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.getView().setEnable(bool, "yem_numberunits");
|
||||||
|
}
|
||||||
case "yem_lenghtunit":
|
case "yem_lenghtunit":
|
||||||
case "yem_vol":
|
case "yem_vol":
|
||||||
TotalUtil.countVolM3(model, rowIndex, "yem_lenghtunit", "yem_vol", "yem_volm3");
|
TotalUtil.countVolM3(model, rowIndex, "yem_lenghtunit", "yem_vol", "yem_volm3");
|
||||||
|
Loading…
Reference in New Issue
Block a user