From 2d768259368e040ad3b99af884e11e33b3a39ef9 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 12 May 2015 15:24:55 +0530 Subject: [PATCH] remove toggling SO and DN field in SI based on pos --- erpnext/accounts/doctype/sales_invoice/sales_invoice.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index 96b47c6926..22e0a38ea8 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js @@ -218,17 +218,13 @@ cur_frm.cscript.hide_fields = function(doc) { par_flds = ['project_name', 'due_date', 'is_opening', 'source', 'total_advance', 'get_advances_received', 'advances', 'sales_partner', 'commission_rate', 'total_commission', 'advances', 'from_date', 'to_date']; - item_flds_normal = ['sales_order', 'delivery_note'] - if(cint(doc.is_pos) == 1) { hide_field(par_flds); - cur_frm.fields_dict['items'].grid.set_column_disp(item_flds_normal, false); } else { for (i in par_flds) { var docfield = frappe.meta.docfield_map[doc.doctype][par_flds[i]]; if(!docfield.hidden) unhide_field(par_flds[i]); } - cur_frm.fields_dict['items'].grid.set_column_disp(item_flds_normal, true); } item_flds_stock = ['serial_no', 'batch_no', 'actual_qty', 'expense_account', 'warehouse', 'expense_account', 'warehouse']