Skip to content

Commit

Permalink
Fixed Bug: Using split function on payment re-creats the old order, b…
Browse files Browse the repository at this point in the history
…illing the splitted lines twice in the end.
  • Loading branch information
martin authored and Borruso committed Jan 23, 2024
1 parent 8fc4f72 commit 336ccaf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ odoo.define("fiscal_epos_print.PaymentScreen", function (require) {
sendToFP90Printer(receipt, printer_options) {
var fp90 = new eposDriver(printer_options, this);
fp90.printFiscalReceipt(receipt);
this.env.pos.context = {};
// This line causes problems on bill split. What's the sense of deleting the actual pos context?!
// It regenerates orders wich are already partly paid using split function...
// this.env.pos.context = {};
}

async _finalizeValidation() {
Expand Down

0 comments on commit 336ccaf

Please sign in to comment.