Merge pull request #39770 from frappe/mergify/bp/version-15-hotfix/pr-39769

fix: do not throw validation for canceled SLE (backport #39769)
This commit is contained in:
rohitwaghchaure 2024-02-06 23:46:00 +05:30 committed by GitHub
commit 789aee4544
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,6 +93,9 @@ class StockLedgerEntry(Document):
self.validate_inventory_dimension_negative_stock()
def validate_inventory_dimension_negative_stock(self):
if self.is_cancelled:
return
extra_cond = ""
kwargs = {}