fix:明细信息的销售方式包含CKD时,装柜信息的整机件数不锁定,其他情况都锁定
This commit is contained in:
parent
ca6671b388
commit
93fa1a00a2
@ -655,13 +655,13 @@ public class EncaseMentEdit extends AbstractBillPlugIn implements Plugin, Before
|
|||||||
private void salesmethod() {
|
private void salesmethod() {
|
||||||
DynamicObjectCollection yemImMaterialinfoMi = this.getModel().getEntryEntity("yem_im_materialinfo_mi");
|
DynamicObjectCollection yemImMaterialinfoMi = this.getModel().getEntryEntity("yem_im_materialinfo_mi");
|
||||||
if (!yemImMaterialinfoMi.isEmpty()) {
|
if (!yemImMaterialinfoMi.isEmpty()) {
|
||||||
boolean bool = true;
|
boolean bool = false;
|
||||||
for (DynamicObject dynamicObject : yemImMaterialinfoMi) {
|
for (DynamicObject dynamicObject : yemImMaterialinfoMi) {
|
||||||
DynamicObject yemSalesmethod = dynamicObject.getDynamicObject("yem_salesmethod");
|
DynamicObject yemSalesmethod = dynamicObject.getDynamicObject("yem_salesmethod");
|
||||||
if (yemSalesmethod != null) {
|
if (yemSalesmethod != null) {
|
||||||
String yemSalesmethodString = yemSalesmethod.getString("name");
|
String yemSalesmethodString = yemSalesmethod.getString("name");
|
||||||
if (yemSalesmethodString.equals("CKD")) {
|
if (yemSalesmethodString.equals("CKD")) {
|
||||||
bool = false;
|
bool = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user