mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
fix: bad default for non-existing serial nos
serial_no field should have empty string if it doesn't have any serial
nos
(cherry picked from commit 33c4a0b5a9)
This commit is contained in:
committed by
Ankush Menat
parent
f336b5d586
commit
0e413ef54e
@@ -104,7 +104,7 @@ def get_stock_balance(item_code, warehouse, posting_date=None, posting_time=None
|
||||
serial_nos = get_serial_nos_data_after_transactions(args)
|
||||
|
||||
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, None))
|
||||
else:
|
||||
return (last_entry.qty_after_transaction, last_entry.valuation_rate) if last_entry else (0.0, 0.0)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user