fix:外销合同报错处理
This commit is contained in:
parent
323bb9997e
commit
09b784dec7
@ -568,7 +568,7 @@ public class SalesOrderSubmitValidator extends AbstractValidator {
|
|||||||
DynamicObjectCollection collection = dataEntity.getDynamicObjectCollection("yem_es_materialinfo");
|
DynamicObjectCollection collection = dataEntity.getDynamicObjectCollection("yem_es_materialinfo");
|
||||||
for (int i = 0; i < collection.size(); i++) {
|
for (int i = 0; i < collection.size(); i++) {
|
||||||
// 业务分类为整机
|
// 业务分类为整机
|
||||||
if ("Z".equals(collection.get(i).getString("yem_businesssort"))&&collection.get(i).getBoolean("yem_ifgift")) {
|
if ("Z".equals(collection.get(i).getString("yem_businesssort"))&&!collection.get(i).getBoolean("yem_ifgift")) {
|
||||||
String color = collection.get(i).getString("yem_color");
|
String color = collection.get(i).getString("yem_color");
|
||||||
if (color == null || color.isEmpty()) {
|
if (color == null || color.isEmpty()) {
|
||||||
this.addMessage(dataEntitie, "商品明细第" + (i + 1) + "行,颜色必填");
|
this.addMessage(dataEntitie, "商品明细第" + (i + 1) + "行,颜色必填");
|
||||||
|
Loading…
Reference in New Issue
Block a user