fix:外销合同报错处理

This commit is contained in:
ljw 2024-09-13 13:15:16 +08:00
parent 323bb9997e
commit 09b784dec7

View File

@ -568,7 +568,7 @@ public class SalesOrderSubmitValidator extends AbstractValidator {
DynamicObjectCollection collection = dataEntity.getDynamicObjectCollection("yem_es_materialinfo");
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");
if (color == null || color.isEmpty()) {
this.addMessage(dataEntitie, "商品明细第" + (i + 1) + "行,颜色必填");