fix(UAE VAT 201): remove branch parts

This commit is contained in:
Mohammad Hasnain 2020-11-16 18:47:05 +05:30
parent 2e1787300d
commit d2477e6cc5
2 changed files with 0 additions and 29 deletions

View File

@ -446,29 +446,6 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
this.frm.refresh_field("outstanding_amount");
this.frm.refresh_field("paid_amount");
this.frm.refresh_field("base_paid_amount");
},
branch: function(){
const me = this
if (this.frm.doc.branch) {
frappe.call({
async: false,
method: "frappe.client.get_value",
args: {
"doctype": "Branch",
"filters": {
'name': this.frm.doc.branch
},
"fieldname": ['emirate']
},
callback: function (res) {
if (res.message && res.message['emirate']) {
me.frm.set_value("vat_emirate", res.message['emirate'])
me.frm.refresh_field("vat_emirate")
}
}
})
}
}
});

View File

@ -56,8 +56,6 @@ 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='branch', label='Branch', options='Branch',
fieldtype='Link', insert_after='company', print_hide=1),
dict(fieldname='vat_emirate', label='VAT Emirate', insert_after='permit_no', fieldtype='Select',
options='\nAbu Dhabi\nAjman\nDubai\nFujairah\nRas Al Khaimah\nSharjah\nUmm Al Quwain',
fetch_from='company_address.emirate'),
@ -108,10 +106,6 @@ def make_custom_fields():
dict(fieldname='emirate', label='Emirate', fieldtype='Select', insert_after='state',
options='\nAbu Dhabi\nAjman\nDubai\nFujairah\nRas Al Khaimah\nSharjah\nUmm Al Quwain')
],
'Branch': [
dict(fieldname='emirate', label='Emirate', fieldtype='Select', insert_after='state',
options='\nAbu Dhabi\nAjman\nDubai\nFujairah\nRas Al Khaimah\nSharjah\nUmm Al Quwain')
],
'Purchase Invoice': purchase_invoice_fields + invoice_fields,
'Purchase Order': purchase_invoice_fields + invoice_fields,
'Purchase Receipt': purchase_invoice_fields + invoice_fields,