Skip to content

Commit

Permalink
[FIX] fiscal_epos_print: new order lines not saved when changing tabl…
Browse files Browse the repository at this point in the history
…e on Point of sale when restaurant tables are enabled
  • Loading branch information
micheledic committed Feb 23, 2025
1 parent db10ff4 commit cf8f798
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fiscal_epos_print/static/src/js/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ odoo.define("fiscal_epos_print.models", function (require) {
var order = this.pos.get_order();
if (order) {
var lines = order.orderlines;
order.has_refund =
lines.find(function (line) {
return line.quantity < 0.0;
}) !== undefined;
order.has_refund = lines.some(function (line) {
return line.quantity < 0.0;
});
if (order.has_refund) {
order.refund_report = this.name.substr(-4);
order.refund_doc_num = this.name.substr(-4);
Expand Down

0 comments on commit cf8f798

Please sign in to comment.