fix: include change payments in receipt totals and correct cash payment property reference

This commit is contained in:
Suherdy Yacob 2026-06-02 17:05:51 +07:00
parent 382b3f7f8a
commit 81cbebb9bb
3 changed files with 2 additions and 4 deletions

View File

@ -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': """

View File

@ -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 = {}

View File

@ -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",