Skip to content

Commit

Permalink
Fixed fiscal and closing report, now you can correctly call the funct…
Browse files Browse the repository at this point in the history
…ion inside the POS interface.
  • Loading branch information
Wvven committed Jan 23, 2025
1 parent d24eea9 commit 12ef283
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ odoo.define("fiscal_epos_print.EpsonFP81IIComponent", function (require) {
});
if (confirmed) {
fp90.printFiscalReprintLast(
this.env.pos.cashier.fiscal_operator_number || "1"
this.env.pos.get_cashier() || "1"
);
} else {
// TODO not exist
Expand Down Expand Up @@ -166,8 +166,8 @@ odoo.define("fiscal_epos_print.EpsonFP81IIComponent", function (require) {
});
if (confirmed) {
// Fp90.printFiscalReport();
fp90.printFiscalXZReport(
this.env.pos.cashier.fiscal_operator_number || "1"
fp90.printFiscalReport(
this.env.pos.get_cashier() || "1"
);
} else {
// TODO not exist
Expand All @@ -191,7 +191,7 @@ odoo.define("fiscal_epos_print.EpsonFP81IIComponent", function (require) {
});
if (confirmed) {
fp90.printFiscalXReport(
this.env.pos.cashier.fiscal_operator_number || "1"
this.env.pos.get_cashier() || "1"
);
} else {
// TODO not exist
Expand Down
3 changes: 0 additions & 3 deletions fiscal_epos_print/static/src/js/epson_epos_print.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,9 +782,6 @@ odoo.define("fiscal_epos_print.epson_epos_print", function (require) {
console.log(xml);
},

/*
DON'T USE, this fiscal closure is forbid by Epson by default
*/
printFiscalReport: function (f_op) {
var xml = "<printerFiscalReport>";
xml += '<printZReport operator="' + f_op + '" timeout="" />';
Expand Down

0 comments on commit 12ef283

Please sign in to comment.