Skip to content

Commit

Permalink
fix: incorrect Balance qty in the stock ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Jul 17, 2023
1 parent 665898a commit 5487170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def process_sle(self, sle):
if get_serial_nos(sle.serial_no):
self.get_serialized_values(sle)
self.wh_data.qty_after_transaction += flt(sle.actual_qty)
if sle.voucher_type == "Stock Reconciliation":
if sle.voucher_type == "Stock Reconciliation" and not sle.batch_no:
self.wh_data.qty_after_transaction = sle.qty_after_transaction

self.wh_data.stock_value = flt(self.wh_data.qty_after_transaction) * flt(
Expand Down

0 comments on commit 5487170

Please sign in to comment.