NEW: TakePOS connector compatibility with RECEIPT PRINTERS module
This commit is contained in:
parent
65c6881fc9
commit
1c34a7acda
@ -727,16 +727,12 @@ function TakeposPrinting(id){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function TakeposConnector(id){
|
function TakeposConnector(id){
|
||||||
console.log("TakeposConnector" + id);
|
$.get("ajax/ajax.php?action=printinvoiceticket&term=<?php echo $_SESSION["takeposterminal"];?>&id="+id, function(data, status){
|
||||||
var invoice='<?php
|
$.ajax({
|
||||||
$data = json_encode($invoice);
|
type: "POST",
|
||||||
$data = base64_encode($data);
|
url: '<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>/printer/index.php',
|
||||||
echo $data;
|
data: 'invoice='+data
|
||||||
?>';
|
});
|
||||||
$.ajax({
|
|
||||||
type: "POST",
|
|
||||||
url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print.php',
|
|
||||||
data: 'invoice='+invoice
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user