fix: ignore dimension validation for cancelled entries

This commit is contained in:
ruthra kumar
2024-04-10 13:21:24 +05:30
parent 5446ed7642
commit 971c867f29

View File

@@ -182,6 +182,7 @@ class GLEntry(Document):
and self.company == dimension.company
and dimension.mandatory_for_pl
and not dimension.disabled
and not self.is_cancelled
):
if not self.get(dimension.fieldname):
frappe.throw(
@@ -195,6 +196,7 @@ class GLEntry(Document):
and self.company == dimension.company
and dimension.mandatory_for_bs
and not dimension.disabled
and not self.is_cancelled
):
if not self.get(dimension.fieldname):
frappe.throw(