From 32456b0f14bfe05435fcdca20bf5114a155309a3 Mon Sep 17 00:00:00 2001 From: Doridel Cahanap Date: Wed, 4 Oct 2017 18:24:44 +0800 Subject: [PATCH] [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 --- erpnext/config/manufacturing.py | 6 +++++ .../bom_stock_report/bom_stock_report.html | 27 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 erpnext/manufacturing/report/bom_stock_report/bom_stock_report.html diff --git a/erpnext/config/manufacturing.py b/erpnext/config/manufacturing.py index 11711ad0049..086d61b847e 100644 --- a/erpnext/config/manufacturing.py +++ b/erpnext/config/manufacturing.py @@ -123,6 +123,12 @@ def get_data(): "is_query_report": True, "name": "BOM Search", "doctype": "BOM" + }, + { + "type": "report", + "is_query_report": True, + "name": "BOM Stock Report", + "doctype": "BOM" } ] }, diff --git a/erpnext/manufacturing/report/bom_stock_report/bom_stock_report.html b/erpnext/manufacturing/report/bom_stock_report/bom_stock_report.html new file mode 100644 index 00000000000..119a4fc6292 --- /dev/null +++ b/erpnext/manufacturing/report/bom_stock_report/bom_stock_report.html @@ -0,0 +1,27 @@ +

{%= __("BOM Stock Report") %}

+
{%= filters.bom %}
+
{%= filters.warehouse %}
+
+ + + + + + + + + + + + + {% for(var i=0, l=data.length; i + + + + + + + {% } %} + +
{%= __("Item") %}{%= __("Description") %}{%= __("Required Qty") %}{%= __("In Stock Qty") %}{%= __("Enough Parts to Build") %}
{%= data[i][ __("Item")] %}{%= data[i][ __("Description")] %} {%= data[i][ __("Required Qty")] %} {%= data[i][ __("In Stock Qty")] %} {%= data[i][ __("Enough Parts to Build")] %}
\ No newline at end of file