fix(invoice): order tickets by id on invoice report
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
62cdf52227
commit
cae69a2ce4
|
@ -95,7 +95,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
ticketSubtotal(ticket) {
|
ticketSubtotal(ticket) {
|
||||||
let subTotal = 0.00;
|
let subTotal = 0.00;
|
||||||
console.log(ticket.sales);
|
|
||||||
for (let sale of ticket.sales)
|
for (let sale of ticket.sales)
|
||||||
subTotal += this.saleImport(sale);
|
subTotal += this.saleImport(sale);
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,5 @@ SELECT
|
||||||
t.nickname
|
t.nickname
|
||||||
FROM invoiceOut io
|
FROM invoiceOut io
|
||||||
JOIN ticket t ON t.refFk = io.ref
|
JOIN ticket t ON t.refFk = io.ref
|
||||||
WHERE io.id = ?
|
WHERE io.id = ?
|
||||||
|
ORDER BY t.id
|
Loading…
Reference in New Issue