出库单计算金额填平逻辑优化,添加规格型号筛选条件

This commit is contained in:
xuhaihui 2025-10-20 14:06:31 +08:00
parent 5bd8683140
commit 3b2f145c47
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ public class MaterialOutBillPlugin extends AbstractBillPlugIn implements BeforeF
} }
qFilters.and(new QFilter("org", QCP.equals, org.getPkValue()));//即时库存-所属组织 qFilters.and(new QFilter("org", QCP.equals, org.getPkValue()));//即时库存-所属组织
qFilters.and(new QFilter("material", QCP.equals, material.getPkValue()));//即时库存-资源名称 qFilters.and(new QFilter("material", QCP.equals, material.getPkValue()));//即时库存-资源名称
qFilters.and(new QFilter("modelnum", QCP.equals, dataEntity.getString("modelnum")));//即时库存-规格型号
DynamicObject ecma_matinventory = BusinessDataServiceHelper.loadSingle("ecma_matinventory", new QFilter[]{qFilters});//即时库存 DynamicObject ecma_matinventory = BusinessDataServiceHelper.loadSingle("ecma_matinventory", new QFilter[]{qFilters});//即时库存
if (ecma_matinventory != null) { if (ecma_matinventory != null) {
BigDecimal qty = ecma_matinventory.getBigDecimal("qty");//即时库存-可用数量 BigDecimal qty = ecma_matinventory.getBigDecimal("qty");//即时库存-可用数量