fix: include change payments in receipt totals and correct cash payment property reference
This commit is contained in:
parent
382b3f7f8a
commit
81cbebb9bb
@ -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': """
|
||||
|
||||
@ -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 = {}
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user