[IMP] account_reconcile_oca: Take statement line payment ref instead of account move number (name) fot the counterpart account move line

pull/540/head
Florian da Costa 2023-04-04 13:11:50 +02:00
parent d506c12748
commit c8c028ffcd
1 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ class AccountBankStatementLine(models.Model):
and self.partner_id.name_get()[0]
or False,
"date": fields.Date.to_string(self.date),
"name": self.name,
"name": self.payment_ref or self.name,
"amount": -total_amount,
"credit": total_amount if total_amount > 0 else 0.0,
"debit": -total_amount if total_amount < 0 else 0.0,
@ -396,7 +396,7 @@ class AccountBankStatementLine(models.Model):
"account_id": account.name_get()[0],
"partner_id": False,
"date": fields.Date.to_string(self.date),
"name": self.name,
"name": self.payment_ref or self.name,
"amount": -amount,
"credit": amount if amount > 0 else 0.0,
"debit": -amount if amount < 0 else 0.0,