Skip to content

Commit

Permalink
fix: negative current qty causing recursion issue (backport #37752) (#…
Browse files Browse the repository at this point in the history
…37753)

fix: negative current qty causing recursion issue (#37752)

(cherry picked from commit f1407bc)

Co-authored-by: rohitwaghchaure <[email protected]>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Oct 30, 2023
1 parent cfb9d8c commit 20ca948
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ def recalculate_current_qty(self, voucher_detail_no, sle_creation, add_new_sle=F
{"voucher_detail_no": row.name, "actual_qty": ("<", 0), "is_cancelled": 0},
"name",
)
and current_qty
and current_qty > 0
):
new_sle = self.get_sle_for_items(row)
new_sle.actual_qty = current_qty * -1
Expand Down

0 comments on commit 20ca948

Please sign in to comment.