Rename vat_number to vat_code

This commit is contained in:
resteve 2015-10-06 21:04:29 +02:00
parent 4477d48f83
commit bf5c758f70

View file

@ -95,9 +95,9 @@ class Group:
self.raise_user_error('configuration_error', self.raise_user_error('configuration_error',
error_description='party_without_complete_address', error_description='party_without_complete_address',
error_description_args=(receipt['party'].name,)) error_description_args=(receipt['party'].name,))
if not receipt['vat_number']: if not receipt['vat_code']:
self.raise_user_error('configuration_error', self.raise_user_error('configuration_error',
error_description='party_without_vat_number', error_description='party_without_vat_code',
error_description_args=(receipt['party'].name,)) error_description_args=(receipt['party'].name,))
receipt['cost'] = values['payment_journal'].csb_34_cost_key receipt['cost'] = values['payment_journal'].csb_34_cost_key
receipt['concept'] = values['payment_journal'].csb_34_concept receipt['concept'] = values['payment_journal'].csb_34_concept