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 (#36532)
  • Loading branch information
s-aga-r authored Aug 7, 2023
1 parent 8cc3df7 commit ecba6ee
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 @@ -187,7 +187,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

This comment has been minimized.

Copy link
@erpfitcom

erpfitcom Aug 7, 2023

The comment is out of sync

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 ecba6ee

Please sign in to comment.