1.更新getSumStockData,查询库存汇总数据时采购退货的标志改为3;8是表示采购订单反审核;
This commit is contained in:
parent
a61b6a0686
commit
3a663ae449
|
@ -2195,7 +2195,7 @@ func getSumStockData(req *ErpDecisionReportReq, endTimeFlag bool) (DecisionRepor
|
||||||
SUM(CASE WHEN state = ? THEN wholesale_price ELSE 0 END) AS system_out_amount,
|
SUM(CASE WHEN state = ? THEN wholesale_price ELSE 0 END) AS system_out_amount,
|
||||||
SUM(CASE WHEN state = ? THEN count ELSE 0 END) AS allot_wait_in,
|
SUM(CASE WHEN state = ? THEN count ELSE 0 END) AS allot_wait_in,
|
||||||
SUM(CASE WHEN state = ? THEN wholesale_price ELSE 0 END) AS allot_wait_in_amount
|
SUM(CASE WHEN state = ? THEN wholesale_price ELSE 0 END) AS allot_wait_in_amount
|
||||||
`, PurchaseCancel, PurchaseCancel, ProductInventory, ProductInventory, SystemInventory, SystemInventory,
|
`, PurchaseReturn, PurchaseReturn, ProductInventory, ProductInventory, SystemInventory, SystemInventory,
|
||||||
SystemOut, SystemOut, InAllot, InAllot)
|
SystemOut, SystemOut, InAllot, InAllot)
|
||||||
|
|
||||||
err := subQuery.Scan(&reportData).Error
|
err := subQuery.Scan(&reportData).Error
|
||||||
|
|
Loading…
Reference in New Issue
Block a user