fix: bad default for non-existing serial nos
serial_no field should have empty string if it doesn't have any serial nos
This commit is contained in:
parent
ea5efd0791
commit
33c4a0b5a9
@ -103,7 +103,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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user