Melya template

This commit is contained in:
2026-06-09 13:30:24 +02:00
parent 734c0c8a34
commit 67cb5491e2
5 changed files with 36 additions and 3 deletions

View File

@@ -849,6 +849,22 @@ class Invoice(metaclass=PoolMeta):
return self._get_report_bank_swift(
self._get_report_melya_bank_account())
@property
def report_melya_bank_details_line(self):
name = self.report_melya_bank_name
return 'BANK DETAILS:\t\t%s' % name if name else ''
@property
def report_melya_bank_account_line(self):
parts = []
iban = self.report_melya_bank_iban
swift = self.report_melya_bank_swift
if iban:
parts.append('IBAN : %s' % iban)
if swift:
parts.append('Swift Code: %s' % swift)
return ', '.join(parts)
@property
def report_melya_maturity_date(self):
maturity_dates = [