mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
[minor edits] BOM Stock Report (#11012)
* HTML for BOM Stock Report to show filters in PDF * Added BOM Stock Report in Manufacturing Config under Report
This commit is contained in:
committed by
Nabin Hait
parent
3d0d4b2157
commit
32456b0f14
@@ -123,6 +123,12 @@ def get_data():
|
|||||||
"is_query_report": True,
|
"is_query_report": True,
|
||||||
"name": "BOM Search",
|
"name": "BOM Search",
|
||||||
"doctype": "BOM"
|
"doctype": "BOM"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "report",
|
||||||
|
"is_query_report": True,
|
||||||
|
"name": "BOM Stock Report",
|
||||||
|
"doctype": "BOM"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<h1 class="text-left"><b>{%= __("BOM Stock Report") %}</b></h1>
|
||||||
|
<h5 class="text-left">{%= filters.bom %}</h5>
|
||||||
|
<h5 class="text-left">{%= filters.warehouse %}</h5>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<table class="table table-bordered">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 15%">{%= __("Item") %}</th>
|
||||||
|
<th style="width: 35%">{%= __("Description") %}</th>
|
||||||
|
<th style="width: 14%">{%= __("Required Qty") %}</th>
|
||||||
|
<th style="width: 13%">{%= __("In Stock Qty") %}</th>
|
||||||
|
<th style="width: 23%">{%= __("Enough Parts to Build") %}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for(var i=0, l=data.length; i<l; i++) { %}
|
||||||
|
<tr>
|
||||||
|
<td>{%= data[i][ __("Item")] %}</td>
|
||||||
|
<td>{%= data[i][ __("Description")] %} </td>
|
||||||
|
<td align="right">{%= data[i][ __("Required Qty")] %} </td>
|
||||||
|
<td align="right">{%= data[i][ __("In Stock Qty")] %} </td>
|
||||||
|
<td align="right">{%= data[i][ __("Enough Parts to Build")] %} </td>
|
||||||
|
</tr>
|
||||||
|
{% } %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
Reference in New Issue
Block a user