removed unused getSubTotal() method
gitea/salix/dev This commit has test failures
Details
gitea/salix/dev This commit has test failures
Details
This commit is contained in:
parent
06be535115
commit
c9746521dc
|
@ -149,14 +149,4 @@ module.exports = Self => {
|
||||||
};
|
};
|
||||||
return await Self.app.models.TicketRequest.find(filter);
|
return await Self.app.models.TicketRequest.find(filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSubTotal(sales) {
|
|
||||||
let subTotal = 0.00;
|
|
||||||
|
|
||||||
sales.forEach(sale => {
|
|
||||||
subTotal += sale.quantity * sale.price;
|
|
||||||
});
|
|
||||||
|
|
||||||
return subTotal;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue