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

This commit is contained in:
s-aga-r 2023-08-07 19:36:19 +05:30 committed by GitHub
parent 8cc3df7c2c
commit ecba6ee183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,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