Compare commits
No commits in common. "8c968772444a4f1ad42692f469e2c3d1e8292fa8" and "88913260a3480db46b475f645b36b669c87c2c4d" have entirely different histories.
8c96877244
...
88913260a3
@ -309,10 +309,8 @@ function buildSummary(rows, orderSkuCount) {
|
||||
pickTotal: 0,
|
||||
storageTotal: 0,
|
||||
};
|
||||
const STATUS_SUM_KEY = { need: 'need', short: 'short', enough: 'enough', no_order: 'noOrder' };
|
||||
rows.forEach((row) => {
|
||||
const key = STATUS_SUM_KEY[row.status];
|
||||
if (key && summary[key] !== undefined) summary[key] += 1;
|
||||
if (summary[row.status] !== undefined) summary[row.status] += 1;
|
||||
summary.suggestQtyTotal += row.suggestQty || 0;
|
||||
summary.orderQtyTotal += row.orderQty || 0;
|
||||
summary.exceedTotal += row.excess || 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user