mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 18:25:32 +00:00
fix: negative current qty causing recursion issue (#37752)
(cherry picked from commit f1407bcfd2)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -647,7 +647,7 @@ class StockReconciliation(StockController):
|
|||||||
{"voucher_detail_no": row.name, "actual_qty": ("<", 0), "is_cancelled": 0},
|
{"voucher_detail_no": row.name, "actual_qty": ("<", 0), "is_cancelled": 0},
|
||||||
"name",
|
"name",
|
||||||
)
|
)
|
||||||
and current_qty
|
and current_qty > 0
|
||||||
):
|
):
|
||||||
new_sle = self.get_sle_for_items(row)
|
new_sle = self.get_sle_for_items(row)
|
||||||
new_sle.actual_qty = current_qty * -1
|
new_sle.actual_qty = current_qty * -1
|
||||||
|
|||||||
Reference in New Issue
Block a user