diff --git a/public/pos/receipt.html b/public/pos/receipt.html index 412cae4..08b29ce 100644 --- a/public/pos/receipt.html +++ b/public/pos/receipt.html @@ -750,6 +750,16 @@ function paintPrinterSettings(){ paintPrinterSettings(); paintNet(); + +// Expose the onclick-bound functions on window — they're defined +// inside the IIFE above so they're not visible to inline `onclick` +// attributes (which evaluate against window). Without this the +// "Printer: ..." row, "Save printer settings" button, "Print slip" +// button, and "Print delivery note" button all silently do nothing. +window.togglePrinterSettings = togglePrinterSettings; +window.savePrinterSettings = savePrinterSettings; +window.printThermal = printThermal; +window.printDelivery = printDelivery; })();