mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
fix: Display Items in the format Item Code: Item Name
This commit is contained in:
@@ -44,6 +44,9 @@ def execute(filters=None):
|
|||||||
if filters.group_by == 'Invoice':
|
if filters.group_by == 'Invoice':
|
||||||
column_names = get_column_names()
|
column_names = get_column_names()
|
||||||
|
|
||||||
|
# to display item as Item Code: Item Name
|
||||||
|
columns[0] = 'Sales Invoice:Link/Item:300'
|
||||||
|
|
||||||
for src in gross_profit_data.si_list:
|
for src in gross_profit_data.si_list:
|
||||||
row = frappe._dict()
|
row = frappe._dict()
|
||||||
row.indent = src.indent
|
row.indent = src.indent
|
||||||
@@ -424,12 +427,12 @@ class GrossProfitGenerator(object):
|
|||||||
'description': None,
|
'description': None,
|
||||||
'warehouse': None,
|
'warehouse': None,
|
||||||
'item_group': None,
|
'item_group': None,
|
||||||
'brand': None,
|
'brand': None,
|
||||||
'dn_detail': None,
|
'dn_detail': None,
|
||||||
'delivery_note': None,
|
'delivery_note': None,
|
||||||
'qty': 0,
|
'qty': 0,
|
||||||
'item_row': None,
|
'item_row': None,
|
||||||
'is_return': row.is_return,
|
'is_return': row.is_return,
|
||||||
'cost_center': row.cost_center,
|
'cost_center': row.cost_center,
|
||||||
'base_net_amount': 0
|
'base_net_amount': 0
|
||||||
})
|
})
|
||||||
@@ -474,12 +477,12 @@ class GrossProfitGenerator(object):
|
|||||||
'description': frappe.db.get_value('Item', item.item_code, 'description'),
|
'description': frappe.db.get_value('Item', item.item_code, 'description'),
|
||||||
'warehouse': product_bundle.warehouse,
|
'warehouse': product_bundle.warehouse,
|
||||||
'item_group': frappe.db.get_value('Item', item.item_code, 'item_group'),
|
'item_group': frappe.db.get_value('Item', item.item_code, 'item_group'),
|
||||||
'brand': frappe.db.get_value('Item', item.item_code, 'brand'),
|
'brand': frappe.db.get_value('Item', item.item_code, 'brand'),
|
||||||
'dn_detail': product_bundle.dn_detail,
|
'dn_detail': product_bundle.dn_detail,
|
||||||
'delivery_note': product_bundle.delivery_note,
|
'delivery_note': product_bundle.delivery_note,
|
||||||
'qty': (product_bundle.qty * item.qty),
|
'qty': (product_bundle.qty * item.qty),
|
||||||
'item_row': None,
|
'item_row': None,
|
||||||
'is_return': product_bundle.is_return,
|
'is_return': product_bundle.is_return,
|
||||||
'cost_center': product_bundle.cost_center
|
'cost_center': product_bundle.cost_center
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user