More logs

This commit is contained in:
Laurent Destailleur 2020-08-06 03:52:49 +02:00
parent 5b0d04609c
commit 01babc452c
2 changed files with 4 additions and 3 deletions

View File

@ -632,7 +632,7 @@ function TakeposPrintingTemp(){
}
function OpenDrawer(){
console.log("OpenDrawer");
console.log("OpenDrawer call ajax url http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print");
$.ajax({
type: "POST",
url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
@ -641,7 +641,7 @@ function OpenDrawer(){
}
function DolibarrOpenDrawer() {
console.log("DolibarrOpenDrawer");
console.log("DolibarrOpenDrawer call ajax url /takepos/ajax/ajax.php?action=opendrawer&term=<?php print $_SESSION["takeposterminal"] ?>");
$.ajax({
type: "GET",
url: "<?php print dol_buildpath('/takepos/ajax/ajax.php', 1).'?action=opendrawer&term='.$_SESSION["takeposterminal"]; ?>",

View File

@ -717,6 +717,7 @@ function TakeposPrinting(id){
}
function TakeposConnector(id){
console.log("TakeposConnector" + id);
var invoice='<?php
$data = json_encode($invoice);
$data = base64_encode($data);
@ -730,7 +731,7 @@ function TakeposConnector(id){
}
function DolibarrTakeposPrinting(id) {
console.log('Printing invoice ticket ' + id)
console.log("DolibarrTakeposPrinting Printing invoice ticket " + id)
$.ajax({
type: "GET",
url: "<?php print dol_buildpath('/takepos/ajax/ajax.php', 1).'?action=printinvoiceticket&term='.$_SESSION["takeposterminal"].'&id='; ?>" + id,