refactor(UAE VAT 21): rename UAE VAT - UAE VAT 21

This commit is contained in:
hasnain2808
2020-09-28 12:27:41 +05:30
parent 127fbfcb93
commit 79aca28453
6 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
// For license information, please see license.txt // For license information, please see license.txt
/* eslint-disable */ /* eslint-disable */
frappe.query_reports["UAE VAT"] = { frappe.query_reports["UAE VAT 21"] = {
"filters": [ "filters": [
{ {
"fieldname": "company", "fieldname": "company",

View File

@@ -12,11 +12,11 @@
"modified": "2020-09-10 08:51:02.298482", "modified": "2020-09-10 08:51:02.298482",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Regional", "module": "Regional",
"name": "UAE VAT", "name": "UAE VAT 21",
"owner": "Administrator", "owner": "Administrator",
"prepared_report": 0, "prepared_report": 0,
"ref_doctype": "GL Entry", "ref_doctype": "GL Entry",
"report_name": "UAE VAT", "report_name": "UAE VAT 21",
"report_type": "Script Report", "report_type": "Script Report",
"roles": [] "roles": []
} }

View File

@@ -130,10 +130,10 @@ def add_print_formats():
name in('Simplified Tax Invoice', 'Detailed Tax Invoice', 'Tax Invoice') """) name in('Simplified Tax Invoice', 'Detailed Tax Invoice', 'Tax Invoice') """)
def add_custom_roles_for_reports(): def add_custom_roles_for_reports():
if not frappe.db.get_value('Custom Role', dict(report='UAE VAT')): if not frappe.db.get_value('Custom Role', dict(report='UAE VAT 21')):
frappe.get_doc(dict( frappe.get_doc(dict(
doctype='Custom Role', doctype='Custom Role',
report='UAE VAT', report='UAE VAT 21',
roles= [ roles= [
dict(role='Accounts User'), dict(role='Accounts User'),
dict(role='Accounts Manager'), dict(role='Accounts Manager'),