From 1c34a7acda895aedb71159b097ac0581debe8f42 Mon Sep 17 00:00:00 2001 From: andreubisquerra Date: Sun, 4 Oct 2020 22:50:27 +0200 Subject: [PATCH] NEW: TakePOS connector compatibility with RECEIPT PRINTERS module --- htdocs/takepos/invoice.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index d3ec86a7268..6f75df49c1a 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -727,16 +727,12 @@ function TakeposPrinting(id){ } function TakeposConnector(id){ - console.log("TakeposConnector" + id); - var invoice=''; - $.ajax({ - type: "POST", - url: 'http://global->TAKEPOS_PRINT_SERVER; ?>:8111/print.php', - data: 'invoice='+invoice + $.get("ajax/ajax.php?action=printinvoiceticket&term=&id="+id, function(data, status){ + $.ajax({ + type: "POST", + url: 'global->TAKEPOS_PRINT_SERVER; ?>/printer/index.php', + data: 'invoice='+data + }); }); }