Update invoice.php

This commit is contained in:
Laurent Destailleur 2018-12-15 16:12:47 +01:00 committed by GitHub
parent b7ee2458a3
commit 8a01944a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,8 +297,7 @@ if ($action == "order" and $order_receipt_printer1 != "") {
?> ?>
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: 'http://<?php url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
data: '<?php data: '<?php
print $headerorder . $order_receipt_printer1 . $footerorder; ?>' print $headerorder . $order_receipt_printer1 . $footerorder; ?>'
}); });
@ -309,8 +308,7 @@ if ($action == "order" and $order_receipt_printer2 != "") {
?> ?>
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: 'http://<?php url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print2',
print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print2',
data: '<?php data: '<?php
print $headerorder . $order_receipt_printer2 . $footerorder; ?>' print $headerorder . $order_receipt_printer2 . $footerorder; ?>'
}); });
@ -340,8 +338,7 @@ if ($action == "temp" and $ticket_printer1 != "") {
?> ?>
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: 'http://<?php url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
data: '<?php data: '<?php
print $header_soc . $header_ticket . $body_ticket . $ticket_printer1 . $ticket_total . $footer_ticket; ?>' print $header_soc . $header_ticket . $body_ticket . $ticket_printer1 . $ticket_total . $footer_ticket; ?>'
}); });
@ -368,8 +365,7 @@ function TakeposPrinting(id){
receipt=data.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, ''); receipt=data.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '');
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: 'http://<?php url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
data: receipt data: receipt
}); });
}); });