Renamed to Printer Bot
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
@@ -65,7 +65,7 @@ client.on('General.Custom', (response) => {
|
|||||||
////////////////////
|
////////////////////
|
||||||
|
|
||||||
async function CustomEvent(data) {
|
async function CustomEvent(data) {
|
||||||
if (data.actionName != 'Receipt Printer | Events')
|
if (data.actionName != 'Printer Bot | Events')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Get a reference to the template
|
// Get a reference to the template
|
||||||
@@ -600,7 +600,7 @@ async function CustomEvent(data) {
|
|||||||
// Send it to the print routine!
|
// Send it to the print routine!
|
||||||
const receiptHTML = await GetRenderedHTML(instance);
|
const receiptHTML = await GetRenderedHTML(instance);
|
||||||
console.log(receiptHTML);
|
console.log(receiptHTML);
|
||||||
client.doAction({ name: 'Receipt Printer | Print Routine' }, {
|
client.doAction({ name: 'Printer Bot | Print Routine' }, {
|
||||||
receiptHTML: receiptHTML,
|
receiptHTML: receiptHTML,
|
||||||
isTest: data.isTest
|
isTest: data.isTest
|
||||||
});
|
});
|
||||||