Template Melya
This commit is contained in:
@@ -984,6 +984,18 @@ class Sale(metaclass=PoolMeta):
|
||||
def report_melya_bank_swift(self):
|
||||
return self._get_report_bank_swift(self.our_bank_account)
|
||||
|
||||
@property
|
||||
def report_melya_bank_swift_line(self):
|
||||
if self.report_melya_bank_swift:
|
||||
return 'Swift Code: %s' % self.report_melya_bank_swift
|
||||
return ''
|
||||
|
||||
@property
|
||||
def report_melya_bank_iban_line(self):
|
||||
if self.report_melya_bank_iban:
|
||||
return 'IBAN : %s' % self.report_melya_bank_iban
|
||||
return ''
|
||||
|
||||
@property
|
||||
def report_melya_bank_account_line(self):
|
||||
parts = []
|
||||
|
||||
@@ -4497,6 +4497,12 @@ class PurchaseTradeTestCase(ModuleTestCase):
|
||||
sale.report_melya_bank_iban,
|
||||
'CH36 0021 5215 2487 7461 D')
|
||||
self.assertEqual(sale.report_melya_bank_swift, 'UBSWCHZH80A')
|
||||
self.assertEqual(
|
||||
sale.report_melya_bank_swift_line,
|
||||
'Swift Code: UBSWCHZH80A')
|
||||
self.assertEqual(
|
||||
sale.report_melya_bank_iban_line,
|
||||
'IBAN : CH36 0021 5215 2487 7461 D')
|
||||
self.assertEqual(
|
||||
sale.report_melya_bank_account_line,
|
||||
'IBAN : CH36 0021 5215 2487 7461 D, Swift Code: UBSWCHZH80A')
|
||||
|
||||
@@ -1882,8 +1882,8 @@
|
||||
<text:p text:style-name="P15">PAYMENT TERMS:<text:tab/><text:placeholder text:placeholder-type="text"><sale.payment_term.description if sale.payment_term else ''></text:placeholder></text:p>
|
||||
<text:p text:style-name="P10"/>
|
||||
<text:p text:style-name="P16">BANK DETAILS:<text:tab/><text:tab/><text:placeholder text:placeholder-type="text"><sale.report_melya_bank_name></text:placeholder></text:p>
|
||||
<text:p text:style-name="P16"><text:tab/><text:tab/><text:tab/><text:placeholder text:placeholder-type="text"><sale.report_melya_bank_address></text:placeholder></text:p>
|
||||
<text:p text:style-name="P16"><text:tab/><text:tab/><text:tab/><text:placeholder text:placeholder-type="text"><sale.report_melya_bank_account_line></text:placeholder></text:p>
|
||||
<text:p text:style-name="P16"><text:tab/><text:tab/><text:tab/><text:placeholder text:placeholder-type="text"><sale.report_melya_bank_swift_line></text:placeholder></text:p>
|
||||
<text:p text:style-name="P16"><text:tab/><text:tab/><text:tab/><text:placeholder text:placeholder-type="text"><sale.report_melya_bank_iban_line></text:placeholder></text:p>
|
||||
<text:p text:style-name="P10"/>
|
||||
<text:p text:style-name="P10">DELIVERY IS SUBJECT TO THE DELIVERY BY OUR SUPPLIER.</text:p>
|
||||
<text:p text:style-name="P10"/>
|
||||
@@ -1899,4 +1899,4 @@
|
||||
<text:p text:style-name="Standard"><text:placeholder text:placeholder-type="text"></for></text:placeholder></text:p>
|
||||
</office:text>
|
||||
</office:body>
|
||||
</office:document>
|
||||
</office:document>
|
||||
|
||||
Reference in New Issue
Block a user