This commit is contained in:
2022-10-19 19:52:44 +08:00
parent 910adcfd5b
commit 1b39d95647
2 changed files with 2 additions and 2 deletions

View File

@@ -175,7 +175,7 @@ public class StatisticalReportServiceImpl implements StatisticalReportService {
jo7.put(material_id, String.format("%.3f",safe_qty));
//8、采购缺口库存+待检+在途+最低储备-排产量
double buy_qty = bom_qty - (now_ivt + noqty + notqty + safe_qty);
double buy_qty = bom_qty - (now_ivt + noin_qty + notqty + safe_qty);
jo8.put(material_id, String.format("%.3f",buy_qty));
//6、覆盖日期物料库存可坚持到哪一天库存现存量减每天需求量哪天<0,取前一天

View File

@@ -486,7 +486,7 @@
UNION ALL
SELECT
wo.planstart_time AS planstart_date,
LEFT(wo.planstart_time,10) AS planstart_date,
COUNT(wo.workorder_id) AS product_num,
MAX(ext.old_mark) AS old_mark,
SUM(wo.workorder_qty) AS product_weight,