setting list_views

This commit is contained in:
Rushabh Mehta
2013-01-29 17:53:29 +05:30
parent 6abb2e67e9
commit 08da1a0a3d
105 changed files with 575 additions and 1736 deletions

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:25",
"docstatus": 0,
"modified": "2013-01-22 14:55:57",
"modified": "2013-01-29 13:40:32",
"modified_by": "Administrator",
"owner": "harshada@webnotestech.com"
},
@@ -40,15 +40,6 @@
"doctype": "DocType",
"name": "Batch"
},
{
"doctype": "DocField",
"fieldname": "trash_reason",
"fieldtype": "Small Text",
"label": "Trash Reason",
"oldfieldname": "trash_reason",
"oldfieldtype": "Small Text",
"read_only": 1
},
{
"doctype": "DocField",
"fieldname": "batch_id",
@@ -59,15 +50,36 @@
"oldfieldtype": "Data",
"reqd": 1
},
{
"doctype": "DocField",
"fieldname": "item",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Item",
"oldfieldname": "item",
"oldfieldtype": "Link",
"options": "Item",
"reqd": 1
},
{
"doctype": "DocField",
"fieldname": "description",
"fieldtype": "Small Text",
"in_list_view": 1,
"label": "Description",
"oldfieldname": "description",
"oldfieldtype": "Small Text",
"width": "300px"
},
{
"doctype": "DocField",
"fieldname": "expiry_date",
"fieldtype": "Date",
"in_list_view": 1,
"label": "Expiry Date",
"oldfieldname": "expiry_date",
"oldfieldtype": "Date"
},
{
"doctype": "DocField",
"fieldname": "start_date",
@@ -86,21 +98,12 @@
},
{
"doctype": "DocField",
"fieldname": "expiry_date",
"fieldtype": "Date",
"label": "Expiry Date",
"oldfieldname": "expiry_date",
"oldfieldtype": "Date"
},
{
"doctype": "DocField",
"fieldname": "item",
"fieldtype": "Link",
"label": "Item",
"oldfieldname": "item",
"oldfieldtype": "Link",
"options": "Item",
"reqd": 1
"fieldname": "trash_reason",
"fieldtype": "Small Text",
"label": "Trash Reason",
"oldfieldname": "trash_reason",
"oldfieldtype": "Small Text",
"read_only": 1
},
{
"doctype": "DocPerm"

View File

@@ -1,28 +0,0 @@
// render
wn.doclistviews['Batch'] = wn.views.ListView.extend({
init: function(d) {
this._super(d)
this.fields = this.fields.concat([
"`tabBatch`.item",
"`tabBatch`.description",
]);
this.stats = this.stats.concat(['company']);
},
prepare_data: function(data) {
this._super(data);
if(data.description && data.description.length > 50) {
data.description = '<span title="'+data.description+'">' +
data.description.substr(0,50) + '...</span>';
}
},
columns: [
{width: '3%', content:'check'},
{width: '5%', content:'avatar'},
{width: '15%', content:'name'},
{width: '15%', content:'item'},
{width: '50%', content:'description+tags'},
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
]
});

View File

@@ -1,8 +1,8 @@
[
{
"creation": "2013-01-10 16:34:25",
"creation": "2013-01-23 19:57:19",
"docstatus": 0,
"modified": "2013-01-23 17:11:24",
"modified": "2013-01-29 16:28:03",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -32,6 +32,7 @@
"parent": "Delivery Note",
"parentfield": "permissions",
"parenttype": "DocType",
"permlevel": 0,
"read": 1,
"report": 1
},
@@ -81,6 +82,7 @@
"fieldname": "customer_name",
"fieldtype": "Data",
"hidden": 1,
"in_list_view": 1,
"label": "Customer Name",
"read_only": 1
},
@@ -254,7 +256,7 @@
"no_copy": 0,
"oldfieldname": "net_total",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 0,
"print_width": "150px",
"read_only": 1,
@@ -280,6 +282,7 @@
"doctype": "DocField",
"fieldname": "sales_order_no",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Sales Order No",
"no_copy": 0,
"oldfieldname": "sales_order_no",
@@ -428,7 +431,7 @@
"label": "Taxes and Charges Total",
"oldfieldname": "other_charges_total",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"print_width": "150px",
"read_only": 1,
@@ -468,7 +471,7 @@
"no_copy": 0,
"oldfieldname": "grand_total",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"print_width": "150px",
"read_only": 1,
@@ -483,7 +486,7 @@
"no_copy": 0,
"oldfieldname": "rounded_total",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"print_width": "150px",
"read_only": 1,
@@ -1094,7 +1097,7 @@
"no_copy": 0,
"oldfieldname": "total_commission",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 0
},
@@ -1131,7 +1134,6 @@
"cancel": 0,
"create": 0,
"doctype": "DocPerm",
"permlevel": 0,
"role": "Accounts User",
"submit": 0,
"write": 0
@@ -1141,7 +1143,6 @@
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
"permlevel": 0,
"role": "Sales User",
"submit": 1,
"write": 1
@@ -1149,25 +1150,13 @@
{
"doctype": "DocPerm",
"match": "customer_name",
"permlevel": 0,
"role": "Customer"
},
{
"amend": 0,
"cancel": 0,
"create": 0,
"doctype": "DocPerm",
"permlevel": 2,
"role": "All",
"submit": 0,
"write": 1
},
{
"amend": 1,
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
"permlevel": 0,
"role": "Material Manager",
"submit": 1,
"write": 1
@@ -1177,7 +1166,6 @@
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
"permlevel": 0,
"role": "Material User",
"submit": 1,
"write": 1

View File

@@ -1,22 +0,0 @@
// render
wn.doclistviews['Delivery Note'] = wn.views.ListView.extend({
init: function(d) {
this._super(d);
this.fields = this.fields.concat([
"`tabDelivery Note`.customer_name",
"`tabDelivery Note`.sales_order_no",
"`tabDelivery Note`.posting_date",
]);
},
columns: [
{width: '3%', content: 'check'},
{width: '5%', content:'avatar'},
{width: '3%', content:'docstatus'},
{width: '15%', content:'name'},
{width: '47%', content:'customer_name+tags', css: {color:'#222'}},
{width: '15%', content:'sales_order_no', type:'link', doctype:'Sales Order'},
{width: '12%', content:'posting_date',
css: {'text-align': 'right', 'color':'#777'},
title: "Delivery Note Date", type: "date"}
]
});

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:26",
"docstatus": 0,
"modified": "2013-01-23 17:11:24",
"modified": "2013-01-29 16:27:56",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -155,7 +155,7 @@
"label": "Price List Rate*",
"oldfieldname": "base_ref_rate",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"width": "100px"
@@ -168,7 +168,7 @@
"label": "Rate*",
"oldfieldname": "basic_rate",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"reqd": 0,
"width": "150px"
@@ -180,7 +180,7 @@
"label": "Amount*",
"oldfieldname": "amount",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"reqd": 0,

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-21 18:19:22",
"docstatus": 0,
"modified": "2013-01-23 17:00:07",
"modified": "2013-01-29 13:32:21",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -67,6 +67,7 @@
"fieldname": "item_name",
"fieldtype": "Data",
"in_filter": 1,
"in_list_view": 1,
"label": "Item Name",
"oldfieldname": "item_name",
"oldfieldtype": "Data",
@@ -130,6 +131,7 @@
"doctype": "DocField",
"fieldname": "image_view",
"fieldtype": "Image",
"in_list_view": 1,
"label": "Image View",
"options": "image"
},
@@ -138,6 +140,7 @@
"fieldname": "description",
"fieldtype": "Small Text",
"in_filter": 0,
"in_list_view": 1,
"label": "Description",
"oldfieldname": "description",
"oldfieldtype": "Text",

