diff --git a/__manifest__.py b/__manifest__.py index b6246cc..ee9e03c 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- { 'name': 'POS Closing Receipt Printer', - 'version': '19.0.1.3.2', + 'version': '19.0.1.3.3', 'category': 'Point of Sale', 'summary': 'Print payment summary receipt when closing a POS session, with reprint from backend', 'description': """ diff --git a/models/pos_session.py b/models/pos_session.py index 8200184..7cab0cf 100644 --- a/models/pos_session.py +++ b/models/pos_session.py @@ -24,7 +24,6 @@ class PosSession(models.Model): payments = self.env['pos.payment'].search([ ('session_id', '=', session.id), - ('is_change', '=', False), ]) method_totals = {} @@ -99,7 +98,6 @@ class PosSession(models.Model): payments = self.env['pos.payment'].search([ ('session_id', '=', session.id), - ('is_change', '=', False), ]) method_totals = {} diff --git a/static/src/app/closing_receipt_patch.js b/static/src/app/closing_receipt_patch.js index c999825..0182415 100644 --- a/static/src/app/closing_receipt_patch.js +++ b/static/src/app/closing_receipt_patch.js @@ -166,7 +166,7 @@ patch(ClosePosPopup.prototype, { let cashPayment = null; if (this.props.default_cash_details) { - const amount = this.props.default_cash_details.amount || 0; + const amount = this.props.default_cash_details.payment_amount || 0; cashPayment = { id: this.props.default_cash_details.id, name: this.props.default_cash_details.name || "Cash",