mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
Item qty based tax (CESS) calculation support (#15456)
* fix conflicts * added test case for qty cess * use company specified in document to get region
This commit is contained in:
committed by
Nabin Hait
parent
47a1dbab96
commit
35b2627112
@@ -6,6 +6,6 @@ from frappe import _
|
||||
from erpnext import get_region
|
||||
|
||||
def check_deletion_permission(doc, method):
|
||||
region = get_region()
|
||||
region = get_region(doc.company)
|
||||
if region in ["Nepal", "France"]:
|
||||
frappe.throw(_("Deletion is not permitted for country {0}".format(region)))
|
||||
frappe.throw(_("Deletion is not permitted for country {0}".format(region)))
|
||||
|
||||
Reference in New Issue
Block a user