Warehouse disable option
diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
index 5793541..1ae5341 100644
--- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
+++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
@@ -365,17 +365,6 @@
}
}
-// 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 dc6a098..589fa99 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"
},
@@ -81,6 +81,12 @@
"options": "Account"
},
{
+ "doctype": "DocField",
+ "fieldname": "disabled",
+ "fieldtype": "Check",
+ "label": "Disabled"
+ },
+ {
"description": "For Reference Only.",
"doctype": "DocField",
"fieldname": "warehouse_contact_info",