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

This commit is contained in:
rohitwaghchaure
2023-10-30 13:53:48 +05:30
committed by GitHub
parent b605b08ec1
commit f1407bcfd2

View File

@@ -647,7 +647,7 @@ class StockReconciliation(StockController):
{"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