From d8dcdfbf4fec0e8ffa975b7592ebe4597f788395 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 13 Mar 2014 16:27:30 +0530 Subject: [PATCH] Warehouse disable option --- .../accounts/doctype/sales_invoice/sales_invoice.js | 11 ----------- erpnext/stock/doctype/warehouse/warehouse.txt | 8 +++++++- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index 5793541738..1ae53416a0 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js @@ -365,17 +365,6 @@ if (sys_defaults.auto_accounting_for_stock) { } } -// warehouse in detail table -//---------------------------- -cur_frm.fields_dict['entries'].grid.get_field('warehouse').get_query = function(doc, cdt, cdn) { - var d = locals[cdt][cdn]; - return{ - filters:[ - ['Bin', 'item_code', '=', d.item_code], - ['Bin', 'actual_qty', '>', 0] - ] - } -} // Cost Center in Details Table // ----------------------------- diff --git a/erpnext/stock/doctype/warehouse/warehouse.txt b/erpnext/stock/doctype/warehouse/warehouse.txt index dc6a09844d..589fa99c11 100644 --- a/erpnext/stock/doctype/warehouse/warehouse.txt +++ b/erpnext/stock/doctype/warehouse/warehouse.txt @@ -2,7 +2,7 @@ { "creation": "2013-03-07 18:50:32", "docstatus": 0, - "modified": "2014-01-20 17:49:34", + "modified": "2014-03-13 16:26:29", "modified_by": "Administrator", "owner": "Administrator" }, @@ -80,6 +80,12 @@ "label": "Parent Account", "options": "Account" }, + { + "doctype": "DocField", + "fieldname": "disabled", + "fieldtype": "Check", + "label": "Disabled" + }, { "description": "For Reference Only.", "doctype": "DocField",