mirror of
https://github.com/NaN-tic/trytond-account_payment_es_csb_32.git
synced 2023-12-14 06:23:05 +01:00
Rename vat_number to vat_code
This commit is contained in:
parent
66a2577119
commit
94f366f34e
1 changed files with 3 additions and 3 deletions
|
@ -59,9 +59,9 @@ class Group:
|
|||
values['payment_count'] = 0
|
||||
values['document_number'] = 0
|
||||
for receipt in values['receipts']:
|
||||
if not receipt['vat_number']:
|
||||
if not receipt['vat_code']:
|
||||
self.raise_user_error('configuration_error',
|
||||
error_description='party_without_vat_number',
|
||||
error_description='party_without_vat_code',
|
||||
error_description_args=(receipt['party'].name,))
|
||||
|
||||
if not receipt['address']:
|
||||
|
@ -144,7 +144,7 @@ class Group:
|
|||
record.receiver_city = receipt['address'].city
|
||||
record.receiver_province_code = receipt['province']
|
||||
record.receiver_ine = '0000000'
|
||||
record.receiver_nif = receipt['vat_number']
|
||||
record.receiver_nif = receipt['vat_code']
|
||||
return write([record])
|
||||
|
||||
def set_order_footer_record():
|
||||
|
|
Loading…
Reference in a new issue