mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
fix: fetch serial nos from ledger unconditionally
This commit is contained in:
committed by
Ankush Menat
parent
deb6b38fab
commit
2aa019ae4c
@@ -101,11 +101,7 @@ def get_stock_balance(item_code, warehouse, posting_date=None, posting_time=None
|
|||||||
|
|
||||||
if with_valuation_rate:
|
if with_valuation_rate:
|
||||||
if with_serial_no:
|
if with_serial_no:
|
||||||
serial_nos = last_entry.get("serial_no")
|
serial_nos = get_serial_nos_data_after_transactions(args)
|
||||||
|
|
||||||
if (serial_nos and
|
|
||||||
len(get_serial_nos_data(serial_nos)) <= last_entry.qty_after_transaction):
|
|
||||||
serial_nos = get_serial_nos_data_after_transactions(args)
|
|
||||||
|
|
||||||
return ((last_entry.qty_after_transaction, last_entry.valuation_rate, serial_nos)
|
return ((last_entry.qty_after_transaction, last_entry.valuation_rate, serial_nos)
|
||||||
if last_entry else (0.0, 0.0, 0.0))
|
if last_entry else (0.0, 0.0, 0.0))
|
||||||
|
|||||||
Reference in New Issue
Block a user