fix: enqueue submit/cancel action for stock entry having more than 50 line items (backport #36532) (#36536)

fix: enqueue submit/cancel action for stock entry having more than 50 line items (#36532)

(cherry picked from commit ecba6ee183)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
This commit is contained in:
mergify[bot]
2023-08-07 21:03:36 +05:30
committed by GitHub
parent 5b04708164
commit 9c108a8ef7

View File

@@ -194,7 +194,7 @@ class StockEntry(StockController):
return False
# If line items are more than 100 or record is older than 6 months
if len(self.items) > 100 or month_diff(nowdate(), self.posting_date) > 6:
if len(self.items) > 50 or month_diff(nowdate(), self.posting_date) > 6:
return True
return False