From 1fa7171bfaeff1c2ff4c823334640d0c39379ec0 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 17 Dec 2014 16:22:02 +0530 Subject: [PATCH] minor fixes --- erpnext/manufacturing/doctype/bom/bom.js | 72 ++++++++++--------- .../doctype/bom_operation/bom_operation.json | 41 ++++++----- .../production_order/production_order.js | 10 +-- .../production_order/production_order.json | 58 ++++++++++++--- .../production_order_operation.json | 18 ++--- .../form_grid/production_order_grid.html | 34 --------- 6 files changed, 124 insertions(+), 109 deletions(-) delete mode 100644 erpnext/templates/form_grid/production_order_grid.html diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js index 5c099c43e3..ce9ac0e35d 100644 --- a/erpnext/manufacturing/doctype/bom/bom.js +++ b/erpnext/manufacturing/doctype/bom/bom.js @@ -31,7 +31,7 @@ cur_frm.cscript.with_operations = function(doc) { } erpnext.bom.set_operation = function(doc) { - var op_table = doc.bom_operations || []; + var op_table = doc["bom_operations"] || []; var operations = []; for (var i=0, j=op_table.length; i -
{%= __("Operation") %}
-
{%= __("Workstation") %}
-
{%= __("Completed Qty") %}
- -{% } else { %} -
-
- {%= doc.operation %} - - {%= doc.status %} - - {% include "templates/form_grid/includes/visible_cols.html" %} -
- {%= doc.get_formatted("opn_description") %} -
-
- - -
- {%= doc.get_formatted("workstation") %} -
- - -
- {%= doc.get_formatted("qty_completed") %} -
-
-{% } %}