fix: incorrect Balance Qty in the stock ledger for the item with Serial and Batch no

This commit is contained in:
Rohit Waghchaure
2023-07-17 20:55:16 +05:30
parent 665898a579
commit 373b868c1d
2 changed files with 25 additions and 1 deletions

View File

@@ -579,7 +579,7 @@ class update_entries_after(object):
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(