Skip to content

Commit

Permalink
fix: incorrect OR condition causing timeout error
Browse files Browse the repository at this point in the history
(cherry picked from commit 379b215)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Apr 24, 2023
1 parent 7001402 commit c020789
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions erpnext/stock/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -1445,13 +1445,13 @@ def get_next_stock_reco(kwargs):
(
CombineDatetime(sle.posting_date, sle.posting_time)
> CombineDatetime(kwargs.get("posting_date"), kwargs.get("posting_time"))
| (
(
CombineDatetime(sle.posting_date, sle.posting_time)
== CombineDatetime(kwargs.get("posting_date"), kwargs.get("posting_time"))
)
& (sle.creation > kwargs.get("creation"))
)
| (
(
CombineDatetime(sle.posting_date, sle.posting_time)
== CombineDatetime(kwargs.get("posting_date"), kwargs.get("posting_time"))
)
& (sle.creation > kwargs.get("creation"))
)
)
)
Expand Down

0 comments on commit c020789

Please sign in to comment.