Skip to content

Commit

Permalink
fix: negative current qty causing recursion issue (#37752)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Oct 30, 2023
1 parent b605b08 commit f1407bc
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 f1407bc

Please sign in to comment.