refactor: change uae vat settingplural

This commit is contained in:
hasnain2808 2020-09-30 21:51:00 +05:30
parent 3294f86b92
commit 10a3a338b6
7 changed files with 10 additions and 10 deletions

View File

@ -6,5 +6,5 @@ from __future__ import unicode_literals
# import frappe
import unittest
class TestUAEVATSetting(unittest.TestCase):
class TestUAEVATSettings(unittest.TestCase):
pass

View File

@ -1,7 +1,7 @@
// Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on('UAE VAT Setting', {
frappe.ui.form.on('UAE VAT Settings', {
// refresh: function(frm) {
// }

View File

@ -7,7 +7,7 @@
"engine": "InnoDB",
"field_order": [
"company",
"uae_vat_account"
"uae_vat_accounts"
],
"fields": [
{
@ -20,19 +20,19 @@
"unique": 1
},
{
"fieldname": "uae_vat_account",
"fieldname": "uae_vat_accounts",
"fieldtype": "Table",
"label": "UAE VAT Account",
"label": "UAE VAT Accounts",
"options": "UAE VAT Account",
"reqd": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2020-09-28 12:19:11.493138",
"modified": "2020-09-30 20:08:18.764798",
"modified_by": "Administrator",
"module": "Regional",
"name": "UAE VAT Setting",
"name": "UAE VAT Settings",
"owner": "Administrator",
"permissions": [
{

View File

@ -6,5 +6,5 @@ from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class UAEVATSetting(Document):
class UAEVATSettings(Document):
pass

View File

@ -145,7 +145,7 @@ def add_custom_roles_for_reports():
def add_permissions():
"""Add Permissions for UAE VAT Settings and UAE VAT Account."""
for doctype in ('UAE VAT Setting', 'UAE VAT Account'):
for doctype in ('UAE VAT Settings', 'UAE VAT Account'):
add_permission(doctype, 'All', 0)
for role in ('Accounts Manager', 'Accounts User', 'System Manager'):
add_permission(doctype, role, 0)

View File

@ -52,7 +52,7 @@ def get_tax_accounts(company):
)
if not tax_accounts_list and not frappe.flags.in_test:
frappe.throw(_(f'Please set Vat Accounts for Company: "{company}" in UAE VAT Setting'))
frappe.throw(_(f'Please set Vat Accounts for Company: "{company}" in UAE VAT Settings'))
for d in tax_accounts_list:
for key, name in d.items():
tax_accounts_dict[name] = name