fix: ignore dimension validation for cancelled entries

(cherry picked from commit 971c867f29)
This commit is contained in:
ruthra kumar
2024-04-10 13:21:24 +05:30
committed by Mergify
parent 0f58a3918a
commit b288c73437

View File

@@ -179,6 +179,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(
@@ -192,6 +193,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(