View File

@@ -1,28 +0,0 @@
// render
wn.doclistviews['Item'] = wn.views.ListView.extend({
init: function(d) {
this._super(d)
this.fields = this.fields.concat([
"`tabItem`.item_name",
"`tabItem`.description",
]);
this.stats = this.stats.concat(['default_warehouse', 'brand']);
},
prepare_data: function(data) {
this._super(data);
data.description = repl("%(item_name)s | %(description)s", data);
if(data.description && data.description.length > 50) {
data.description = '<span title="'+data.description+'">' +
data.description.substr(0,50) + '...</span>';
}
},
columns: [
{width: '3%', content: 'check'},
{width: '5%', content:'avatar'},
{width: '20%', content:'name'},
{width: '60%', content:'description+tags', css: {'color': '#222'}},
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
]
});

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-22 15:24:18",
"docstatus": 0,
"modified": "2013-01-23 17:11:30",
"modified": "2013-01-29 16:28:01",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -31,6 +31,7 @@
"parent": "Purchase Receipt",
"parentfield": "permissions",
"parenttype": "DocType",
"permlevel": 0,
"read": 1,
"report": 1
},
@@ -80,7 +81,8 @@
"fieldname": "supplier_name",
"fieldtype": "Data",
"hidden": 1,
"label": "Name",
"in_list_view": 1,
"label": "Supplier Name",
"read_only": 1
},
{
@@ -241,6 +243,7 @@
"doctype": "DocField",
"fieldname": "purchase_order_no",
"fieldtype": "Link",
"in_list_view": 0,
"label": "Purchase Order",
"no_copy": 1,
"oldfieldname": "purchase_order_no",
@@ -451,7 +454,7 @@
"label": "Net Total",
"oldfieldname": "net_total",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"print_width": "150px",
"read_only": 1,
@@ -465,7 +468,7 @@
"label": "Taxes and Charges Added",
"oldfieldname": "other_charges_added",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -476,7 +479,7 @@
"label": "Taxes and Charges Deducted",
"oldfieldname": "other_charges_deducted",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -487,7 +490,7 @@
"label": "Total Tax",
"oldfieldname": "total_tax",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -498,7 +501,7 @@
"label": "Grand Total",
"oldfieldname": "grand_total",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -509,7 +512,7 @@
"label": "Rounded Total",
"oldfieldname": "rounded_total",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -895,7 +898,6 @@
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
"permlevel": 0,
"role": "Purchase User",
"submit": 1,
"write": 1
@@ -903,21 +905,13 @@
{
"doctype": "DocPerm",
"match": "supplier",
"permlevel": 0,
"role": "Supplier"
},
{
"doctype": "DocPerm",
"permlevel": 2,
"role": "All",
"write": 1
},
{
"amend": 1,
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
"permlevel": 0,
"role": "Material Manager",
"submit": 1,
"write": 1
@@ -927,7 +921,6 @@
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
"permlevel": 0,
"role": "Material User",
"submit": 1,
"write": 1

View File

@@ -1,16 +1,10 @@
// render
wn.doclistviews['Purchase Receipt'] = wn.views.ListView.extend({
init: function(d) {
this._super(d);
this.fields = this.fields.concat([
"`tabPurchase Receipt`.supplier_name",
"group_concat(`tabPurchase Receipt Item`.prevdoc_docname) as purchase_order_no",
"`tabPurchase Receipt`.posting_date",
]);
this.group_by = "`tabPurchase Receipt`.name";
},
wn.listview_settings['Purchase Receipt'] = {
add_fields: ["group_concat(`tabPurchase Receipt Item`.prevdoc_docname) \
as purchase_order_no"],
add_columns: [{"content":"purchase_order_no", width:"30%"}],
group_by: "`tabPurchase Receipt`.name",
prepare_data: function(data) {
this._super(data);
if(data.purchase_order_no) {
data.purchase_order_no = data.purchase_order_no.split(",");
var po_list = [];
@@ -21,16 +15,5 @@ wn.doclistviews['Purchase Receipt'] = wn.views.ListView.extend({
});
data.purchase_order_no = po_list.join(", ");
}
},
columns: [
{width: '3%', content: 'check'},
{width: '5%', content:'avatar'},
{width: '3%', content:'docstatus'},
{width: '15%', content:'name'},
{width: '32%', content:'supplier_name+tags', css: {color:'#222'}},
{width: '30%', content:'purchase_order_no'},
{width: '12%', content:'posting_date',
css: {'text-align': 'right', 'color':'#777'},
title: "Purhcase Receipt Date", type: "date"}
]
});
}
};

View File

@@ -1,8 +1,8 @@
[
{
"creation": "2013-01-24 11:03:43",
"creation": "2013-01-28 10:06:02",
"docstatus": 0,
"modified": "2013-01-25 18:27:53",
"modified": "2013-01-29 16:28:06",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -156,7 +156,7 @@
"fieldname": "purchase_ref_rate",
"fieldtype": "Currency",
"label": "Ref Rate*",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1
},
{
@@ -167,7 +167,7 @@
"label": "Rate*",
"oldfieldname": "purchase_rate",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"print_width": "100px",
"reqd": 1,
@@ -181,7 +181,7 @@
"label": "Amount*",
"oldfieldname": "amount",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"print_width": "100px",
"reqd": 0,
@@ -387,7 +387,7 @@
"label": "Raw Materials Supplied Cost",
"oldfieldname": "rm_supp_cost",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"print_width": "150px",
"read_only": 1,
@@ -402,7 +402,7 @@
"no_copy": 1,
"oldfieldname": "item_tax_amount",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"print_width": "150px",
"read_only": 1,
@@ -450,7 +450,7 @@
"no_copy": 1,
"oldfieldname": "valuation_rate",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_hide": 1,
"print_width": "80px",
"read_only": 1,

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:29",
"docstatus": 0,
"modified": "2013-01-23 17:11:26",
"modified": "2013-01-29 16:27:57",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -56,6 +56,7 @@
"fieldname": "status",
"fieldtype": "Select",
"in_filter": 1,
"in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
@@ -82,6 +83,7 @@
"fieldname": "item_code",
"fieldtype": "Link",
"in_filter": 1,
"in_list_view": 1,
"label": "Item Code",
"oldfieldname": "item_code",
"oldfieldtype": "Link",
@@ -98,6 +100,7 @@
"doctype": "DocField",
"fieldname": "item_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Item Name",
"read_only": 1
},
@@ -196,7 +199,7 @@
"no_copy": 1,
"oldfieldname": "purchase_rate",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"reqd": 1,
"search_index": 0
},
@@ -211,6 +214,7 @@
"fieldname": "warehouse",
"fieldtype": "Link",
"in_filter": 1,
"in_list_view": 1,
"label": "Warehouse",
"no_copy": 1,
"oldfieldname": "warehouse",

View File

@@ -1,28 +0,0 @@
// render
wn.doclistviews['Serial No'] = wn.views.ListView.extend({
init: function(d) {
this._super(d)
this.fields = this.fields.concat([
"`tabSerial No`.item_code",
"`tabSerial No`.item_name",
"`tabSerial No`.status",
"`tabSerial No`.warehouse",
]);
this.stats = this.stats.concat(['company']);
},
prepare_data: function(data) {
this._super(data);
data.item_name = data.item_name ? data.item_name : data.item_code;
},
columns: [
{width: '3%', content:'check'},
{width: '5%', content:'avatar'},
{width: '15%', content:'name'},
{width: '30%', content:'item_name+tags'},
{width: '15%', content:'status'},
{width: '20%', content:'warehouse', css: {'color': '#777'}},
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
]
});

View File

@@ -1,8 +1,8 @@
[
{
"creation": "2013-01-14 16:33:34",
"creation": "2013-01-23 19:57:20",
"docstatus": 0,
"modified": "2013-01-22 14:57:24",
"modified": "2013-01-28 17:59:20",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -36,13 +36,18 @@
"permlevel": 0
},
{
"amend": 1,
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
"name": "__common__",
"parent": "Stock Entry",
"parentfield": "permissions",
"parenttype": "DocType",
"permlevel": 0,
"read": 1,
"report": 1,
"submit": 1,
"write": 1
},
{
@@ -83,6 +88,7 @@
"fieldtype": "Select",
"hidden": 0,
"in_filter": 1,
"in_list_view": 1,
"label": "Purpose",
"no_copy": 0,
"oldfieldname": "purpose",
@@ -110,6 +116,7 @@
"fieldtype": "Date",
"hidden": 0,
"in_filter": 1,
"in_list_view": 0,
"label": "Posting Date",
"no_copy": 1,
"oldfieldname": "posting_date",
@@ -149,6 +156,7 @@
"fieldtype": "Link",
"hidden": 0,
"in_filter": 0,
"in_list_view": 1,
"label": "Default Source Warehouse",
"no_copy": 1,
"oldfieldname": "from_warehouse",
@@ -171,6 +179,7 @@
"fieldtype": "Link",
"hidden": 0,
"in_filter": 0,
"in_list_view": 1,
"label": "Default Target Warehouse",
"no_copy": 1,
"oldfieldname": "to_warehouse",
@@ -554,50 +563,11 @@
"search_index": 0
},
{
"amend": 1,
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
"permlevel": 0,
"role": "Material User",
"submit": 1
"role": "Material User"
},
{
"create": 0,
"doctype": "DocPerm",
"permlevel": 2,
"role": "Manufacturing User"
},
{
"doctype": "DocPerm",
"permlevel": 2,
"role": "Manufacturing Manager"
},
{
"amend": 1,
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
"permlevel": 0,
"role": "Manufacturing User",
"submit": 1
},
{
"amend": 1,
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
"permlevel": 0,
"role": "Manufacturing Manager",
"submit": 1
},
{
"amend": 1,
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
"permlevel": 0,
"role": "Material Manager",
"submit": 1
}
]

View File

@@ -1,24 +0,0 @@
// render
wn.doclistviews['Stock Entry'] = wn.views.ListView.extend({
init: function(d) {
this._super(d);
this.fields = this.fields.concat([
"`tabStock Entry`.purpose",
"`tabStock Entry`.from_warehouse",
"`tabStock Entry`.to_warehouse",
"`tabStock Entry`.posting_date",
]);
},
columns: [
{width: '3%', content: 'check'},
{width: '5%', content:'avatar'},
{width: '3%', content:'docstatus'},
{width: '15%', content:'name'},
{width: '15%', content:'purpose+tags', css: {color:'#222'}},
{width: '18%', content:'from_warehouse', template: 'From %(from_warehouse)s'},
{width: '18%', content:'to_warehouse', template: 'To %(to_warehouse)s'},
{width: '12%', content:'posting_date',
css: {'text-align': 'right', 'color':'#777'},
title: "Stock Entry Date", type: "date"}
]
});

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-14 16:33:34",
"docstatus": 0,
"modified": "2013-01-23 17:11:26",
"modified": "2013-01-29 16:27:57",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -101,7 +101,7 @@
"label": "Valuation Rate",
"oldfieldname": "incoming_rate",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"read_only": 0,
"reqd": 0
},
@@ -112,7 +112,7 @@
"label": "Amount",
"oldfieldname": "amount",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"read_only": 1
},
{

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-14 16:33:26",
"docstatus": 0,
"modified": "2013-01-23 17:11:26",
"modified": "2013-01-29 16:27:57",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -181,7 +181,7 @@
"label": "Incoming Rate",
"oldfieldname": "incoming_rate",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()"
"options": "Company:company:default_currency"
},
{
"doctype": "DocField",
@@ -211,7 +211,7 @@
"label": "Valuation Rate",
"oldfieldname": "valuation_rate",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()",
"options": "Company:company:default_currency",
"print_width": "150px",
"width": "150px"
},
@@ -222,7 +222,7 @@
"label": "Stock Value",
"oldfieldname": "stock_value",
"oldfieldtype": "Currency",
"options": "eval:erpnext.get_currency()"
"options": "Company:company:default_currency"
},
{
"doctype": "DocField",

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:30",
"docstatus": 0,
"modified": "2013-01-22 15:07:00",
"modified": "2013-01-29 13:29:21",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -59,6 +59,8 @@
"doctype": "DocField",
"fieldname": "warehouse_type",
"fieldtype": "Link",
"in_filter": 1,
"in_list_view": 1,
"label": "Warehouse Type",
"oldfieldname": "warehouse_type",
"oldfieldtype": "Link",
@@ -146,6 +148,7 @@
"doctype": "DocField",
"fieldname": "city",
"fieldtype": "Data",
"in_list_view": 1,
"label": "City",
"oldfieldname": "city",
"oldfieldtype": "Data",

View File

@@ -1,35 +0,0 @@
// render
wn.doclistviews['Warehouse'] = wn.views.ListView.extend({
init: function(d) {
this._super(d)
this.fields = this.fields.concat([
"`tabWarehouse`.warehouse_type",
"`tabWarehouse`.address_line_1",
"`tabWarehouse`.address_line_2",
"`tabWarehouse`.city",
"`tabWarehouse`.state",
"`tabWarehouse`.pin",
]);
this.stats = this.stats.concat(['company']);
},
prepare_data: function(data) {
this._super(data);
var concat_list = [];
data.address_line_1 && concat_list.push(data.address_line_1);
data.address_line_2 && concat_list.push(data.address_line_2);
data.city && concat_list.push(data.city);
data.state && concat_list.push(data.state);
data.pin && concat_list.push(data.pin);
data.address = concat_list.join(", ");
},
columns: [
{width: '3%', content:'check'},
{width: '5%', content:'avatar'},
{width: '20%', content:'name'},
{width: '15%', content:'warehouse_type'},
{width: '45%', content:'address+tags'},
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
]
});