Merge pull request #39769 from rohitwaghchaure/fixed-inventory-dimension-validation-8004

fix: do not throw validation for canceled SLE
This commit is contained in:
rohitwaghchaure 2024-02-06 23:11:50 +05:30 committed by GitHub
commit ab9d6576d0
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 = {}