removed unused getSubTotal() method
gitea/salix/dev This commit has test failures Details

This commit is contained in:
Joan Sanchez 2019-02-21 08:44:03 +01:00
parent 06be535115
commit c9746521dc
1 changed files with 0 additions and 10 deletions

View File

@ -149,14 +149,4 @@ module.exports = Self => {
};
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;
}
};