Merge pull request #24708 from AfshanKhan/fix-column-name-BOM-Stock-Calculated-report
fix: column names in report BOM Stock Calculated
This commit is contained in:
commit
c532b99a4c
@ -88,11 +88,11 @@ def get_bom_stock(filters):
|
|||||||
GROUP BY bom_item.item_code""".format(qty_field=qty_field, table=table, conditions=conditions, bom=bom), as_dict=1)
|
GROUP BY bom_item.item_code""".format(qty_field=qty_field, table=table, conditions=conditions, bom=bom), as_dict=1)
|
||||||
|
|
||||||
def get_manufacturer_records():
|
def get_manufacturer_records():
|
||||||
details = frappe.get_list('Item Manufacturer', fields = ["manufacturer", "manufacturer_part_no, parent"])
|
details = frappe.get_list('Item Manufacturer', fields = ["manufacturer", "manufacturer_part_no", "parent"])
|
||||||
manufacture_details = frappe._dict()
|
manufacture_details = frappe._dict()
|
||||||
for detail in details:
|
for detail in details:
|
||||||
dic = manufacture_details.setdefault(detail.get('parent'), {})
|
dic = manufacture_details.setdefault(detail.get('parent'), {})
|
||||||
dic.setdefault('manufacturer', []).append(detail.get('manufacturer'))
|
dic.setdefault('manufacturer', []).append(detail.get('manufacturer'))
|
||||||
dic.setdefault('manufacturer_part', []).append(detail.get('manufacturer_part_no'))
|
dic.setdefault('manufacturer_part', []).append(detail.get('manufacturer_part_no'))
|
||||||
|
|
||||||
return manufacture_details
|
return manufacture_details
|
||||||
|
Loading…
Reference in New Issue
Block a user