u
This commit is contained in:
@@ -30,6 +30,7 @@ function calculatePaidTotal(payments = []) {
|
||||
function calculateOrderedQuantity(lines = []) {
|
||||
let qty = 0;
|
||||
for (const line of lines) {
|
||||
if (line.shippable === false) continue;
|
||||
qty += Number(line.amount || 0);
|
||||
}
|
||||
return Math.round(qty * 1000) / 1000;
|
||||
|
||||
Reference in New Issue
Block a user