Skip to content

Commit

Permalink
fix: enqueue submit/cancel action for stock entry having more than 50…
Browse files Browse the repository at this point in the history
… line items (backport #36532) (#36536)

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

(cherry picked from commit ecba6ee)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
  • Loading branch information
mergify[bot] and s-aga-r committed Aug 7, 2023
1 parent 5b04708 commit 9c108a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/stock_entry/stock_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def is_enqueue_action(self, force=False) -> bool:
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
Expand Down

0 comments on commit 9c108a8

Please sign in to comment.