diff --git a/print/templates/reports/invoice/invoice.js b/print/templates/reports/invoice/invoice.js index bd85a812c..c5abfad7e 100755 --- a/print/templates/reports/invoice/invoice.js +++ b/print/templates/reports/invoice/invoice.js @@ -27,7 +27,8 @@ module.exports = { for (let sale of sales) { const ticket = map.get(sale.ticketFk); - ticket.sales.push(sale); + + if (ticket) ticket.sales.push(sale); } this.tickets = tickets;