More logs
This commit is contained in:
parent
5b0d04609c
commit
01babc452c
@ -632,7 +632,7 @@ function TakeposPrintingTemp(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function OpenDrawer(){
|
function OpenDrawer(){
|
||||||
console.log("OpenDrawer");
|
console.log("OpenDrawer call ajax url http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
|
url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
|
||||||
@ -641,7 +641,7 @@ function OpenDrawer(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function DolibarrOpenDrawer() {
|
function DolibarrOpenDrawer() {
|
||||||
console.log("DolibarrOpenDrawer");
|
console.log("DolibarrOpenDrawer call ajax url /takepos/ajax/ajax.php?action=opendrawer&term=<?php print $_SESSION["takeposterminal"] ?>");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "<?php print dol_buildpath('/takepos/ajax/ajax.php', 1).'?action=opendrawer&term='.$_SESSION["takeposterminal"]; ?>",
|
url: "<?php print dol_buildpath('/takepos/ajax/ajax.php', 1).'?action=opendrawer&term='.$_SESSION["takeposterminal"]; ?>",
|
||||||
|
|||||||
@ -717,6 +717,7 @@ function TakeposPrinting(id){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function TakeposConnector(id){
|
function TakeposConnector(id){
|
||||||
|
console.log("TakeposConnector" + id);
|
||||||
var invoice='<?php
|
var invoice='<?php
|
||||||
$data = json_encode($invoice);
|
$data = json_encode($invoice);
|
||||||
$data = base64_encode($data);
|
$data = base64_encode($data);
|
||||||
@ -730,7 +731,7 @@ function TakeposConnector(id){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function DolibarrTakeposPrinting(id) {
|
function DolibarrTakeposPrinting(id) {
|
||||||
console.log('Printing invoice ticket ' + id)
|
console.log("DolibarrTakeposPrinting Printing invoice ticket " + id)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "<?php print dol_buildpath('/takepos/ajax/ajax.php', 1).'?action=printinvoiceticket&term='.$_SESSION["takeposterminal"].'&id='; ?>" + id,
|
url: "<?php print dol_buildpath('/takepos/ajax/ajax.php', 1).'?action=printinvoiceticket&term='.$_SESSION["takeposterminal"].'&id='; ?>" + id,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user