mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
fix: error in available serial no report is no serial no present in company
(cherry picked from commit 0ae60b8b61)
This commit is contained in:
@@ -19,21 +19,17 @@ def execute(filters=None):
|
||||
columns = get_columns(filters)
|
||||
items = get_items(filters)
|
||||
sl_entries = get_stock_ledger_entries(filters, items)
|
||||
|
||||
if not sl_entries:
|
||||
return columns, []
|
||||
|
||||
item_details = get_item_details(items, sl_entries, False)
|
||||
|
||||
opening_row = get_opening_balance_data(filters, columns, sl_entries)
|
||||
|
||||
opening_row = get_opening_balance(filters, columns, sl_entries)
|
||||
precision = cint(frappe.db.get_single_value("System Settings", "float_precision"))
|
||||
data = process_stock_ledger_entries(sl_entries, item_details, opening_row, precision)
|
||||
|
||||
return columns, data
|
||||
|
||||
|
||||
def get_opening_balance_data(filters, columns, sl_entries):
|
||||
opening_row = get_opening_balance(filters, columns, sl_entries)
|
||||
return opening_row
|
||||
|
||||
|
||||
def process_stock_ledger_entries(sl_entries, item_details, opening_row, precision):
|
||||
data = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user