fix: do not throw validation for cancelled sle (cherry picked from commit32ccf3524a) Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com> (cherry picked from commit2885b8fa44)
This commit is contained in:
@@ -53,6 +53,9 @@ class StockLedgerEntry(Document):
|
|||||||
self.validate_inventory_dimension_negative_stock()
|
self.validate_inventory_dimension_negative_stock()
|
||||||
|
|
||||||
def validate_inventory_dimension_negative_stock(self):
|
def validate_inventory_dimension_negative_stock(self):
|
||||||
|
if self.is_cancelled:
|
||||||
|
return
|
||||||
|
|
||||||
extra_cond = ""
|
extra_cond = ""
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user