feat(UAE VAT Format): add fields for emirates in address and sales invoice

This commit is contained in:
hasnain2808 2020-09-07 12:31:19 +05:30
parent 06130ee56b
commit 2744765757

View File

@ -41,6 +41,8 @@ def make_custom_fields():
dict(fieldname='customer_name_in_arabic', label='Customer Name in Arabic',
fieldtype='Read Only', insert_after='customer_name',
fetch_from='customer.customer_name_in_arabic', print_hide=1),
dict(fieldname='emirate', label='Emirate', insert_after='customer_address',
fetch_from='customer_address.emirates'),
]
invoice_item_fields = [
@ -76,6 +78,10 @@ def make_custom_fields():
dict(fieldname='supplier_name_in_arabic', label='Supplier Name in Arabic',
fieldtype='Data', insert_after='supplier_name'),
],
'Address': [
dict(fieldname='emirates', label='Emirates',
fieldtype='Data', insert_after='state'),
],
'Purchase Invoice': purchase_invoice_fields + invoice_fields,
'Purchase Order': purchase_invoice_fields + invoice_fields,
'Purchase Receipt': purchase_invoice_fields + invoice_fields,