1.申报要素改变过滤值
This commit is contained in:
25655 2025-02-28 17:32:28 +08:00
parent 45a8bf6585
commit f0c13f3856
2 changed files with 5 additions and 5 deletions

View File

@ -794,11 +794,11 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
DynamicObject billtype = (DynamicObject) model.getValue("yem_billtype");
String type = billtype.getString("number");
if (org.apache.commons.lang3.StringUtils.containsIgnoreCase(type, "zj")) {
if (org.apache.commons.lang3.StringUtils.containsIgnoreCase(type, "zj")||"yem_es_storagetrans".equals(type)) {
if ("Z".equals(businesssort)) {
if (YEM.isNotEmpty(productmodel)) {
id = productmodel.getLong("id");
qFilter.and(new QFilter("yem_bd_declarationele", QCP.equals, id));
qFilter.and(new QFilter("yem_bd_declarationele.yem_baseproductstree.id", QCP.equals, id));
qFilter.and(new QFilter("enable", QCP.equals, "1"));
}
}

View File

@ -865,11 +865,11 @@ public class SalesOrderUtils {
DynamicObject billtype = (DynamicObject) model.getValue("yem_billtype");
String type = billtype.getString("number");
if (StringUtils.containsIgnoreCase(type, "zj")) {
if (StringUtils.containsIgnoreCase(type, "zj")||"yem_es_storagetrans".equals(type)) {
if ("Z".equals(businesssort)) {
if (YEM.isNotEmpty(productmodel)) {
id = productmodel.getLong("yem_products.id");
qFilter.and(new QFilter("yem_bd_declarationele.yem_productstree.id", QCP.equals, id));
id = productmodel.getLong("id");
qFilter.and(new QFilter("yem_bd_declarationele.yem_baseproductstree.id", QCP.equals, id));
qFilter.and(new QFilter("enable", QCP.equals, "1"));
}
}