|
|
@ -120,15 +120,15 @@ export function calcHandleQty(detailSource) { |
|
|
|
export function calcHandleNewQty(detailSource) { |
|
|
|
for (let item of detailSource) { |
|
|
|
item.handleQty = new Decimal(0).toNumber(); |
|
|
|
item.qty = new Decimal(0).toNumber(); |
|
|
|
// item.qty = new Decimal(0).toNumber();
|
|
|
|
for (let detail of item.subList) { |
|
|
|
if (detail ) { |
|
|
|
if (!detail.isRecommend && detail.scaned) { |
|
|
|
item.handleQty = calc.add(item.handleQty, detail.handleQty); |
|
|
|
} |
|
|
|
if (!detail.isRecommend ) { |
|
|
|
item.qty = calc.add(item.qty, detail.qty); |
|
|
|
} |
|
|
|
// if (!detail.isRecommend ) {
|
|
|
|
// item.qty = calc.add(item.qty, detail.qty);
|
|
|
|
// }
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|