diff --git a/static/src/app/services/pos_store.js b/static/src/app/services/pos_store.js index cfd5c00..cc2e069 100644 --- a/static/src/app/services/pos_store.js +++ b/static/src/app/services/pos_store.js @@ -37,12 +37,21 @@ patch(PosStore.prototype, { if (printer.config && printer.config.printer_type === "network_escpos") { const changesData = data.changes?.data || []; - // Build the data object to send to backend - const lines = changesData.map(c => ({ - name: c.name, - qty: c.quantity || c.qty || 1, - note: c.note || '' - })); + const lines = changesData.map(c => { + const noteParts = []; + const customerNote = c.customer_note || c.customerNote; + if (customerNote) { + noteParts.push(customerNote); + } + if (c.note) { + noteParts.push(c.note); + } + return { + name: c.name, + qty: c.quantity || c.qty || 1, + note: noteParts.join(" | ") + }; + }); const receipt_data = { order_name: data.name || '',