fix(invoice): order tickets by id on invoice report
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-11-12 08:35:00 +01:00
parent 62cdf52227
commit cae69a2ce4
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,6 @@ module.exports = {
},
ticketSubtotal(ticket) {
let subTotal = 0.00;
console.log(ticket.sales);
for (let sale of ticket.sales)
subTotal += this.saleImport(sale);

View File

@ -4,4 +4,5 @@ SELECT
t.nickname
FROM invoiceOut io
JOIN ticket t ON t.refFk = io.ref
WHERE io.id = ?
WHERE io.id = ?
ORDER BY t.id