diff --git a/print/report/rpt-delivery-note/index.js b/print/report/rpt-delivery-note/index.js index 410b149c9..b282898a5 100755 --- a/print/report/rpt-delivery-note/index.js +++ b/print/report/rpt-delivery-note/index.js @@ -188,7 +188,7 @@ module.exports = { d.id, d.created FROM ticket t - JOIN dmsTicket dt ON dt.ticketFk = t.id + JOIN ticketDms dt ON dt.ticketFk = t.id JOIN dms d ON d.id = dt.dmsFk AND d.file LIKE '%.png' WHERE t.id = ?`, [ticketFk]);