diff --git a/accounts/doctype/account/account.txt b/accounts/doctype/account/account.txt
index f96e3b2e27..a0354c20d7 100644
--- a/accounts/doctype/account/account.txt
+++ b/accounts/doctype/account/account.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-19 10:23:33",
"docstatus": 0,
- "modified": "2013-01-23 17:11:26",
+ "modified": "2013-01-29 16:27:57",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -207,7 +207,7 @@
"label": "Credit Limit",
"oldfieldname": "credit_limit",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"permlevel": 0,
"print_hide": 1
},
diff --git a/accounts/doctype/bank_reconciliation/bank_reconciliation.txt b/accounts/doctype/bank_reconciliation/bank_reconciliation.txt
index 45eae2004f..194cc4257f 100644
--- a/accounts/doctype/bank_reconciliation/bank_reconciliation.txt
+++ b/accounts/doctype/bank_reconciliation/bank_reconciliation.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:05",
"docstatus": 0,
- "modified": "2013-01-23 17:11:16",
+ "modified": "2013-01-29 16:27:50",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -105,7 +105,7 @@
"fieldname": "total_amount",
"fieldtype": "Currency",
"label": "Total Amount",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
diff --git a/accounts/doctype/bank_reconciliation_detail/bank_reconciliation_detail.txt b/accounts/doctype/bank_reconciliation_detail/bank_reconciliation_detail.txt
index f4a011de99..1b8b991bb8 100644
--- a/accounts/doctype/bank_reconciliation_detail/bank_reconciliation_detail.txt
+++ b/accounts/doctype/bank_reconciliation_detail/bank_reconciliation_detail.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:05",
"docstatus": 0,
- "modified": "2013-01-23 17:11:16",
+ "modified": "2013-01-29 16:27:50",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -79,7 +79,7 @@
"label": "Debit",
"oldfieldname": "debit",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -89,7 +89,7 @@
"label": "Credit",
"oldfieldname": "credit",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
diff --git a/accounts/doctype/budget_detail/budget_detail.txt b/accounts/doctype/budget_detail/budget_detail.txt
index 58936bebba..b2b312c142 100644
--- a/accounts/doctype/budget_detail/budget_detail.txt
+++ b/accounts/doctype/budget_detail/budget_detail.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:05",
"docstatus": 0,
- "modified": "2013-01-23 17:02:32",
+ "modified": "2013-01-29 16:28:16",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -44,7 +44,7 @@
"label": "Budget Allocated",
"oldfieldname": "budget_allocated",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency(cur_frm.doc.company_name)",
+ "options": "Company:company_name:default_currency",
"reqd": 1
},
{
@@ -54,7 +54,7 @@
"label": "Actual",
"oldfieldname": "actual",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency(cur_frm.doc.company_name)",
+ "options": "Company:company_name:default_currency",
"read_only": 1
},
{
diff --git a/accounts/doctype/c_form/c_form.txt b/accounts/doctype/c_form/c_form.txt
index 4741706e76..c429632d1f 100644
--- a/accounts/doctype/c_form/c_form.txt
+++ b/accounts/doctype/c_form/c_form.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-19 10:23:34",
"docstatus": 0,
- "modified": "2013-01-23 17:11:26",
+ "modified": "2013-01-29 16:27:57",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -120,7 +120,7 @@
"fieldname": "total_amount",
"fieldtype": "Currency",
"label": "Total Amount",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 0,
"reqd": 1
},
@@ -152,7 +152,7 @@
"fieldname": "total_invoiced_amount",
"fieldtype": "Currency",
"label": "Total Invoiced Amount",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 0,
"read_only": 1
},
diff --git a/accounts/doctype/c_form_invoice_detail/c_form_invoice_detail.txt b/accounts/doctype/c_form_invoice_detail/c_form_invoice_detail.txt
index 36d8bbcc05..f9b73728ba 100644
--- a/accounts/doctype/c_form_invoice_detail/c_form_invoice_detail.txt
+++ b/accounts/doctype/c_form_invoice_detail/c_form_invoice_detail.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:06",
"docstatus": 0,
- "modified": "2013-01-23 17:11:16",
+ "modified": "2013-01-29 16:27:50",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -54,7 +54,7 @@
"fieldname": "net_total",
"fieldtype": "Currency",
"label": "Net Total",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1,
"width": "120px"
},
@@ -63,7 +63,7 @@
"fieldname": "grand_total",
"fieldtype": "Currency",
"label": "Grand Total",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1,
"width": "120px"
}
diff --git a/accounts/doctype/gl_entry/gl_entry.txt b/accounts/doctype/gl_entry/gl_entry.txt
index 433faae999..84d9eee5a9 100644
--- a/accounts/doctype/gl_entry/gl_entry.txt
+++ b/accounts/doctype/gl_entry/gl_entry.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:06",
"docstatus": 0,
- "modified": "2013-01-23 17:11:17",
+ "modified": "2013-01-29 16:27:50",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -98,7 +98,7 @@
"label": "Debit Amt",
"oldfieldname": "debit",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
@@ -107,7 +107,7 @@
"label": "Credit Amt",
"oldfieldname": "credit",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
diff --git a/accounts/doctype/journal_voucher/journal_voucher.txt b/accounts/doctype/journal_voucher/journal_voucher.txt
index 74820387b1..195d4d366d 100644
--- a/accounts/doctype/journal_voucher/journal_voucher.txt
+++ b/accounts/doctype/journal_voucher/journal_voucher.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-19 10:23:34",
"docstatus": 0,
- "modified": "2013-01-23 17:11:27",
+ "modified": "2013-01-29 16:27:58",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -123,7 +123,7 @@
"no_copy": 1,
"oldfieldname": "total_debit",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -135,7 +135,7 @@
"no_copy": 1,
"oldfieldname": "total_credit",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -151,7 +151,7 @@
"no_copy": 1,
"oldfieldname": "difference",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -311,7 +311,7 @@
"fieldname": "write_off_amount",
"fieldtype": "Currency",
"label": "Write Off Amount <=",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"report_hide": 1
},
diff --git a/accounts/doctype/journal_voucher_detail/journal_voucher_detail.txt b/accounts/doctype/journal_voucher_detail/journal_voucher_detail.txt
index 397eb0cf3e..245ddf117f 100644
--- a/accounts/doctype/journal_voucher_detail/journal_voucher_detail.txt
+++ b/accounts/doctype/journal_voucher_detail/journal_voucher_detail.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:06",
"docstatus": 0,
- "modified": "2013-01-23 17:11:17",
+ "modified": "2013-01-29 16:27:50",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -45,7 +45,7 @@
"label": "Debit",
"oldfieldname": "debit",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
@@ -54,7 +54,7 @@
"label": "Credit",
"oldfieldname": "credit",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
diff --git a/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.txt b/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.txt
index a1a5fd503d..d1374affae 100644
--- a/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.txt
+++ b/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.txt
@@ -1,8 +1,8 @@
[
{
- "creation": "2013-01-23 15:27:14",
+ "creation": "2013-01-21 18:19:17",
"docstatus": 0,
- "modified": "2013-01-23 17:11:27",
+ "modified": "2013-01-29 16:27:58",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -56,14 +56,6 @@
"label": "Company",
"options": "Company",
"print_hide": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "account_type",
- "fieldtype": "Data",
- "hidden": 1,
- "label": "Account Type",
- "read_only": 1
},
{
"doctype": "DocField",
@@ -100,7 +92,7 @@
"fieldname": "total_amount",
"fieldtype": "Currency",
"label": "Total Amount",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -108,7 +100,7 @@
"fieldname": "pending_amt_to_reconcile",
"fieldtype": "Currency",
"label": "Outstanding Amount",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
diff --git a/accounts/doctype/payment_to_invoice_matching_tool_detail/payment_to_invoice_matching_tool_detail.txt b/accounts/doctype/payment_to_invoice_matching_tool_detail/payment_to_invoice_matching_tool_detail.txt
index dd1a97fdf9..5fcb6066e2 100644
--- a/accounts/doctype/payment_to_invoice_matching_tool_detail/payment_to_invoice_matching_tool_detail.txt
+++ b/accounts/doctype/payment_to_invoice_matching_tool_detail/payment_to_invoice_matching_tool_detail.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:07",
"docstatus": 0,
- "modified": "2013-01-23 17:11:17",
+ "modified": "2013-01-29 16:27:50",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -40,7 +40,7 @@
"fieldname": "amt_due",
"fieldtype": "Currency",
"label": "Unmatched Amount",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -48,7 +48,7 @@
"fieldname": "amt_to_be_reconciled",
"fieldtype": "Currency",
"label": "Allocated Amount",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"reqd": 1
},
{
@@ -63,7 +63,7 @@
"fieldname": "total_amt",
"fieldtype": "Currency",
"label": "Total Amount",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
diff --git a/accounts/doctype/purchase_invoice/purchase_invoice.txt b/accounts/doctype/purchase_invoice/purchase_invoice.txt
index b1bd5f22cd..826afc1c2d 100755
--- a/accounts/doctype/purchase_invoice/purchase_invoice.txt
+++ b/accounts/doctype/purchase_invoice/purchase_invoice.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-21 18:19:17",
"docstatus": 0,
- "modified": "2013-01-23 17:25:09",
+ "modified": "2013-01-29 16:27:58",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -357,7 +357,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
},
@@ -460,7 +460,7 @@
"no_copy": 1,
"oldfieldname": "total_amount_to_pay",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -472,7 +472,7 @@
"no_copy": 1,
"oldfieldname": "total_advance",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -485,7 +485,7 @@
"no_copy": 1,
"oldfieldname": "outstanding_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"search_index": 1
@@ -506,7 +506,7 @@
"label": "Net Total",
"oldfieldname": "net_total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -517,7 +517,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
},
@@ -528,7 +528,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
},
@@ -539,7 +539,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
},
@@ -560,7 +560,7 @@
"fieldtype": "Currency",
"label": "Write Off Amount",
"no_copy": 1,
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1
},
{
diff --git a/accounts/doctype/purchase_invoice_advance/purchase_invoice_advance.txt b/accounts/doctype/purchase_invoice_advance/purchase_invoice_advance.txt
index 08ff6fc264..dadf28aca0 100644
--- a/accounts/doctype/purchase_invoice_advance/purchase_invoice_advance.txt
+++ b/accounts/doctype/purchase_invoice_advance/purchase_invoice_advance.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:08",
"docstatus": 0,
- "modified": "2013-01-23 17:11:17",
+ "modified": "2013-01-29 16:27:50",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -55,7 +55,7 @@
"label": "Advance Amount",
"oldfieldname": "advance_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1,
"width": "100px"
},
@@ -66,7 +66,7 @@
"label": "Allocated Amount",
"oldfieldname": "allocated_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"width": "100px"
},
{
diff --git a/accounts/doctype/purchase_invoice_item/purchase_invoice_item.txt b/accounts/doctype/purchase_invoice_item/purchase_invoice_item.txt
index bc763a4830..2891a123bf 100755
--- a/accounts/doctype/purchase_invoice_item/purchase_invoice_item.txt
+++ b/accounts/doctype/purchase_invoice_item/purchase_invoice_item.txt
@@ -1,8 +1,8 @@
[
{
- "creation": "2013-01-24 11:03:29",
+ "creation": "2013-01-28 10:05:58",
"docstatus": 0,
- "modified": "2013-01-25 18:28:20",
+ "modified": "2013-01-29 16:28:04",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -119,7 +119,7 @@
"fieldname": "purchase_ref_rate",
"fieldtype": "Currency",
"label": "Ref Rate*",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1
},
{
@@ -129,7 +129,7 @@
"label": "Rate*",
"oldfieldname": "rate",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"reqd": 1
},
@@ -140,7 +140,7 @@
"label": "Amount*",
"oldfieldname": "amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"reqd": 1
diff --git a/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.txt b/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.txt
index 976a2159f5..6067afb95d 100644
--- a/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.txt
+++ b/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:08",
"docstatus": 0,
- "modified": "2013-01-23 17:11:17",
+ "modified": "2013-01-29 16:27:50",
"modified_by": "Administrator",
"owner": "wasim@webnotestech.com"
},
@@ -72,7 +72,7 @@
"label": "Rate",
"oldfieldname": "rate",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"reqd": 0
},
{
@@ -82,7 +82,7 @@
"label": "Amount",
"oldfieldname": "tax_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"reqd": 0
},
{
@@ -92,7 +92,7 @@
"label": "Total",
"oldfieldname": "total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -159,7 +159,7 @@
"no_copy": 1,
"oldfieldname": "total_tax_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"report_hide": 1
},
@@ -173,7 +173,7 @@
"no_copy": 1,
"oldfieldname": "total_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"report_hide": 1
}
diff --git a/accounts/doctype/sales_invoice/sales_invoice.txt b/accounts/doctype/sales_invoice/sales_invoice.txt
index 2b35a2d766..1cb2ed074a 100644
--- a/accounts/doctype/sales_invoice/sales_invoice.txt
+++ b/accounts/doctype/sales_invoice/sales_invoice.txt
@@ -1,8 +1,8 @@
[
{
- "creation": "2013-01-10 16:34:08",
+ "creation": "2013-01-23 19:57:17",
"docstatus": 0,
- "modified": "2013-01-23 17:11:17",
+ "modified": "2013-01-29 16:28:02",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -244,7 +244,7 @@
"label": "Net Total*",
"oldfieldname": "net_total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 0,
"read_only": 1,
"reqd": 1
@@ -414,7 +414,7 @@
"label": "Total Taxes and Charges",
"oldfieldname": "other_charges_total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -450,7 +450,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,
"reqd": 1,
@@ -463,7 +463,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
},
@@ -485,7 +485,7 @@
"label": "Total Advance",
"oldfieldname": "total_advance",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -497,7 +497,7 @@
"no_copy": 1,
"oldfieldname": "outstanding_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -549,7 +549,7 @@
"label": "Gross Profit",
"oldfieldname": "gross_profit",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -582,7 +582,7 @@
"label": "Paid Amount",
"oldfieldname": "paid_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1
},
{
@@ -613,7 +613,7 @@
"fieldname": "write_off_amount",
"fieldtype": "Currency",
"label": "Write Off Amount",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1
},
{
@@ -1027,7 +1027,7 @@
"label": "Total Commission",
"oldfieldname": "total_commission",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1
},
{
diff --git a/accounts/doctype/sales_invoice_advance/sales_invoice_advance.txt b/accounts/doctype/sales_invoice_advance/sales_invoice_advance.txt
index f7c3c5ac34..6216c8952f 100644
--- a/accounts/doctype/sales_invoice_advance/sales_invoice_advance.txt
+++ b/accounts/doctype/sales_invoice_advance/sales_invoice_advance.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:09",
"docstatus": 0,
- "modified": "2013-01-23 17:11:18",
+ "modified": "2013-01-29 16:27:51",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -55,7 +55,7 @@
"label": "Advance amount",
"oldfieldname": "advance_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1,
"width": "120px"
},
@@ -66,7 +66,7 @@
"label": "Allocated amount",
"oldfieldname": "allocated_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"width": "120px"
},
{
diff --git a/accounts/doctype/sales_invoice_item/sales_invoice_item.txt b/accounts/doctype/sales_invoice_item/sales_invoice_item.txt
index 43685b2f16..88c5aa857a 100644
--- a/accounts/doctype/sales_invoice_item/sales_invoice_item.txt
+++ b/accounts/doctype/sales_invoice_item/sales_invoice_item.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:09",
"docstatus": 0,
- "modified": "2013-01-23 17:11:18",
+ "modified": "2013-01-29 16:27:51",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -140,7 +140,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
},
@@ -152,7 +152,7 @@
"label": "Basic Rate*",
"oldfieldname": "basic_rate",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"reqd": 1,
"search_index": 0
@@ -164,7 +164,7 @@
"label": "Amount*",
"oldfieldname": "amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"reqd": 1
diff --git a/accounts/doctype/sales_taxes_and_charges/sales_taxes_and_charges.txt b/accounts/doctype/sales_taxes_and_charges/sales_taxes_and_charges.txt
index d5294a3a49..bbac70409f 100644
--- a/accounts/doctype/sales_taxes_and_charges/sales_taxes_and_charges.txt
+++ b/accounts/doctype/sales_taxes_and_charges/sales_taxes_and_charges.txt
@@ -1,8 +1,8 @@
[
{
- "creation": "2013-01-24 11:03:30",
+ "creation": "2013-01-24 15:56:19",
"docstatus": 0,
- "modified": "2013-01-24 14:15:49",
+ "modified": "2013-01-29 16:28:04",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -82,7 +82,7 @@
"label": "Amount",
"oldfieldname": "tax_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"reqd": 0
},
{
@@ -92,7 +92,7 @@
"label": "Total",
"oldfieldname": "total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -136,7 +136,7 @@
"no_copy": 1,
"oldfieldname": "total_tax_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"report_hide": 1
},
@@ -150,7 +150,7 @@
"no_copy": 1,
"oldfieldname": "total_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"report_hide": 1
},
diff --git a/buying/doctype/purchase_order/purchase_order.txt b/buying/doctype/purchase_order/purchase_order.txt
index eed812fa35..93c630d922 100644
--- a/buying/doctype/purchase_order/purchase_order.txt
+++ b/buying/doctype/purchase_order/purchase_order.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-22 15:11:37",
"docstatus": 0,
- "modified": "2013-01-23 17:11:28",
+ "modified": "2013-01-29 16:27:59",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -31,6 +31,7 @@
"parent": "Purchase Order",
"parentfield": "permissions",
"parenttype": "DocType",
+ "permlevel": 0,
"read": 1,
"report": 1
},
@@ -435,7 +436,7 @@
"no_copy": 1,
"oldfieldname": "net_total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"reqd": 0
@@ -448,7 +449,7 @@
"no_copy": 0,
"oldfieldname": "other_charges_added",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -460,7 +461,7 @@
"no_copy": 0,
"oldfieldname": "other_charges_deducted",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -472,7 +473,7 @@
"no_copy": 1,
"oldfieldname": "total_tax",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -484,7 +485,7 @@
"no_copy": 1,
"oldfieldname": "grand_total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -495,7 +496,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
},
@@ -814,7 +815,6 @@
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
- "permlevel": 0,
"role": "Purchase User",
"submit": 1,
"write": 1
@@ -822,21 +822,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": "Purchase Manager",
"submit": 1,
"write": 1
@@ -846,7 +838,6 @@
"cancel": 0,
"create": 0,
"doctype": "DocPerm",
- "permlevel": 0,
"role": "Material User",
"submit": 0,
"write": 0
diff --git a/buying/doctype/purchase_order_item/purchase_order_item.txt b/buying/doctype/purchase_order_item/purchase_order_item.txt
index 5f45be2163..20ba876a70 100755
--- a/buying/doctype/purchase_order_item/purchase_order_item.txt
+++ b/buying/doctype/purchase_order_item/purchase_order_item.txt
@@ -1,8 +1,8 @@
[
{
- "creation": "2013-01-24 11:03:31",
+ "creation": "2013-01-28 10:05:59",
"docstatus": 0,
- "modified": "2013-01-28 11:56:26",
+ "modified": "2013-01-29 16:28:05",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -152,7 +152,7 @@
"fieldname": "purchase_ref_rate",
"fieldtype": "Currency",
"label": "Ref Rate*",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1
},
{
@@ -163,7 +163,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,
@@ -177,7 +177,7 @@
"label": "Amount*",
"oldfieldname": "amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"reqd": 1
@@ -344,7 +344,7 @@
"oldfieldtype": "Currency",
"print_hide": 1,
"print_width": "100px",
- "read_only": 0,
+ "read_only": 1,
"width": "100px"
},
{
diff --git a/buying/doctype/purchase_order_item_supplied/purchase_order_item_supplied.txt b/buying/doctype/purchase_order_item_supplied/purchase_order_item_supplied.txt
index d78763e963..dd71989400 100644
--- a/buying/doctype/purchase_order_item_supplied/purchase_order_item_supplied.txt
+++ b/buying/doctype/purchase_order_item_supplied/purchase_order_item_supplied.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:10",
"docstatus": 0,
- "modified": "2013-01-23 17:11:19",
+ "modified": "2013-01-29 16:27:51",
"modified_by": "Administrator",
"owner": "dhanalekshmi@webnotestech.com"
},
@@ -80,7 +80,7 @@
"label": "Rate",
"oldfieldname": "rate",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
@@ -89,7 +89,7 @@
"label": "Amount",
"oldfieldname": "amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
diff --git a/buying/doctype/purchase_receipt_item_supplied/purchase_receipt_item_supplied.txt b/buying/doctype/purchase_receipt_item_supplied/purchase_receipt_item_supplied.txt
index f7a0f8ce10..4c5ba81d78 100644
--- a/buying/doctype/purchase_receipt_item_supplied/purchase_receipt_item_supplied.txt
+++ b/buying/doctype/purchase_receipt_item_supplied/purchase_receipt_item_supplied.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:10",
"docstatus": 0,
- "modified": "2013-01-23 17:11:19",
+ "modified": "2013-01-29 16:27:51",
"modified_by": "Administrator",
"owner": "wasim@webnotestech.com"
},
@@ -98,7 +98,7 @@
"label": "Rate",
"oldfieldname": "rate",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
@@ -117,7 +117,7 @@
"label": "Amount",
"oldfieldname": "amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
diff --git a/buying/doctype/supplier/supplier.txt b/buying/doctype/supplier/supplier.txt
index 370a16e00f..95fa717cfb 100644
--- a/buying/doctype/supplier/supplier.txt
+++ b/buying/doctype/supplier/supplier.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:11",
"docstatus": 0,
- "modified": "2013-01-22 16:55:25",
+ "modified": "2013-01-29 14:35:42",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -52,6 +52,7 @@
"doctype": "DocField",
"fieldname": "supplier_name",
"fieldtype": "Data",
+ "in_list_view": 1,
"label": "Supplier Name",
"no_copy": 1,
"oldfieldname": "supplier_name",
@@ -62,6 +63,7 @@
"doctype": "DocField",
"fieldname": "supplier_type",
"fieldtype": "Link",
+ "in_list_view": 1,
"label": "Supplier Type",
"oldfieldname": "supplier_type",
"oldfieldtype": "Link",
diff --git a/buying/doctype/supplier/supplier_list.js b/buying/doctype/supplier/supplier_list.js
deleted file mode 100644
index 6f9a356a59..0000000000
--- a/buying/doctype/supplier/supplier_list.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// render
-wn.doclistviews['Supplier'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabSupplier`.supplier_type",
- "`tabSupplier`.supplier_name",
- ]);
- //this.stats = this.stats.concat(['company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- data.supplier_name = repl("%(supplier_name)s",
- data);
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content:'avatar'},
- {width: '50%', content:'supplier_name'},
- {width: '10%', content:'tags'},
- {width: '20%', content:'supplier_type', css: {'color': '#aaa'}},
- {width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
- ]
-});
-
diff --git a/buying/doctype/supplier_quotation/supplier_quotation.txt b/buying/doctype/supplier_quotation/supplier_quotation.txt
index 709e2cdc43..1e44587ea0 100644
--- a/buying/doctype/supplier_quotation/supplier_quotation.txt
+++ b/buying/doctype/supplier_quotation/supplier_quotation.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-21 18:19:20",
"docstatus": 0,
- "modified": "2013-01-23 17:11:28",
+ "modified": "2013-01-29 16:27:59",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -31,6 +31,7 @@
"parent": "Supplier Quotation",
"parentfield": "permissions",
"parenttype": "DocType",
+ "permlevel": 0,
"read": 1,
"report": 1
},
@@ -390,7 +391,7 @@
"no_copy": 1,
"oldfieldname": "net_total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"reqd": 0
@@ -403,7 +404,7 @@
"no_copy": 0,
"oldfieldname": "other_charges_added",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -415,7 +416,7 @@
"no_copy": 0,
"oldfieldname": "other_charges_deducted",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -427,7 +428,7 @@
"no_copy": 1,
"oldfieldname": "total_tax",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -439,7 +440,7 @@
"no_copy": 1,
"oldfieldname": "grand_total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1
},
@@ -450,7 +451,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
},
@@ -676,7 +677,6 @@
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
- "permlevel": 0,
"role": "Manufacturing Manager",
"submit": 1,
"write": 1
@@ -686,7 +686,6 @@
"cancel": 1,
"create": 1,
"doctype": "DocPerm",
- "permlevel": 0,
"role": "Purchase Manager",
"submit": 1,
"write": 1
@@ -696,7 +695,6 @@
"cancel": 0,
"create": 1,
"doctype": "DocPerm",
- "permlevel": 0,
"role": "Purchase User",
"submit": 0,
"write": 1
@@ -706,7 +704,6 @@
"cancel": 0,
"create": 0,
"doctype": "DocPerm",
- "permlevel": 0,
"role": "Material User",
"submit": 0,
"write": 0
@@ -716,19 +713,8 @@
"cancel": 0,
"create": 0,
"doctype": "DocPerm",
- "permlevel": 0,
"role": "Supplier",
"submit": 0,
"write": 0
- },
- {
- "amend": 0,
- "cancel": 0,
- "create": 0,
- "doctype": "DocPerm",
- "permlevel": 2,
- "role": "All",
- "submit": 0,
- "write": 1
}
]
\ No newline at end of file
diff --git a/buying/doctype/supplier_quotation_item/supplier_quotation_item.txt b/buying/doctype/supplier_quotation_item/supplier_quotation_item.txt
index 60b424e51f..ab1f3e4779 100644
--- a/buying/doctype/supplier_quotation_item/supplier_quotation_item.txt
+++ b/buying/doctype/supplier_quotation_item/supplier_quotation_item.txt
@@ -1,8 +1,8 @@
[
{
- "creation": "2013-01-24 11:03:32",
+ "creation": "2013-01-28 10:06:00",
"docstatus": 0,
- "modified": "2013-01-25 18:28:54",
+ "modified": "2013-01-29 16:28:05",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -138,7 +138,7 @@
"fieldname": "purchase_ref_rate",
"fieldtype": "Currency",
"label": "Ref Rate*",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1
},
{
@@ -149,7 +149,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,
@@ -163,7 +163,7 @@
"label": "Amount*",
"oldfieldname": "amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"reqd": 1
diff --git a/hr/doctype/appraisal/appraisal.txt b/hr/doctype/appraisal/appraisal.txt
index 718910d071..9ed85e694f 100644
--- a/hr/doctype/appraisal/appraisal.txt
+++ b/hr/doctype/appraisal/appraisal.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:12",
"docstatus": 0,
- "modified": "2013-01-22 14:55:57",
+ "modified": "2013-01-29 17:50:21",
"modified_by": "Administrator",
"owner": "ashwini@webnotestech.com"
},
@@ -76,6 +76,7 @@
"fieldname": "employee_name",
"fieldtype": "Data",
"in_filter": 1,
+ "in_list_view": 1,
"label": "For Employee Name",
"oldfieldname": "employee_name",
"oldfieldtype": "Data",
@@ -96,6 +97,7 @@
"fieldname": "status",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
@@ -111,6 +113,7 @@
"fieldname": "start_date",
"fieldtype": "Date",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Start Date",
"oldfieldname": "start_date",
"oldfieldtype": "Date",
@@ -159,6 +162,7 @@
"doctype": "DocField",
"fieldname": "total_score",
"fieldtype": "Float",
+ "in_list_view": 1,
"label": "Total Score (Out of 5)",
"no_copy": 1,
"oldfieldname": "total_score",
diff --git a/hr/doctype/appraisal/appraisal_list.js b/hr/doctype/appraisal/appraisal_list.js
deleted file mode 100644
index 074bced0e4..0000000000
--- a/hr/doctype/appraisal/appraisal_list.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// render
-wn.doclistviews['Appraisal'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabAppraisal`.employee_name",
- "`tabAppraisal`.start_date",
- "`tabAppraisal`.end_date",
- "`tabAppraisal`.total_score",
- "`tabAppraisal`.status",
- ]);
- this.stats = this.stats.concat(['company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- data.start_date = wn.datetime.str_to_user(data.start_date);
- data.end_date = wn.datetime.str_to_user(data.end_date);
- data.date_range = data.start_date + " to " + data.end_date;
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '3%', content: 'docstatus'},
- {width: '15%', content: 'name'},
- {width: '25%', content: 'employee_name'},
- {width: '12%', content: 'status+tags'},
- {width: '12%', content: 'total_score', css: {'text-align': 'right'}},
- {width: '30%', content:'date_range',
- css: {'text-align': 'right', 'color': '#777'}},
-]
-});
\ No newline at end of file
diff --git a/hr/doctype/attendance/attendance.txt b/hr/doctype/attendance/attendance.txt
index 1a68f81909..127b7e30ff 100644
--- a/hr/doctype/attendance/attendance.txt
+++ b/hr/doctype/attendance/attendance.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:13",
"docstatus": 0,
- "modified": "2013-01-22 14:16:20",
+ "modified": "2013-01-29 17:52:06",
"modified_by": "Administrator",
"owner": "ashwini@webnotestech.com"
},
@@ -73,6 +73,7 @@
"doctype": "DocField",
"fieldname": "employee_name",
"fieldtype": "Data",
+ "in_list_view": 1,
"label": "Employee Name",
"oldfieldname": "employee_name",
"oldfieldtype": "Data"
@@ -82,6 +83,7 @@
"fieldname": "status",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
@@ -95,6 +97,7 @@
"fieldname": "leave_type",
"fieldtype": "Link",
"hidden": 1,
+ "in_list_view": 1,
"label": "Leave Type",
"oldfieldname": "leave_type",
"oldfieldtype": "Link",
diff --git a/hr/doctype/attendance/attendance_list.js b/hr/doctype/attendance/attendance_list.js
deleted file mode 100644
index 4505980dcc..0000000000
--- a/hr/doctype/attendance/attendance_list.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// render
-wn.doclistviews['Attendance'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabAttendance`.att_date",
- "`tabAttendance`.employee_name",
- "`tabAttendance`.`status`",
-
- ]);
- this.stats = this.stats.concat(['company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- data.att_date = wn.datetime.str_to_user(data.att_date);
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '3%', content:'docstatus'},
- {width: '12%', content:'name'},
- {width: '47%', content:'employee_name'},
- {width: '13%', content:'status'},
- {width: '10%', content:'tags'},
- //{width: '23%', content:'supplier_type', css: {'color': '#aaa'}},
- {width: '12%', content:'att_date', css: {'text-align': 'right', 'color':'#777'}}
- ]
-});
\ No newline at end of file
diff --git a/hr/doctype/employee/employee.txt b/hr/doctype/employee/employee.txt
index 3a1809f316..e8879f5fb8 100644
--- a/hr/doctype/employee/employee.txt
+++ b/hr/doctype/employee/employee.txt
@@ -1,8 +1,8 @@
[
{
- "creation": "2013-01-10 16:34:13",
+ "creation": "2013-01-23 19:57:17",
"docstatus": 0,
- "modified": "2013-01-22 14:56:01",
+ "modified": "2013-01-29 17:47:25",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -56,6 +56,7 @@
"doctype": "DocField",
"fieldname": "image_view",
"fieldtype": "Image",
+ "in_list_view": 1,
"label": "Image View",
"options": "image"
},
@@ -95,6 +96,7 @@
"doctype": "DocField",
"fieldname": "employee_name",
"fieldtype": "Data",
+ "in_list_view": 1,
"label": "Full Name",
"oldfieldname": "employee_name",
"oldfieldtype": "Data",
@@ -191,6 +193,7 @@
"fieldname": "status",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Status",
"oldfieldname": "status",
"oldfieldtype": "Select",
@@ -203,6 +206,7 @@
"fieldname": "employment_type",
"fieldtype": "Link",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Employment Type",
"oldfieldname": "employment_type",
"oldfieldtype": "Link",
diff --git a/hr/doctype/employee/employee_list.js b/hr/doctype/employee/employee_list.js
deleted file mode 100644
index fbd338e99a..0000000000
--- a/hr/doctype/employee/employee_list.js
+++ /dev/null
@@ -1,56 +0,0 @@
-// render
-wn.doclistviews['Employee'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabEmployee`.employee_name",
- "`tabEmployee`.employee_number",
- "`tabEmployee`.employment_type",
- "`tabEmployee`.designation",
- "`tabEmployee`.department",
- "`tabEmployee`.branch",
- "`tabEmployee`.company",
- "`tabEmployee`.reports_to",
- "`tabEmployee`.date_of_joining",
- "`tabEmployee`.status",
- ]);
- this.stats = this.stats.concat(['status', 'company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
-
- data.employee_name = data.employee_name
- + (data.employee_number ? ' [' + data.employee_number + ']' : '');
-
- data.date_of_joining = wn.datetime.str_to_user(data.date_of_joining);
- data.designation = data.designation
- + (data.employment_type ? ' [' + data.employment_type + ']' : '');
-
- var concat_list = [];
- data.designation && concat_list.push(data.designation);
- data.department && concat_list.push(data.department);
- data.company && concat_list.push(data.company);
- data.branch && concat_list.push(data.branch);
- data.description = concat_list.join(", ");
-
- if(data.status=='Left') {
- data.label_type = 'important';
- } else if(data.status=='Active') {
- data.label_type = 'success';
- }
- data.status_html = repl('%(status)s', data);
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '12%', content: 'name'},
- {width: '25%', content: 'employee_name'},
- {width: '10%', content: 'status_html'},
- {width: '38%', content: 'description+tags',
- css: {'color': '#aaa'}},
- {width: '12%', content:'date_of_joining',
- css: {'text-align': 'right', 'color': '#777'}},
-]
-});
\ No newline at end of file
diff --git a/hr/doctype/employee_external_work_history/employee_external_work_history.txt b/hr/doctype/employee_external_work_history/employee_external_work_history.txt
index 8c822efdcc..eea7d65773 100644
--- a/hr/doctype/employee_external_work_history/employee_external_work_history.txt
+++ b/hr/doctype/employee_external_work_history/employee_external_work_history.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:14",
"docstatus": 0,
- "modified": "2013-01-23 17:11:20",
+ "modified": "2013-01-29 16:27:51",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -47,7 +47,7 @@
"label": "Salary",
"oldfieldname": "salary",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
diff --git a/hr/doctype/expense_claim/expense_claim.txt b/hr/doctype/expense_claim/expense_claim.txt
index ea52df871d..954a694702 100644
--- a/hr/doctype/expense_claim/expense_claim.txt
+++ b/hr/doctype/expense_claim/expense_claim.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:14",
"docstatus": 0,
- "modified": "2013-01-23 17:11:20",
+ "modified": "2013-01-29 17:43:18",
"modified_by": "Administrator",
"owner": "harshada@webnotestech.com"
},
@@ -44,6 +44,7 @@
"fieldname": "approval_status",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Approval Status",
"no_copy": 1,
"oldfieldname": "approval_status",
@@ -72,11 +73,12 @@
"fieldname": "total_claimed_amount",
"fieldtype": "Currency",
"in_filter": 0,
+ "in_list_view": 1,
"label": "Total Claimed Amount",
"no_copy": 1,
"oldfieldname": "total_claimed_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1,
"reqd": 0,
"width": "160px"
@@ -86,11 +88,12 @@
"fieldname": "total_sanctioned_amount",
"fieldtype": "Currency",
"in_filter": 0,
+ "in_list_view": 1,
"label": "Total Sanctioned Amount",
"no_copy": 1,
"oldfieldname": "total_sanctioned_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1,
"width": "160px"
},
@@ -134,6 +137,7 @@
"fieldname": "employee_name",
"fieldtype": "Data",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Employee Name",
"oldfieldname": "employee_name",
"oldfieldtype": "Data",
diff --git a/hr/doctype/expense_claim/expense_claim_list.js b/hr/doctype/expense_claim/expense_claim_list.js
deleted file mode 100644
index 4e5a0dc25a..0000000000
--- a/hr/doctype/expense_claim/expense_claim_list.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// render
-wn.doclistviews['Expense Claim'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabExpense Claim`.employee_name",
- "`tabExpense Claim`.posting_date",
- "`tabExpense Claim`.approval_status",
- "`tabExpense Claim`.total_claimed_amount",
- "`tabExpense Claim`.total_sanctioned_amount",
- "`tabExpense Claim`.company",
- ]);
- this.stats = this.stats.concat(['company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- data.posting_date = wn.datetime.str_to_user(data.posting_date);
- data.employee_name = data.employee_name + ' claimed '
- + format_currency(data.total_claimed_amount, erpnext.get_currency(data.company));
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content: 'avatar'},
- {width: '3%', content: 'docstatus'},
- {width: '12%', content: 'name'},
- {width: '41%', content: 'employee_name+tags'},
- {width: '10%', content: 'approval_status'},
- {
- width: '12%',
- content: function(parent, data) {
- $(parent).html(format_currency(data.total_sanctioned_amount,
- erpnext.get_currency(data.company)));
- },
- css: {'text-align': 'right'},
- },
- {width: '12%', content: 'posting_date',
- css: {'text-align': 'right', 'color': '#777'}},
- ]
-});
\ No newline at end of file
diff --git a/hr/doctype/expense_claim_detail/expense_claim_detail.txt b/hr/doctype/expense_claim_detail/expense_claim_detail.txt
index 2d6a23c207..d8f9400b35 100644
--- a/hr/doctype/expense_claim_detail/expense_claim_detail.txt
+++ b/hr/doctype/expense_claim_detail/expense_claim_detail.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:14",
"docstatus": 0,
- "modified": "2013-01-23 17:11:20",
+ "modified": "2013-01-29 16:27:51",
"modified_by": "Administrator",
"owner": "harshada@webnotestech.com"
},
@@ -61,7 +61,7 @@
"label": "Claim Amount",
"oldfieldname": "claim_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"reqd": 1,
"width": "150px"
},
@@ -74,7 +74,7 @@
"no_copy": 1,
"oldfieldname": "sanctioned_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"width": "150px"
}
]
\ No newline at end of file
diff --git a/hr/doctype/job_applicant/job_applicant.txt b/hr/doctype/job_applicant/job_applicant.txt
index 0078c95593..4500d9b64a 100644
--- a/hr/doctype/job_applicant/job_applicant.txt
+++ b/hr/doctype/job_applicant/job_applicant.txt
@@ -1,77 +1,80 @@
[
{
- "owner": "Administrator",
- "docstatus": 0,
"creation": "2013-01-15 16:32:13",
+ "docstatus": 0,
+ "modified": "2013-01-29 17:44:52",
"modified_by": "Administrator",
- "modified": "2013-01-15 17:40:29"
+ "owner": "Administrator"
},
{
- "autoname": "field:applicant_name",
"allow_attach": 1,
+ "autoname": "field:applicant_name",
"description": "Applicant for a Job",
"doctype": "DocType",
- "module": "HR",
"document_type": "Transaction",
+ "module": "HR",
"name": "__common__"
},
{
+ "doctype": "DocField",
"name": "__common__",
"parent": "Job Applicant",
- "doctype": "DocField",
+ "parentfield": "fields",
"parenttype": "DocType",
- "permlevel": 0,
- "parentfield": "fields"
+ "permlevel": 0
},
{
- "parent": "Job Applicant",
- "read": 1,
"cancel": 1,
- "name": "__common__",
"create": 1,
"doctype": "DocPerm",
- "write": 1,
+ "name": "__common__",
+ "parent": "Job Applicant",
+ "parentfield": "permissions",
"parenttype": "DocType",
- "role": "HR User",
- "report": 1,
"permlevel": 0,
- "parentfield": "permissions"
+ "read": 1,
+ "report": 1,
+ "role": "HR User",
+ "write": 1
},
{
- "name": "Job Applicant",
- "doctype": "DocType"
+ "doctype": "DocType",
+ "name": "Job Applicant"
},
{
"doctype": "DocField",
- "label": "Applicant Name",
"fieldname": "applicant_name",
"fieldtype": "Data",
+ "in_list_view": 1,
+ "label": "Applicant Name",
"reqd": 1
},
{
"doctype": "DocField",
- "label": "Email Id",
"fieldname": "email_id",
- "fieldtype": "Data"
+ "fieldtype": "Data",
+ "label": "Email Id"
},
{
"doctype": "DocField",
- "label": "Status",
"fieldname": "status",
"fieldtype": "Select",
+ "in_list_view": 1,
+ "label": "Status",
"options": "Open\nReplied\nRejected\nHold"
},
{
"doctype": "DocField",
- "width": "50%",
"fieldname": "column_break_3",
- "fieldtype": "Column Break"
+ "fieldtype": "Column Break",
+ "width": "50%"
},
{
"doctype": "DocField",
- "label": "Job Opening",
"fieldname": "job_opening",
"fieldtype": "Link",
+ "in_list_view": 1,
+ "label": "Job Opening",
"options": "Job Opening"
},
{
@@ -81,18 +84,19 @@
},
{
"doctype": "DocField",
- "label": "Thread HTML",
"fieldname": "thread_html",
- "fieldtype": "HTML"
+ "fieldtype": "HTML",
+ "label": "Thread HTML"
},
{
- "print_hide": 1,
- "no_copy": 1,
"doctype": "DocField",
- "label": "File List",
"fieldname": "file_list",
"fieldtype": "Text",
- "hidden": 1
+ "hidden": 1,
+ "in_list_view": 1,
+ "label": "File List",
+ "no_copy": 1,
+ "print_hide": 1
},
{
"doctype": "DocPerm"
diff --git a/hr/doctype/job_applicant/job_applicant_list.js b/hr/doctype/job_applicant/job_applicant_list.js
deleted file mode 100644
index 3d149efef1..0000000000
--- a/hr/doctype/job_applicant/job_applicant_list.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// render
-wn.doclistviews['Job Applicant'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabJob Applicant`.status",
- '`tabJob Applicant`.modified_by'
-
- ]);
- this.stats = this.stats.concat(['status']);
- this.show_hide_check_column();
- },
-
- label_style: {
- "status": {
- "Open": "danger",
- "Hold": "info",
- "Rejected": "plain",
- }
- },
-
- prepare_data: function(data) {
- this._super(data);
-
- data.label_style = this.label_style.status[data.status];
- if(data.label_style=="danger")
- data.label_style = "important"
-
- data.status_html = repl('%(status)s', data);
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content:'avatar_modified'},
- {width: '30%', content:'name'},
- {width: '50%', content:'status_html'},
- {width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
- ]
-
-});
diff --git a/hr/doctype/leave_application/leave_application.txt b/hr/doctype/leave_application/leave_application.txt
index cc2bf15f5e..310d2056a1 100644
--- a/hr/doctype/leave_application/leave_application.txt
+++ b/hr/doctype/leave_application/leave_application.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:14",
"docstatus": 0,
- "modified": "2013-01-22 14:47:02",
+ "modified": "2013-01-29 17:41:32",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -42,6 +42,7 @@
"doctype": "DocField",
"fieldname": "status",
"fieldtype": "Select",
+ "in_list_view": 1,
"label": "Status",
"no_copy": 1,
"options": "Open\nApproved\nRejected",
@@ -61,6 +62,7 @@
"fieldname": "leave_type",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Leave Type",
"options": "link:Leave Type",
"permlevel": 0,
@@ -71,6 +73,7 @@
"doctype": "DocField",
"fieldname": "from_date",
"fieldtype": "Date",
+ "in_list_view": 1,
"label": "From Date",
"permlevel": 0,
"reqd": 1,
@@ -80,6 +83,7 @@
"doctype": "DocField",
"fieldname": "to_date",
"fieldtype": "Date",
+ "in_list_view": 0,
"label": "To Date",
"permlevel": 0,
"reqd": 1,
@@ -123,6 +127,7 @@
"fieldname": "employee_name",
"fieldtype": "Data",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Employee Name",
"permlevel": 0,
"read_only": 1,
diff --git a/hr/doctype/leave_application/leave_application_list.js b/hr/doctype/leave_application/leave_application_list.js
deleted file mode 100644
index 4c80e7fefe..0000000000
--- a/hr/doctype/leave_application/leave_application_list.js
+++ /dev/null
@@ -1,51 +0,0 @@
-// render
-wn.doclistviews['Leave Application'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabLeave Application`.status",
- "`tabLeave Application`.employee_name",
- "`tabLeave Application`.total_leave_days",
- "`tabLeave Application`.from_date",
- "`tabLeave Application`.to_date",
-
- ]);
- this.stats = this.stats.concat(['company']);
- },
-
- label_style: {
- "status": {
- "Open": "danger",
- "Approved": "success",
- "Rejected": "info",
- }
- },
-
- prepare_data: function(data) {
- this._super(data);
-
- data.label_style = this.label_style.status[data.status];
- data.status_html = repl('%(status)s', data);
-
- data.from_date = wn.datetime.str_to_user(data.from_date);
- data.to_date = wn.datetime.str_to_user(data.to_date);
- data.date_range = (data.from_date === data.to_date)
- ? data.from_date
- : data.from_date + " to " + data.to_date;
- data.total_leave_days = data.total_leave_days<=1
- ? data.total_leave_days + " day"
- : data.total_leave_days + " days"
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content:'avatar'},
- {width: '3%', content:'docstatus'},
- {width: '15%', content:'status_html'},
- {width: '12%', content:'name'},
- {width: '25%', content:'employee_name+tags'},
- {width: '25%', content:'date_range'},
- {width: '12%', content:'modified'},
- ]
-});
\ No newline at end of file
diff --git a/hr/doctype/salary_slip/salary_slip.txt b/hr/doctype/salary_slip/salary_slip.txt
index 0f68971c5e..54db9a105c 100644
--- a/hr/doctype/salary_slip/salary_slip.txt
+++ b/hr/doctype/salary_slip/salary_slip.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:15",
"docstatus": 0,
- "modified": "2013-01-23 17:11:20",
+ "modified": "2013-01-29 17:38:08",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -61,6 +61,7 @@
"fieldname": "employee_name",
"fieldtype": "Data",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Employee Name",
"oldfieldname": "employee_name",
"oldfieldtype": "Data",
@@ -153,6 +154,7 @@
"fieldname": "fiscal_year",
"fieldtype": "Link",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Fiscal Year",
"oldfieldname": "fiscal_year",
"oldfieldtype": "Data",
@@ -174,6 +176,7 @@
"fieldname": "month",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Month",
"oldfieldname": "month",
"oldfieldtype": "Select",
@@ -326,7 +329,7 @@
"label": "Arrear Amount",
"oldfieldname": "arrear_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
@@ -335,7 +338,7 @@
"label": "Leave Encashment Amount",
"oldfieldname": "encashment_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
@@ -344,7 +347,7 @@
"label": "Gross Pay",
"oldfieldname": "gross_pay",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -354,7 +357,7 @@
"label": "Total Deduction",
"oldfieldname": "total_deduction",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -372,7 +375,7 @@
"label": "Net Pay",
"oldfieldname": "net_pay",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -380,7 +383,7 @@
"fieldname": "rounded_total",
"fieldtype": "Currency",
"label": "Rounded Total",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
diff --git a/hr/doctype/salary_slip/salary_slip_list.js b/hr/doctype/salary_slip/salary_slip_list.js
deleted file mode 100644
index dc0b83669d..0000000000
--- a/hr/doctype/salary_slip/salary_slip_list.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// render
-wn.doclistviews['Salary Slip'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabSalary Slip`.employee_name",
- "`tabSalary Slip`.designation",
- "`tabSalary Slip`.branch",
- "`tabSalary Slip`.rounded_total",
- "`tabSalary Slip`.company",
- "`tabSalary Slip`.month",
- "`tabSalary Slip`.fiscal_year",
- ]);
- this.stats = this.stats.concat(['company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- var concat_list = [];
- data.designation && concat_list.push(data.designation);
- data.branch && concat_list.push(data.branch);
- data.description = concat_list.join(", ");
- data.month = month_list[cint(data.month)-1] + " [" + data.fiscal_year + "]";
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '3%', content: 'docstatus'},
- {width: '14%', content: 'name'},
- {width: '20%', content: 'employee_name'},
- {width: '27%', content: 'description+tags', css: {'color': '#aaa'}},
- {width: '17%', content:'month', css: {'text-align': 'right', 'color':'#aaa'}},
- {
- width: '16%',
- content: function(parent, data) {
- $(parent).html(format_currency(data.rounded_total,
- erpnext.get_currency(data.company)));
- },
- css: {'text-align': 'right'},
- },
-]
-});
\ No newline at end of file
diff --git a/hr/doctype/salary_slip_deduction/salary_slip_deduction.txt b/hr/doctype/salary_slip_deduction/salary_slip_deduction.txt
index 545fe94ab1..958147c1a9 100644
--- a/hr/doctype/salary_slip_deduction/salary_slip_deduction.txt
+++ b/hr/doctype/salary_slip_deduction/salary_slip_deduction.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:15",
"docstatus": 0,
- "modified": "2013-01-23 17:11:20",
+ "modified": "2013-01-29 16:27:52",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -55,7 +55,7 @@
"label": "Amount",
"oldfieldname": "d_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -63,7 +63,7 @@
"fieldname": "d_modified_amount",
"fieldtype": "Currency",
"label": "Modified Amount",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
diff --git a/hr/doctype/salary_slip_earning/salary_slip_earning.txt b/hr/doctype/salary_slip_earning/salary_slip_earning.txt
index aafab56a52..e0acf29796 100644
--- a/hr/doctype/salary_slip_earning/salary_slip_earning.txt
+++ b/hr/doctype/salary_slip_earning/salary_slip_earning.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:15",
"docstatus": 0,
- "modified": "2013-01-23 17:11:20",
+ "modified": "2013-01-29 16:27:52",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -55,7 +55,7 @@
"label": "Amount",
"oldfieldname": "e_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -63,7 +63,7 @@
"fieldname": "e_modified_amount",
"fieldtype": "Currency",
"label": "Modified Amount",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
diff --git a/hr/doctype/salary_structure/salary_structure.txt b/hr/doctype/salary_structure/salary_structure.txt
index e30d9a2d16..c2efac6a8d 100644
--- a/hr/doctype/salary_structure/salary_structure.txt
+++ b/hr/doctype/salary_structure/salary_structure.txt
@@ -1,8 +1,8 @@
[
{
- "creation": "2013-01-10 16:34:15",
+ "creation": "2013-01-23 19:57:18",
"docstatus": 0,
- "modified": "2013-01-23 17:11:20",
+ "modified": "2013-01-29 17:35:34",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -58,6 +58,7 @@
"doctype": "DocField",
"fieldname": "employee_name",
"fieldtype": "Data",
+ "in_list_view": 1,
"label": "Employee Name",
"oldfieldname": "employee_name",
"oldfieldtype": "Data",
@@ -123,6 +124,7 @@
"fieldname": "is_active",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Is Active",
"oldfieldname": "is_active",
"oldfieldtype": "Select",
@@ -133,6 +135,7 @@
"doctype": "DocField",
"fieldname": "from_date",
"fieldtype": "Date",
+ "in_list_view": 1,
"label": "From Date",
"oldfieldname": "from_date",
"oldfieldtype": "Date",
@@ -142,6 +145,7 @@
"doctype": "DocField",
"fieldname": "to_date",
"fieldtype": "Date",
+ "in_list_view": 1,
"label": "To Date",
"oldfieldname": "to_date",
"oldfieldtype": "Date"
@@ -155,7 +159,7 @@
"label": "CTC",
"oldfieldname": "ctc",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"reqd": 1
},
{
@@ -235,7 +239,7 @@
"label": "Total Earning",
"oldfieldname": "total_earning",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -245,7 +249,7 @@
"label": "Total Deduction",
"oldfieldname": "total_deduction",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
@@ -259,7 +263,7 @@
"fieldname": "net_pay",
"fieldtype": "Currency",
"label": "Net Pay",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
diff --git a/hr/doctype/salary_structure/salary_structure_list.js b/hr/doctype/salary_structure/salary_structure_list.js
deleted file mode 100644
index 53182edf4b..0000000000
--- a/hr/doctype/salary_structure/salary_structure_list.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// render
-wn.doclistviews['Salary Structure'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabSalary Structure`.employee_name",
- "`tabSalary Structure`.designation",
- "`tabSalary Structure`.branch",
- "`tabSalary Structure`.net_pay",
- "`tabSalary Structure`.from_date",
- "`tabSalary Structure`.to_date",
- "`tabSalary Structure`.company"
- ]);
- this.stats = this.stats.concat(['company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- var concat_list = [];
- data.designation && concat_list.push(data.designation);
- data.branch && concat_list.push(data.branch);
- data.description = concat_list.join(", ");
- data.period = data.from_date + (data.to_date && ' to ' + data.to_date);
- },
-
- columns: [
- {width: '2%', content: 'check'},
- {width: '2%', content: 'docstatus'},
- {width: '13%', content: 'name'},
- {width: '18%', content: 'employee_name'},
- {width: '24%', content: 'description+tags', css: {'color': '#aaa'}},
- {width: '26%', content:'period', css: {'text-align': 'right', 'color':'#aaa'}},
- {
- width: '15%',
- content: function(parent, data) {
- $(parent).html(format_currency(data.net_pay,
- erpnext.get_currency(data.company)));
- },
- css: {'text-align': 'right'},
- },
-]
-});
\ No newline at end of file
diff --git a/hr/doctype/salary_structure_deduction/salary_structure_deduction.txt b/hr/doctype/salary_structure_deduction/salary_structure_deduction.txt
index 262cf95b4f..1591b0f7ed 100644
--- a/hr/doctype/salary_structure_deduction/salary_structure_deduction.txt
+++ b/hr/doctype/salary_structure_deduction/salary_structure_deduction.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:16",
"docstatus": 0,
- "modified": "2013-01-23 17:11:21",
+ "modified": "2013-01-29 16:27:52",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -42,7 +42,7 @@
"label": "Amount",
"oldfieldname": "d_modified_amt",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
diff --git a/hr/doctype/salary_structure_earning/salary_structure_earning.txt b/hr/doctype/salary_structure_earning/salary_structure_earning.txt
index 25d4294bb1..74f6fe29b5 100644
--- a/hr/doctype/salary_structure_earning/salary_structure_earning.txt
+++ b/hr/doctype/salary_structure_earning/salary_structure_earning.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:16",
"docstatus": 0,
- "modified": "2013-01-23 17:11:21",
+ "modified": "2013-01-29 16:27:52",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -44,7 +44,7 @@
"label": "Amount",
"oldfieldname": "modified_value",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
diff --git a/manufacturing/doctype/bom/bom.txt b/manufacturing/doctype/bom/bom.txt
index c960494c37..922fd80363 100644
--- a/manufacturing/doctype/bom/bom.txt
+++ b/manufacturing/doctype/bom/bom.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-22 15:11:38",
"docstatus": 0,
- "modified": "2013-01-23 17:00:25",
+ "modified": "2013-01-29 17:32:53",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -57,6 +57,7 @@
"fieldname": "item",
"fieldtype": "Link",
"in_filter": 1,
+ "in_list_view": 0,
"label": "Item",
"oldfieldname": "item",
"oldfieldtype": "Link",
@@ -76,6 +77,7 @@
"fieldname": "is_active",
"fieldtype": "Check",
"hidden": 0,
+ "in_list_view": 1,
"label": "Is Active",
"no_copy": 1,
"oldfieldname": "is_active",
@@ -87,6 +89,7 @@
"doctype": "DocField",
"fieldname": "is_default",
"fieldtype": "Check",
+ "in_list_view": 1,
"label": "Is Default",
"no_copy": 1,
"oldfieldname": "is_default",
@@ -151,6 +154,7 @@
"doctype": "DocField",
"fieldname": "total_cost",
"fieldtype": "Float",
+ "in_list_view": 1,
"label": "Total Cost",
"read_only": 1
},
@@ -217,6 +221,7 @@
"doctype": "DocField",
"fieldname": "description",
"fieldtype": "Small Text",
+ "in_list_view": 1,
"label": "Item Desription",
"read_only": 1
},
diff --git a/manufacturing/doctype/bom/bom_list.js b/manufacturing/doctype/bom/bom_list.js
deleted file mode 100644
index 59e34d0b91..0000000000
--- a/manufacturing/doctype/bom/bom_list.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// render
-wn.doclistviews['BOM'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d);
- this.fields = this.fields.concat([
- '`tabBOM`.item',
- '`tabBOM`.uom',
- 'IFNULL(`tabBOM`.quantity, 0) as quantity',
- '`tabBOM`.is_active',
- '`tabBOM`.costing_date',
- '`tabBOM`.total_cost',
- '`tabBOM`.description',
- ]);
- this.stats = this.stats.concat(['company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- data.costing_date = wn.datetime.str_to_user(data.costing_date);
- data.description = (data.is_active ? '' : '[Inactive] ') + data.description;
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '3%', content: 'docstatus'},
- {width: '15%', content: 'name'},
- {width: '15%', content: 'item'},
- {width: '23%', content: 'description+tags'},
- {
- width: '12%',
- content: function(parent, data) {
- $(parent).html(data.quantity + ' ' + data.uom)
- },
- css: {'text-align':'right'},
- },
- {
- width: '20%',
- content: function(parent, data) {
- $(parent).html(format_currency(data.total_cost));
- },
- css: {'text-align': 'right'},
- },
- {width: '12%', content:'costing_date', css: {
- 'text-align': 'right', 'color':'#777'
- }},
- ]
-});
diff --git a/manufacturing/doctype/production_order/production_order.txt b/manufacturing/doctype/production_order/production_order.txt
index 188622f1ed..53b7f1ceb7 100644
--- a/manufacturing/doctype/production_order/production_order.txt
+++ b/manufacturing/doctype/production_order/production_order.txt
@@ -1,210 +1,215 @@
[
{
- "owner": "Administrator",
+ "creation": "2013-01-10 16:34:16",
"docstatus": 0,
- "creation": "2012-12-20 14:31:18",
+ "modified": "2013-01-29 17:17:31",
"modified_by": "Administrator",
- "modified": "2012-12-24 18:39:00"
+ "owner": "Administrator"
},
{
- "is_submittable": 1,
- "in_create": 0,
"autoname": "naming_series:",
- "module": "Manufacturing",
"doctype": "DocType",
+ "in_create": 0,
+ "is_submittable": 1,
+ "module": "Manufacturing",
"name": "__common__"
},
{
- "name": "__common__",
- "parent": "Production Order",
"doctype": "DocField",
- "parenttype": "DocType",
- "permlevel": 0,
- "parentfield": "fields"
- },
- {
- "parent": "Production Order",
- "read": 1,
- "doctype": "DocPerm",
- "cancel": 1,
"name": "__common__",
- "amend": 1,
- "create": 1,
- "submit": 1,
- "write": 1,
+ "parent": "Production Order",
+ "parentfield": "fields",
"parenttype": "DocType",
- "role": "Manufacturing User",
- "report": 1,
- "permlevel": 0,
- "parentfield": "permissions"
+ "permlevel": 0
},
{
- "name": "Production Order",
- "doctype": "DocType"
+ "amend": 1,
+ "cancel": 1,
+ "create": 1,
+ "doctype": "DocPerm",
+ "name": "__common__",
+ "parent": "Production Order",
+ "parentfield": "permissions",
+ "parenttype": "DocType",
+ "permlevel": 0,
+ "read": 1,
+ "report": 1,
+ "role": "Manufacturing User",
+ "submit": 1,
+ "write": 1
+ },
+ {
+ "doctype": "DocType",
+ "name": "Production Order"
},
{
"default": "PRO",
"doctype": "DocField",
- "label": "Series",
"fieldname": "naming_series",
"fieldtype": "Select",
- "reqd": 1,
- "options": "\nPRO"
- },
- {
- "read_only": 1,
- "doctype": "DocField",
- "no_copy": 1,
- "search_index": 1,
- "oldfieldtype": "Select",
- "label": "Status",
- "oldfieldname": "status",
- "fieldname": "status",
- "fieldtype": "Select",
- "depends_on": "eval:!doc.__islocal",
- "reqd": 1,
- "options": "\nDraft\nSubmitted\nStopped\nIn Process\nCompleted\nCancelled",
- "in_filter": 1
- },
- {
- "read_only": 0,
- "oldfieldtype": "Link",
- "doctype": "DocField",
- "label": "Item To Manufacture",
- "oldfieldname": "production_item",
- "fieldname": "production_item",
- "fieldtype": "Link",
- "reqd": 1,
- "options": "Item",
- "in_filter": 1
- },
- {
- "read_only": 0,
- "description": "Bill of Material to be considered for manufacturing",
- "oldfieldtype": "Link",
- "doctype": "DocField",
- "label": "BOM No",
- "oldfieldname": "bom_no",
- "fieldname": "bom_no",
- "fieldtype": "Link",
- "depends_on": "production_item",
- "reqd": 1,
- "options": "BOM"
- },
- {
- "read_only": 0,
- "description": "Manufactured quantity will be updated in this warehouse",
- "depends_on": "production_item",
- "doctype": "DocField",
- "label": "For Warehouse",
- "fieldname": "fg_warehouse",
- "fieldtype": "Link",
- "reqd": 1,
- "options": "Warehouse"
- },
- {
- "read_only": 0,
- "oldfieldtype": "Column Break",
- "doctype": "DocField",
- "width": "50%",
- "fieldname": "column_break1",
- "fieldtype": "Column Break"
- },
- {
- "read_only": 0,
- "oldfieldtype": "Currency",
- "doctype": "DocField",
- "label": "Qty To Manufacture",
- "oldfieldname": "qty",
- "fieldname": "qty",
- "fieldtype": "Float",
- "depends_on": "production_item",
+ "label": "Series",
+ "options": "\nPRO",
"reqd": 1
},
{
- "read_only": 1,
- "description": "Automatically updated via Stock Entry of type Manufacture/Repack",
- "no_copy": 1,
- "oldfieldtype": "Currency",
+ "depends_on": "eval:!doc.__islocal",
+ "doctype": "DocField",
+ "fieldname": "status",
+ "fieldtype": "Select",
+ "in_filter": 1,
+ "in_list_view": 1,
+ "label": "Status",
+ "no_copy": 1,
+ "oldfieldname": "status",
+ "oldfieldtype": "Select",
+ "options": "\nDraft\nSubmitted\nStopped\nIn Process\nCompleted\nCancelled",
+ "read_only": 1,
+ "reqd": 1,
+ "search_index": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "production_item",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "in_list_view": 1,
+ "label": "Item To Manufacture",
+ "oldfieldname": "production_item",
+ "oldfieldtype": "Link",
+ "options": "Item",
+ "read_only": 0,
+ "reqd": 1
+ },
+ {
+ "depends_on": "production_item",
+ "description": "Bill of Material to be considered for manufacturing",
+ "doctype": "DocField",
+ "fieldname": "bom_no",
+ "fieldtype": "Link",
+ "in_list_view": 1,
+ "label": "BOM No",
+ "oldfieldname": "bom_no",
+ "oldfieldtype": "Link",
+ "options": "BOM",
+ "read_only": 0,
+ "reqd": 1
+ },
+ {
+ "depends_on": "production_item",
+ "description": "Manufactured quantity will be updated in this warehouse",
+ "doctype": "DocField",
+ "fieldname": "fg_warehouse",
+ "fieldtype": "Link",
+ "in_list_view": 1,
+ "label": "For Warehouse",
+ "options": "Warehouse",
+ "read_only": 0,
+ "reqd": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break1",
+ "fieldtype": "Column Break",
+ "oldfieldtype": "Column Break",
+ "read_only": 0,
+ "width": "50%"
+ },
+ {
+ "depends_on": "production_item",
+ "doctype": "DocField",
+ "fieldname": "qty",
+ "fieldtype": "Float",
+ "in_list_view": 1,
+ "label": "Qty To Manufacture",
+ "oldfieldname": "qty",
+ "oldfieldtype": "Currency",
+ "read_only": 0,
+ "reqd": 1
+ },
+ {
+ "depends_on": "eval:doc.docstatus==1",
+ "description": "Automatically updated via Stock Entry of type Manufacture/Repack",
"doctype": "DocField",
- "label": "Manufactured Qty",
- "oldfieldname": "produced_qty",
"fieldname": "produced_qty",
"fieldtype": "Float",
- "depends_on": "eval:doc.docstatus==1"
+ "label": "Manufactured Qty",
+ "no_copy": 1,
+ "oldfieldname": "produced_qty",
+ "oldfieldtype": "Currency",
+ "read_only": 1
},
{
- "read_only": 1,
- "oldfieldtype": "Data",
+ "depends_on": "production_item",
"doctype": "DocField",
- "label": "Stock UOM",
- "oldfieldname": "stock_uom",
"fieldname": "stock_uom",
"fieldtype": "Data",
- "depends_on": "production_item"
+ "label": "Stock UOM",
+ "oldfieldname": "stock_uom",
+ "oldfieldtype": "Data",
+ "read_only": 1
},
{
- "description": "If checked, BOM for sub-assembly items will be considered for getting raw materials. Otherwise, all sub-assembly items will be treated as a raw material.",
"default": "1",
+ "description": "If checked, BOM for sub-assembly items will be considered for getting raw materials. Otherwise, all sub-assembly items will be treated as a raw material.",
"doctype": "DocField",
- "label": "Use Multi-Level BOM",
"fieldname": "use_multi_level_bom",
- "fieldtype": "Check"
+ "fieldtype": "Check",
+ "label": "Use Multi-Level BOM"
},
{
- "read_only": 0,
"doctype": "DocField",
- "label": "More Info",
"fieldname": "more_info",
- "fieldtype": "Section Break"
+ "fieldtype": "Section Break",
+ "label": "More Info",
+ "read_only": 0
},
{
- "read_only": 0,
"description": "Manufacture against Sales Order",
"doctype": "DocField",
- "label": "Sales Order",
"fieldname": "sales_order",
"fieldtype": "Link",
- "options": "Sales Order"
+ "label": "Sales Order",
+ "options": "Sales Order",
+ "read_only": 0
},
{
- "read_only": 0,
- "oldfieldtype": "Link",
"doctype": "DocField",
- "label": "Project Name",
- "oldfieldname": "project_name",
"fieldname": "project_name",
"fieldtype": "Link",
- "options": "Project",
- "in_filter": 1
- },
- {
- "read_only": 0,
- "doctype": "DocField",
- "width": "50%",
- "fieldname": "column_break2",
- "fieldtype": "Column Break"
- },
- {
- "read_only": 0,
+ "in_filter": 1,
+ "label": "Project Name",
+ "oldfieldname": "project_name",
"oldfieldtype": "Link",
+ "options": "Project",
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break2",
+ "fieldtype": "Column Break",
+ "read_only": 0,
+ "width": "50%"
+ },
+ {
"doctype": "DocField",
- "label": "Company",
- "oldfieldname": "company",
"fieldname": "company",
"fieldtype": "Link",
- "reqd": 1,
- "options": "Company"
+ "label": "Company",
+ "oldfieldname": "company",
+ "oldfieldtype": "Link",
+ "options": "Company",
+ "read_only": 0,
+ "reqd": 1
},
{
- "read_only": 1,
- "no_copy": 1,
- "oldfieldtype": "Data",
"doctype": "DocField",
- "label": "Amended From",
- "oldfieldname": "amended_from",
"fieldname": "amended_from",
- "fieldtype": "Data"
+ "fieldtype": "Data",
+ "label": "Amended From",
+ "no_copy": 1,
+ "oldfieldname": "amended_from",
+ "oldfieldtype": "Data",
+ "read_only": 1
},
{
"doctype": "DocPerm"
diff --git a/manufacturing/doctype/production_order/production_order_list.js b/manufacturing/doctype/production_order/production_order_list.js
deleted file mode 100644
index dd56b71974..0000000000
--- a/manufacturing/doctype/production_order/production_order_list.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// render
-wn.doclistviews['Production Order'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d);
- this.fields = this.fields.concat([
- '`tabProduction Order`.production_item',
- '`tabProduction Order`.fg_warehouse',
- '`tabProduction Order`.stock_uom',
- 'IFNULL(`tabProduction Order`.qty, 0) as qty',
- '`tabProduction Order`.creation',
- '`tabProduction Order`.status',
- ]);
- this.stats = this.stats.concat(['company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- data.creation = wn.datetime.str_to_user(data.creation);
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content: 'avatar'},
- {width: '3%', content: 'docstatus'},
- {width: '17%', content: 'name'},
- {width: '16%', content: 'production_item'},
- {width: '20%', content: 'fg_warehouse'},
- {width: '12%', content: 'status+tags'},
- {
- width: '12%',
- content: function(parent, data) {
- $(parent).html(data.qty + ' ' + data.stock_uom)
- },
- css: {'text-align':'right'}
- },
- {width: '12%', content:'creation', css: {
- 'text-align': 'right', 'color':'#777'
- }},
- ]
-});
diff --git a/manufacturing/doctype/production_plan_sales_order/production_plan_sales_order.txt b/manufacturing/doctype/production_plan_sales_order/production_plan_sales_order.txt
index de011dcb40..9c2b1320bf 100644
--- a/manufacturing/doctype/production_plan_sales_order/production_plan_sales_order.txt
+++ b/manufacturing/doctype/production_plan_sales_order/production_plan_sales_order.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:17",
"docstatus": 0,
- "modified": "2013-01-23 17:11:21",
+ "modified": "2013-01-29 16:27:52",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -72,7 +72,7 @@
"fieldname": "grand_total",
"fieldtype": "Currency",
"label": "Grand Total",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1,
"width": "120px"
},
diff --git a/projects/doctype/project/project.txt b/projects/doctype/project/project.txt
index 4d089bd02e..11d473e73b 100644
--- a/projects/doctype/project/project.txt
+++ b/projects/doctype/project/project.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:17",
"docstatus": 0,
- "modified": "2013-01-23 17:11:21",
+ "modified": "2013-01-29 17:01:19",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -215,11 +215,12 @@
"doctype": "DocField",
"fieldname": "project_value",
"fieldtype": "Currency",
+ "in_list_view": 1,
"label": "Project Value",
"no_copy": 0,
"oldfieldname": "project_value",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"reqd": 0,
"search_index": 0
},
@@ -231,7 +232,7 @@
"no_copy": 0,
"oldfieldname": "est_material_cost",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"search_index": 0
},
{
@@ -250,7 +251,7 @@
"no_copy": 0,
"oldfieldname": "gross_margin_value",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"reqd": 0,
"search_index": 0
},
@@ -262,7 +263,7 @@
"no_copy": 0,
"oldfieldname": "per_gross_margin",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"reqd": 0,
"search_index": 0
},
diff --git a/projects/doctype/project/project_list.js b/projects/doctype/project/project_list.js
deleted file mode 100644
index e0fc3786b3..0000000000
--- a/projects/doctype/project/project_list.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// render
-wn.doclistviews['Project'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d);
- this.fields = this.fields.concat([
- '`tabProject`.project_name',
- '`tabProject`.status',
- '`tabProject`.is_active',
- '`tabProject`.priority',
- 'IFNULL(`tabProject`.project_value, 0) as project_value',
- 'IFNULL(`tabProject`.per_gross_margin, 0) as per_gross_margin',
- '`tabProject`.creation',
- ]);
- //this.stats = this.stats.concat(['company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- data.completion_date = wn.datetime.str_to_user(data.completion_date);
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '3%', content: 'docstatus'},
- {width: '15%', content: 'name'},
- {width: '22%', content: 'project_name+tags'},
- {
- width: '20%',
- content: function(parent, data) {
- $(parent).html(data.status + " [" + data.priority + "] "
- + (data.is_active=='No'?" [Inactive]":""));
- },
- },
- {
- width: '15%',
- content: function(parent, data) {
- $(parent).html(format_currency(data.project_value));
- },
- css: {'text-align': 'right'},
- },
- {
- width: '10%',
- content: function(parent, data) {
- $(parent).html(format_number(data.per_gross_margin) + " %");
- },
- css: {'text-align': 'right'},
- },
- {
- width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}
- },
- ]
-});
diff --git a/projects/doctype/task/task.txt b/projects/doctype/task/task.txt
index 96d6e41ce1..f0e0f2327d 100644
--- a/projects/doctype/task/task.txt
+++ b/projects/doctype/task/task.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:17",
"docstatus": 0,
- "modified": "2013-01-23 17:11:21",
+ "modified": "2013-01-29 16:27:52",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -57,6 +57,7 @@
"fieldname": "subject",
"fieldtype": "Data",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Subject",
"oldfieldname": "subject",
"oldfieldtype": "Data",
@@ -94,6 +95,7 @@
"doctype": "DocField",
"fieldname": "project",
"fieldtype": "Link",
+ "in_list_view": 1,
"label": "Project",
"oldfieldname": "project",
"oldfieldtype": "Link",
@@ -103,6 +105,7 @@
"doctype": "DocField",
"fieldname": "status",
"fieldtype": "Select",
+ "in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
@@ -114,6 +117,7 @@
"fieldname": "priority",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Priority",
"oldfieldname": "priority",
"oldfieldtype": "Select",
@@ -171,7 +175,7 @@
"label": "Allocated Budget",
"oldfieldname": "allocated_budget",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
@@ -205,7 +209,7 @@
"label": "Actual Budget",
"oldfieldname": "actual_budget",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
},
{
"doctype": "DocField",
diff --git a/projects/doctype/task/task_list.js b/projects/doctype/task/task_list.js
deleted file mode 100644
index 5221687ab2..0000000000
--- a/projects/doctype/task/task_list.js
+++ /dev/null
@@ -1,50 +0,0 @@
-// render
-wn.doclistviews['Task'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d);
- this.fields = this.fields.concat([
- '`tabTask`.subject',
- '`tabTask`.project',
- '`tabTask`.status',
- '`tabTask`.opening_date',
- '`tabTask`.priority',
- ]);
- this.stats = this.stats.concat(['status']);
- },
-
- label_style: {
- "status": {
- "Open": "danger",
- "Closed": "success",
- "Hold": "info",
- "Waiting for Customer": "info"
- }
- },
-
- prepare_data: function(data) {
- this._super(data);
-
- data.label_style = this.label_style.status[data.status];
- if(data.label_style=="danger")
- data.label_style = "important"
- data.status_html = repl('%(status)s', data);
-
- // escape double quotes
- data.description = cstr(data.subject)
- + " | " + cstr(data.description);
-
- data.description = data.description.replace(/"/gi, '\"')
- .replace(//gi, '>');
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content: 'avatar_modified'},
- {width: '20%', content:'name'},
- {width: '10%', content:'status_html'},
- {width: '40%', content: 'subject+tags'},
- {width: '20%', content: 'project'},
- {width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
- ]
-});
diff --git a/projects/doctype/timesheet/timesheet.txt b/projects/doctype/timesheet/timesheet.txt
index 8f3cc6ef2a..649be404fa 100644
--- a/projects/doctype/timesheet/timesheet.txt
+++ b/projects/doctype/timesheet/timesheet.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:17",
"docstatus": 0,
- "modified": "2013-01-22 14:57:26",
+ "modified": "2013-01-29 14:36:53",
"modified_by": "Administrator",
"owner": "ashwini@webnotestech.com"
},
@@ -53,6 +53,7 @@
"fieldname": "status",
"fieldtype": "Select",
"in_filter": 0,
+ "in_list_view": 1,
"label": "Status",
"oldfieldname": "status",
"oldfieldtype": "Select",
@@ -116,6 +117,7 @@
"doctype": "DocField",
"fieldname": "notes",
"fieldtype": "Text",
+ "in_list_view": 1,
"label": "Notes"
},
{
diff --git a/projects/doctype/timesheet/timesheet_list.js b/projects/doctype/timesheet/timesheet_list.js
deleted file mode 100644
index 66e4e5d23c..0000000000
--- a/projects/doctype/timesheet/timesheet_list.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// render
-wn.doclistviews['Timesheet'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d);
- this.fields = this.fields.concat([
- '`tabTimesheet`.status',
- '`tabTimesheet`.timesheet_date',
- '`tabTimesheet`.owner',
- '`tabTimesheet`.notes',
-
- ]);
- },
-
- prepare_data: function(data) {
- this._super(data);
- data.timesheet_date = wn.datetime.str_to_user(data.timesheet_date);
- if(data.notes && data.notes.length > 50) {
- data.notes = '' +
- data.notes.substr(0,50) + '...';
- }
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content: 'avatar'},
- {width: '3%', content: 'docstatus'},
- {width: '18%', content: 'name'},
- {width: '12%', content: 'status'},
- {width: '27%', content: 'notes+tags', css: {'color': '#777'}},
- {width: '20%', content: 'owner'},
- {width: '12%', content:'timesheet_date', css: {
- 'text-align': 'right', 'color':'#777'
- }},
- ]
-});
diff --git a/selling/doctype/customer/customer.txt b/selling/doctype/customer/customer.txt
index a907bdac23..a221daa599 100644
--- a/selling/doctype/customer/customer.txt
+++ b/selling/doctype/customer/customer.txt
@@ -1,8 +1,8 @@
[
{
- "creation": "2013-01-10 16:34:18",
+ "creation": "2013-01-23 19:57:18",
"docstatus": 0,
- "modified": "2013-01-23 17:11:21",
+ "modified": "2013-01-29 16:28:03",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -52,6 +52,7 @@
"fieldtype": "Data",
"hidden": 0,
"in_filter": 1,
+ "in_list_view": 1,
"label": "Customer Name",
"no_copy": 1,
"oldfieldname": "customer_name",
@@ -127,6 +128,7 @@
"doctype": "DocField",
"fieldname": "territory",
"fieldtype": "Link",
+ "in_list_view": 1,
"label": "Territory",
"oldfieldname": "territory",
"oldfieldtype": "Link",
@@ -277,7 +279,7 @@
"label": "Credit Limit",
"oldfieldname": "credit_limit",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"permlevel": 2
},
{
diff --git a/selling/doctype/customer/customer_list.js b/selling/doctype/customer/customer_list.js
deleted file mode 100644
index 133beac67a..0000000000
--- a/selling/doctype/customer/customer_list.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// render
-wn.doclistviews['Customer'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabCustomer`.customer_name",
- "`tabCustomer`.territory",
- ]);
- this.show_hide_check_column();
- },
-
- prepare_data: function(data) {
- this._super(data);
- data.customer_name = repl("%(customer_name)s",
- data);
- },
-
- columns: [
- {width: '3%', content:'check'},
- {width: '5%', content:'avatar'},
- {width: '50%', content:'customer_name'},
- {width: '10%', content:'tags'},
- {width: '20%', content:'territory',
- css: {'color': '#aaa'}},
- {width: '12%', content:'modified',
- css: {'text-align': 'right', 'color':'#777'}}
- ],
-});
diff --git a/selling/doctype/opportunity/opportunity.txt b/selling/doctype/opportunity/opportunity.txt
index 1547ad7848..573f17e351 100644
--- a/selling/doctype/opportunity/opportunity.txt
+++ b/selling/doctype/opportunity/opportunity.txt
@@ -1,8 +1,8 @@
[
{
- "creation": "2013-01-10 16:34:19",
+ "creation": "2013-01-23 19:57:18",
"docstatus": 0,
- "modified": "2013-01-22 15:23:24",
+ "modified": "2013-01-29 14:23:07",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -73,6 +73,7 @@
"fieldtype": "Link",
"hidden": 0,
"in_filter": 1,
+ "in_list_view": 1,
"label": "Customer",
"oldfieldname": "customer",
"oldfieldtype": "Link",
@@ -87,6 +88,7 @@
"fieldtype": "Link",
"hidden": 0,
"in_filter": 1,
+ "in_list_view": 1,
"label": "Lead",
"oldfieldname": "lead",
"oldfieldtype": "Link",
@@ -105,6 +107,7 @@
"doctype": "DocField",
"fieldname": "status",
"fieldtype": "Select",
+ "in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
diff --git a/selling/doctype/opportunity/opportunity_list.js b/selling/doctype/opportunity/opportunity_list.js
deleted file mode 100644
index 949422e03b..0000000000
--- a/selling/doctype/opportunity/opportunity_list.js
+++ /dev/null
@@ -1,41 +0,0 @@
-wn.doclistviews['Opportunity'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- 'tabOpportunity.enquiry_from',
- 'tabOpportunity.lead_name',
- 'tabOpportunity.customer_name',
- 'tabOpportunity.status',
- 'tabOpportunity.transaction_date',
- ]);
- this.stats = this.stats.concat(['status', 'source', 'enquiry_from', 'company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- if(['Order Confirmed', 'Quotation Sent']
- .indexOf(data.status)!=-1) {
- data.label_type = 'success';
- } else if(data.status == 'Draft') {
- data.label_type = 'info';
- } else if(data.status == 'Submit') {
- data.label_type = 'important';
- }
- data.status_html = repl('%(status)s', data);
- if(data.enquiry_from == 'Lead') {
- data.enquiry_name = repl('[%(enquiry_from)s] %(lead_name)s', data);
- } else {
- data.enquiry_name = repl('[%(enquiry_from)s] %(customer_name)s', data);
- }
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '15%', content:'name'},
- {width: '18%', content:'status_html'},
- {width: '52%', content:'enquiry_name+tags', css: {color:'#222'}},
- {width: '12%', content:'transaction_date',
- css: {'text-align': 'right', 'color':'#777'},
- title: "Opportunity Date", type: "date"}
- ]
-})
diff --git a/selling/doctype/opportunity_item/opportunity_item.txt b/selling/doctype/opportunity_item/opportunity_item.txt
index 8d80e8b01f..f9f8c79142 100644
--- a/selling/doctype/opportunity_item/opportunity_item.txt
+++ b/selling/doctype/opportunity_item/opportunity_item.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:19",
"docstatus": 0,
- "modified": "2013-01-23 17:11:22",
+ "modified": "2013-01-29 16:27:53",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -85,7 +85,7 @@
"label": "Basic Rate",
"oldfieldname": "basic_rate",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1
},
{
diff --git a/selling/doctype/quotation/quotation.txt b/selling/doctype/quotation/quotation.txt
index ca788d4baa..b2669e6c0f 100644
--- a/selling/doctype/quotation/quotation.txt
+++ b/selling/doctype/quotation/quotation.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:19",
"docstatus": 0,
- "modified": "2013-01-23 17:11:22",
+ "modified": "2013-01-29 16:27:53",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -105,6 +105,7 @@
"fieldtype": "Text",
"hidden": 1,
"in_filter": 0,
+ "in_list_view": 1,
"label": "Lead Name",
"read_only": 1
},
@@ -113,6 +114,7 @@
"fieldname": "customer_name",
"fieldtype": "Data",
"hidden": 1,
+ "in_list_view": 1,
"label": "Customer Name",
"read_only": 1
},
@@ -242,7 +244,7 @@
"no_copy": 0,
"oldfieldname": "net_total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 0,
"read_only": 1,
"reqd": 0,
@@ -414,7 +416,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,
"read_only": 1
},
@@ -442,7 +444,7 @@
"no_copy": 0,
"oldfieldname": "grand_total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"reqd": 0,
@@ -456,7 +458,7 @@
"no_copy": 0,
"oldfieldname": "rounded_total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"width": "200px"
@@ -486,6 +488,7 @@
"doctype": "DocField",
"fieldname": "grand_total_export",
"fieldtype": "Currency",
+ "in_list_view": 1,
"label": "Grand Total",
"no_copy": 0,
"oldfieldname": "grand_total_export",
diff --git a/selling/doctype/quotation/quotation_list.js b/selling/doctype/quotation/quotation_list.js
deleted file mode 100644
index 55cbc1ddf0..0000000000
--- a/selling/doctype/quotation/quotation_list.js
+++ /dev/null
@@ -1,44 +0,0 @@
-// render
-wn.doclistviews['Quotation'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabQuotation`.quotation_to",
- "`tabQuotation`.lead_name",
- "`tabQuotation`.customer_name",
- "`tabQuotation`.currency",
- "ifnull(`tabQuotation`.grand_total_export,0) as grand_total_export",
- "`tabQuotation`.transaction_date",
- ]);
- this.stats = this.stats.concat(['status', 'quotation_to', 'company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- if(data.quotation_to == 'Lead') {
- data.quotation_name = repl('[%(quotation_to)s] %(lead_name)s', data);
- } else {
- data.quotation_name = repl('[%(quotation_to)s] %(customer_name)s', data);
- }
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content:'avatar'},
- {width: '3%', content:'docstatus'},
- {width: '15%', content:'name'},
- {width: '44%', content:'quotation_name+tags', css: {color:'#222'}},
- {
- width: '18%',
- content: function(parent, data) {
- $(parent).html(format_currency(data.grand_total_export, data.currency))
- },
- css: {'text-align':'right'}
- },
- {width: '12%', content:'transaction_date',
- css: {'text-align': 'right', 'color':'#777'},
- title: "Quotation Date", type: "date"}
- ]
-
-});
-
diff --git a/selling/doctype/quotation_item/quotation_item.txt b/selling/doctype/quotation_item/quotation_item.txt
index 49f9b65a4c..8979562ff6 100644
--- a/selling/doctype/quotation_item/quotation_item.txt
+++ b/selling/doctype/quotation_item/quotation_item.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:19",
"docstatus": 0,
- "modified": "2013-01-23 15:46:18",
+ "modified": "2013-01-29 16:27:54",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -161,7 +161,7 @@
"label": "Price List Rate*",
"oldfieldname": "base_ref_rate",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency(cur_frm.doc.company);",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"width": "100px"
@@ -175,7 +175,7 @@
"label": "Basic Rate*",
"oldfieldname": "basic_rate",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency(cur_frm.doc.company);",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"reqd": 0,
"search_index": 0,
@@ -190,7 +190,7 @@
"label": "Amount*",
"oldfieldname": "amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency(cur_frm.doc.company);",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"reqd": 0,
diff --git a/selling/doctype/sales_and_purchase_return_item/sales_and_purchase_return_item.txt b/selling/doctype/sales_and_purchase_return_item/sales_and_purchase_return_item.txt
index eb7bc29778..179a6a3895 100644
--- a/selling/doctype/sales_and_purchase_return_item/sales_and_purchase_return_item.txt
+++ b/selling/doctype/sales_and_purchase_return_item/sales_and_purchase_return_item.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:20",
"docstatus": 0,
- "modified": "2013-01-23 17:11:22",
+ "modified": "2013-01-29 16:27:54",
"modified_by": "Administrator",
"owner": "wasim@webnotestech.com"
},
@@ -63,7 +63,7 @@
"label": "Rate",
"oldfieldname": "rate",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"read_only": 1
},
{
diff --git a/selling/doctype/sales_order/sales_order.txt b/selling/doctype/sales_order/sales_order.txt
index 1c543d45cb..e6f762e107 100644
--- a/selling/doctype/sales_order/sales_order.txt
+++ b/selling/doctype/sales_order/sales_order.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-22 15:24:17",
"docstatus": 0,
- "modified": "2013-01-23 17:11:29",
+ "modified": "2013-01-29 17:14:58",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -67,6 +67,7 @@
"fieldname": "customer",
"fieldtype": "Link",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Customer",
"oldfieldname": "customer",
"oldfieldtype": "Link",
@@ -121,6 +122,7 @@
"doctype": "DocField",
"fieldname": "order_type",
"fieldtype": "Select",
+ "in_list_view": 1,
"label": "Order Type",
"oldfieldname": "order_type",
"oldfieldtype": "Select",
@@ -249,7 +251,7 @@
"label": "Net Total*",
"oldfieldname": "net_total",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 0,
"read_only": 1,
"reqd": 0,
@@ -428,7 +430,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,
"read_only": 1,
"width": "150px"
@@ -456,7 +458,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,
"reqd": 0,
@@ -469,7 +471,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,
"width": "150px"
@@ -791,6 +793,7 @@
"fieldname": "status",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
@@ -807,8 +810,9 @@
"description": "% of materials delivered against this Sales Order",
"doctype": "DocField",
"fieldname": "per_delivered",
- "fieldtype": "Float",
+ "fieldtype": "Percent",
"in_filter": 1,
+ "in_list_view": 1,
"label": "% Delivered",
"no_copy": 1,
"oldfieldname": "per_delivered",
@@ -822,8 +826,9 @@
"description": "% of materials billed against this Sales Order",
"doctype": "DocField",
"fieldname": "per_billed",
- "fieldtype": "Float",
+ "fieldtype": "Percent",
"in_filter": 1,
+ "in_list_view": 1,
"label": "% Amount Billed",
"no_copy": 1,
"oldfieldname": "per_billed",
@@ -926,7 +931,7 @@
"label": "Total Commission",
"oldfieldname": "total_commission",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1
},
{
diff --git a/selling/doctype/sales_order/sales_order_list.js b/selling/doctype/sales_order/sales_order_list.js
deleted file mode 100644
index 16050c95f2..0000000000
--- a/selling/doctype/sales_order/sales_order_list.js
+++ /dev/null
@@ -1,50 +0,0 @@
-// render
-wn.doclistviews['Sales Order'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabSales Order`.customer_name",
- "`tabSales Order`.status",
- "`tabSales Order`.order_type",
- "ifnull(`tabSales Order`.per_delivered,0) as per_delivered",
- "ifnull(`tabSales Order`.per_billed,0) as per_billed",
- "`tabSales Order`.currency",
- "ifnull(`tabSales Order`.grand_total_export,0) as grand_total_export",
- "`tabSales Order`.transaction_date",
- ]);
- this.stats = this.stats.concat(['status', 'order_type', 'company']);
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content: 'avatar'},
- {width: '3%', content: 'docstatus'},
- {width: '15%', content: 'name'},
- {width: '29%', content: 'customer_name+tags', css: {color:'#222'}},
- {
- width: '18%',
- content: function(parent, data) {
- $(parent).html(format_currency(data.grand_total_export, data.currency))
- },
- css: {'text-align':'right'}
- },
- {
- width: '11%',
- content: function(parent, data, me) {
- var order_type = data.order_type.toLowerCase();
-
- if (order_type === 'sales') {
- me.render_icon(parent, 'icon-tag', data.order_type);
- me.render_bar_graph(parent, data, 'per_delivered', 'Delivered');
- } else if (order_type === 'maintenance') {
- me.render_icon(parent, 'icon-wrench', data.order_type);
- }
- },
- },
- {width: '8%', content: 'per_billed', type:'bar-graph', label:'Billed'},
- {width: '12%', content:'transaction_date',
- css: {'text-align': 'right', 'color':'#777'},
- title: "Sales Order Date", type: "date"}
- ]
-
-});
diff --git a/selling/doctype/sales_order_item/sales_order_item.txt b/selling/doctype/sales_order_item/sales_order_item.txt
index b32e23f392..dc8d19e7b4 100644
--- a/selling/doctype/sales_order_item/sales_order_item.txt
+++ b/selling/doctype/sales_order_item/sales_order_item.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:21",
"docstatus": 0,
- "modified": "2013-01-23 17:11:22",
+ "modified": "2013-01-29 16:27:54",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -150,7 +150,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"
@@ -163,7 +163,7 @@
"label": "Basic Rate*",
"oldfieldname": "basic_rate",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"reqd": 0,
"width": "100px"
@@ -177,7 +177,7 @@
"no_copy": 0,
"oldfieldname": "amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"print_hide": 1,
"read_only": 1,
"reqd": 0,
diff --git a/selling/doctype/sales_team/sales_team.txt b/selling/doctype/sales_team/sales_team.txt
index d57929f28f..c1a00d79fb 100644
--- a/selling/doctype/sales_team/sales_team.txt
+++ b/selling/doctype/sales_team/sales_team.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:22",
"docstatus": 0,
- "modified": "2013-01-23 17:11:23",
+ "modified": "2013-01-29 16:27:56",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -73,7 +73,7 @@
"label": "Allocated Amount",
"oldfieldname": "allocated_amount",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()",
+ "options": "Company:company:default_currency",
"reqd": 0,
"width": "120px"
},
@@ -96,6 +96,6 @@
"label": "Incentives",
"oldfieldname": "incentives",
"oldfieldtype": "Currency",
- "options": "eval:erpnext.get_currency()"
+ "options": "Company:company:default_currency"
}
]
\ No newline at end of file
diff --git a/setup/doctype/currency/currency.txt b/setup/doctype/currency/currency.txt
index 679e6a6c76..9252c5ae3d 100644
--- a/setup/doctype/currency/currency.txt
+++ b/setup/doctype/currency/currency.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-28 10:06:02",
"docstatus": 0,
- "modified": "2013-01-28 10:37:18",
+ "modified": "2013-01-29 14:55:36",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -53,6 +53,7 @@
"doctype": "DocField",
"fieldname": "enabled",
"fieldtype": "Check",
+ "in_list_view": 1,
"label": "Enabled"
},
{
@@ -60,6 +61,7 @@
"doctype": "DocField",
"fieldname": "fraction",
"fieldtype": "Data",
+ "in_list_view": 1,
"label": "Fraction"
},
{
@@ -67,6 +69,7 @@
"doctype": "DocField",
"fieldname": "fraction_units",
"fieldtype": "Int",
+ "in_list_view": 1,
"label": "Fraction Units"
},
{
@@ -74,6 +77,7 @@
"doctype": "DocField",
"fieldname": "symbol",
"fieldtype": "Data",
+ "in_list_view": 1,
"label": "Symbol"
},
{
@@ -81,8 +85,9 @@
"doctype": "DocField",
"fieldname": "number_format",
"fieldtype": "Select",
+ "in_list_view": 1,
"label": "Number Format",
- "options": "\n#,###.##\n#.###,##\n# ###.##\n#,##,###.##\n#.###\n#,###"
+ "options": "\n#,###.##\n#.###,##\n# ###.##\n#,###.###\n#,##,###.##\n#.###\n#,###"
},
{
"cancel": 1,
diff --git a/setup/doctype/currency/currency_list.js b/setup/doctype/currency/currency_list.js
deleted file mode 100644
index 31eadbc3f7..0000000000
--- a/setup/doctype/currency/currency_list.js
+++ /dev/null
@@ -1,19 +0,0 @@
-wn.doclistviews['Currency'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabCurrency`.enabled",
- ]);
- this.stats = this.stats.concat(['enabled']);
- this.order_by = "`tabCurrency`.`enabled` desc, `tabCurrency`.modified desc";
- },
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content: 'avatar'},
- {width: '3%', content: "enabled"},
- {width: '70%', content: 'name'},
- {width: '20%', content:'modified',
- css: {'text-align': 'right', 'color': '#777'}},
-
- ]
-});
\ No newline at end of file
diff --git a/setup/doctype/global_defaults/global_defaults.txt b/setup/doctype/global_defaults/global_defaults.txt
index 02df28555b..942415e799 100644
--- a/setup/doctype/global_defaults/global_defaults.txt
+++ b/setup/doctype/global_defaults/global_defaults.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-28 10:06:02",
"docstatus": 0,
- "modified": "2013-01-28 15:09:04",
+ "modified": "2013-01-29 14:55:57",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -114,7 +114,7 @@
"fieldname": "number_format",
"fieldtype": "Select",
"label": "Number Format",
- "options": "\n#,###.##\n#.###,##\n# ###.##\n#,##,###.##\n#.###\n#,###"
+ "options": "\n#,###.##\n#.###,##\n# ###.##\n#,###.###\n#,##,###.##\n#.###\n#,###"
},
{
"description": "Precision for Float fields (quantities, discounts, percentages etc) only for display. Floats will still be calculated up to 6 decimals.",
diff --git a/startup/event_handlers.py b/startup/event_handlers.py
index 6b16f4c4d3..3f04dc797f 100644
--- a/startup/event_handlers.py
+++ b/startup/event_handlers.py
@@ -69,13 +69,9 @@ def boot_session(bootinfo):
for key in ['max_users', 'expires_on', 'max_space', 'status', 'developer_mode']:
if hasattr(conf, key): bootinfo[key] = getattr(conf, key)
- company = webnotes.conn.sql("select name, default_currency from `tabCompany`", as_dict=1)
- company_dict = {}
- for c in company:
- company_dict.setdefault(c['name'], {}).update(c)
-
- bootinfo['company'] = company_dict
-
+ bootinfo['docs'] += webnotes.conn.sql("select name, default_currency from `tabCompany`",
+ as_dict=1, update={"doctype":":Company"})
+
def get_letter_heads():
"""load letter heads with startup"""
import webnotes
diff --git a/stock/doctype/batch/batch.txt b/stock/doctype/batch/batch.txt
index 429644a6cc..cad4a0db2c 100644
--- a/stock/doctype/batch/batch.txt
+++ b/stock/doctype/batch/batch.txt
@@ -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"
diff --git a/stock/doctype/batch/batch_list.js b/stock/doctype/batch/batch_list.js
deleted file mode 100644
index 52e415667e..0000000000
--- a/stock/doctype/batch/batch_list.js
+++ /dev/null
@@ -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 = '' +
- data.description.substr(0,50) + '...';
- }
- },
-
- 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'}}
- ]
-});
\ No newline at end of file
diff --git a/stock/doctype/delivery_note/delivery_note.txt b/stock/doctype/delivery_note/delivery_note.txt
index 4d95396023..5fe85921ba 100644
--- a/stock/doctype/delivery_note/delivery_note.txt
+++ b/stock/doctype/delivery_note/delivery_note.txt
@@ -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
diff --git a/stock/doctype/delivery_note/delivery_note_list.js b/stock/doctype/delivery_note/delivery_note_list.js
deleted file mode 100644
index 9c94fdbb25..0000000000
--- a/stock/doctype/delivery_note/delivery_note_list.js
+++ /dev/null
@@ -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"}
- ]
-});
diff --git a/stock/doctype/delivery_note_item/delivery_note_item.txt b/stock/doctype/delivery_note_item/delivery_note_item.txt
index e2c6fbf7b3..9f18568573 100644
--- a/stock/doctype/delivery_note_item/delivery_note_item.txt
+++ b/stock/doctype/delivery_note_item/delivery_note_item.txt
@@ -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,
diff --git a/stock/doctype/item/item.txt b/stock/doctype/item/item.txt
index d5ab5a4b08..fd963f78ce 100644
--- a/stock/doctype/item/item.txt
+++ b/stock/doctype/item/item.txt
@@ -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",
diff --git a/stock/doctype/item/item_list.js b/stock/doctype/item/item_list.js
deleted file mode 100644
index 02ed1616d3..0000000000
--- a/stock/doctype/item/item_list.js
+++ /dev/null
@@ -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 = '' +
- data.description.substr(0,50) + '...';
- }
- },
-
- 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'}}
- ]
-});
diff --git a/stock/doctype/purchase_receipt/purchase_receipt.txt b/stock/doctype/purchase_receipt/purchase_receipt.txt
index 7851133e33..0c7a4c30a1 100755
--- a/stock/doctype/purchase_receipt/purchase_receipt.txt
+++ b/stock/doctype/purchase_receipt/purchase_receipt.txt
@@ -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
diff --git a/stock/doctype/purchase_receipt/purchase_receipt_list.js b/stock/doctype/purchase_receipt/purchase_receipt_list.js
index e04ef7e7db..d20c352618 100644
--- a/stock/doctype/purchase_receipt/purchase_receipt_list.js
+++ b/stock/doctype/purchase_receipt/purchase_receipt_list.js
@@ -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"}
- ]
-});
+ }
+};
diff --git a/stock/doctype/purchase_receipt_item/purchase_receipt_item.txt b/stock/doctype/purchase_receipt_item/purchase_receipt_item.txt
index 693bfcabb4..e1ceb05674 100755
--- a/stock/doctype/purchase_receipt_item/purchase_receipt_item.txt
+++ b/stock/doctype/purchase_receipt_item/purchase_receipt_item.txt
@@ -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,
diff --git a/stock/doctype/serial_no/serial_no.txt b/stock/doctype/serial_no/serial_no.txt
index 6758436b1e..086575f593 100644
--- a/stock/doctype/serial_no/serial_no.txt
+++ b/stock/doctype/serial_no/serial_no.txt
@@ -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",
diff --git a/stock/doctype/serial_no/serial_no_list.js b/stock/doctype/serial_no/serial_no_list.js
deleted file mode 100644
index 8d9a3e6e4e..0000000000
--- a/stock/doctype/serial_no/serial_no_list.js
+++ /dev/null
@@ -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'}}
- ]
-});
\ No newline at end of file
diff --git a/stock/doctype/stock_entry/stock_entry.txt b/stock/doctype/stock_entry/stock_entry.txt
index 1ebbae64fe..2554455764 100644
--- a/stock/doctype/stock_entry/stock_entry.txt
+++ b/stock/doctype/stock_entry/stock_entry.txt
@@ -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
}
]
\ No newline at end of file
diff --git a/stock/doctype/stock_entry/stock_entry_list.js b/stock/doctype/stock_entry/stock_entry_list.js
deleted file mode 100644
index 60526cb719..0000000000
--- a/stock/doctype/stock_entry/stock_entry_list.js
+++ /dev/null
@@ -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"}
- ]
-});
diff --git a/stock/doctype/stock_entry_detail/stock_entry_detail.txt b/stock/doctype/stock_entry_detail/stock_entry_detail.txt
index e042b65a45..18fac821e2 100644
--- a/stock/doctype/stock_entry_detail/stock_entry_detail.txt
+++ b/stock/doctype/stock_entry_detail/stock_entry_detail.txt
@@ -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
},
{
diff --git a/stock/doctype/stock_ledger_entry/stock_ledger_entry.txt b/stock/doctype/stock_ledger_entry/stock_ledger_entry.txt
index 108e9853e9..9551b59314 100644
--- a/stock/doctype/stock_ledger_entry/stock_ledger_entry.txt
+++ b/stock/doctype/stock_ledger_entry/stock_ledger_entry.txt
@@ -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",
diff --git a/stock/doctype/warehouse/warehouse.txt b/stock/doctype/warehouse/warehouse.txt
index 58c3bb11bb..e76754382c 100644
--- a/stock/doctype/warehouse/warehouse.txt
+++ b/stock/doctype/warehouse/warehouse.txt
@@ -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",
diff --git a/stock/doctype/warehouse/warehouse_list.js b/stock/doctype/warehouse/warehouse_list.js
deleted file mode 100644
index 0abb7f94f0..0000000000
--- a/stock/doctype/warehouse/warehouse_list.js
+++ /dev/null
@@ -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'}}
- ]
-});
\ No newline at end of file
diff --git a/support/doctype/customer_issue/customer_issue.txt b/support/doctype/customer_issue/customer_issue.txt
index 00d0deec29..59ebc15c18 100644
--- a/support/doctype/customer_issue/customer_issue.txt
+++ b/support/doctype/customer_issue/customer_issue.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:30",
"docstatus": 0,
- "modified": "2013-01-22 14:55:59",
+ "modified": "2013-01-28 17:54:09",
"modified_by": "Administrator",
"owner": "harshada@webnotestech.com"
},
@@ -57,6 +57,7 @@
"fieldname": "status",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
@@ -89,6 +90,7 @@
"fieldname": "customer",
"fieldtype": "Link",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Customer",
"oldfieldname": "customer",
"oldfieldtype": "Link",
@@ -136,6 +138,7 @@
"doctype": "DocField",
"fieldname": "serial_no",
"fieldtype": "Link",
+ "in_list_view": 0,
"label": "Serial No",
"options": "Serial No"
},
@@ -144,6 +147,7 @@
"fieldname": "item_code",
"fieldtype": "Link",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Item Code",
"oldfieldname": "item_code",
"oldfieldtype": "Link",
@@ -185,6 +189,7 @@
"fieldtype": "Select",
"hidden": 0,
"in_filter": 1,
+ "in_list_view": 1,
"label": "Warranty / AMC Status",
"options": "\nUnder Warranty\nOut of Warranty\nUnder AMC\nOut of AMC"
},
diff --git a/support/doctype/customer_issue/customer_issue_list.js b/support/doctype/customer_issue/customer_issue_list.js
deleted file mode 100644
index 5b5c88db28..0000000000
--- a/support/doctype/customer_issue/customer_issue_list.js
+++ /dev/null
@@ -1,60 +0,0 @@
-// render
-wn.doclistviews['Customer Issue'] = wn.views.ListView.extend({
- me: this,
-
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabCustomer Issue`.customer",
- "`tabCustomer Issue`.serial_no",
- "`tabCustomer Issue`.item_name",
- "`tabCustomer Issue`.complaint",
- "`tabCustomer Issue`.status",
- ]);
- this.stats = this.stats.concat(['status', 'company']);
- //this.show_hide_check_column();
- },
-
- prepare_data: function(data) {
- this._super(data);
- if(data.status=='Open') {
- data.label_type = 'important';
- } else if(data.status=='Closed') {
- data.label_type = 'success';
- } else if(data.status=='Cancelled') {
- data.label_type = 'info';
- } else if(data.status=='Work In Progress') {
- data.label_type = 'info';
- data.status = 'WIP';
- }
-
- data.status_html = repl(
- '%(status)s', data);
- var a = $(data.status_html).click(function() {
- me.set_filter('status', $(this).text());
- });
-
- var concat_list = [data.customer];
- data.serial_no && concat_list.push(data.serial_no);
- data.complaint && concat_list.push(data.complaint);
- data.complaint = concat_list.join(" | ");
-
- // description
- if(data.complaint && data.complaint.length > 50) {
- data.complaint = '' +
- data.complaint.substr(0,50) + '...';
- }
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content: 'avatar'},
- {width: '3%', content: 'docstatus'},
- {width: '20%', content: 'name'},
- {width: '10%', content: 'status_html'},
- {width: '47%', content: 'complaint+tags', css: {color:'#777'}},
- {width: '12%', content: 'modified',
- css: {'text-align': 'right', 'color':'#777'}}
- ]
-
-});
diff --git a/support/doctype/maintenance_schedule/maintenance_schedule.txt b/support/doctype/maintenance_schedule/maintenance_schedule.txt
index c763755cd6..19dc7fdbee 100644
--- a/support/doctype/maintenance_schedule/maintenance_schedule.txt
+++ b/support/doctype/maintenance_schedule/maintenance_schedule.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:30",
"docstatus": 0,
- "modified": "2013-01-22 14:56:04",
+ "modified": "2013-01-28 17:35:45",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -60,6 +60,7 @@
"fieldname": "customer",
"fieldtype": "Link",
"in_filter": 1,
+ "in_list_view": 0,
"label": "Customer",
"oldfieldname": "customer",
"oldfieldtype": "Link",
@@ -89,7 +90,8 @@
"fieldname": "customer_name",
"fieldtype": "Data",
"in_filter": 1,
- "label": "Name",
+ "in_list_view": 1,
+ "label": "Customer Name",
"oldfieldname": "customer_name",
"oldfieldtype": "Data",
"read_only": 1,
diff --git a/support/doctype/maintenance_schedule/maintenance_schedule_list.js b/support/doctype/maintenance_schedule/maintenance_schedule_list.js
deleted file mode 100644
index a471c3ebda..0000000000
--- a/support/doctype/maintenance_schedule/maintenance_schedule_list.js
+++ /dev/null
@@ -1,24 +0,0 @@
-// render
-wn.doclistviews['Maintenance Schedule'] = wn.views.ListView.extend({
- me: this,
-
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabMaintenance Schedule`.customer",
- ]);
- this.stats = this.stats.concat(['company']);
- //this.show_hide_check_column();
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content: 'avatar'},
- {width: '3%', content: 'docstatus'},
- {width: '20%', content: 'name'},
- {width: '55%', content: 'customer+tags'},
- {width: '14%', content: 'modified',
- css: {'text-align': 'right', 'color':'#777'}}
- ]
-
-});
diff --git a/support/doctype/maintenance_visit/maintenance_visit.txt b/support/doctype/maintenance_visit/maintenance_visit.txt
index 6dd6d7377e..6ecbb1ffe8 100644
--- a/support/doctype/maintenance_visit/maintenance_visit.txt
+++ b/support/doctype/maintenance_visit/maintenance_visit.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:31",
"docstatus": 0,
- "modified": "2013-01-22 14:56:04",
+ "modified": "2013-01-28 17:31:01",
"modified_by": "Administrator",
"owner": "ashwini@webnotestech.com"
},
@@ -73,6 +73,7 @@
"fieldname": "customer_name",
"fieldtype": "Data",
"hidden": 1,
+ "in_list_view": 1,
"label": "Customer Name",
"read_only": 1
},
@@ -147,6 +148,7 @@
"doctype": "DocField",
"fieldname": "completion_status",
"fieldtype": "Select",
+ "in_list_view": 1,
"label": "Completion Status",
"oldfieldname": "completion_status",
"oldfieldtype": "Select",
@@ -159,6 +161,7 @@
"fieldname": "maintenance_type",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Maintenance Type",
"oldfieldname": "maintenance_type",
"oldfieldtype": "Select",
diff --git a/support/doctype/maintenance_visit/maintenance_visit_list.js b/support/doctype/maintenance_visit/maintenance_visit_list.js
deleted file mode 100644
index 6dc5daccb3..0000000000
--- a/support/doctype/maintenance_visit/maintenance_visit_list.js
+++ /dev/null
@@ -1,38 +0,0 @@
-// render
-wn.doclistviews['Maintenance Visit'] = wn.views.ListView.extend({
- me: this,
-
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabMaintenance Visit`.customer_name",
- "`tabMaintenance Visit`.mntc_date",
- "`tabMaintenance Visit`.mntc_time",
- "`tabMaintenance Visit`.maintenance_type",
- "`tabMaintenance Visit`.completion_status",
-
- ]);
- this.stats = this.stats.concat(['completion_status', 'company']);
- },
-
- prepare_data: function(data) {
- this._super(data);
- data.mntc_date = wn.datetime.str_to_user(data.mntc_date);
- data.date_time = "on " + data.mntc_date + " at " + data.mntc_time;
- data.customer_name = data.customer_name + " " + data.date_time;
- data.completion_status = data.completion_status +
- (data.maintenance_type ? " [" + data.maintenance_type + "]": "");
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '5%', content: 'avatar'},
- {width: '3%', content: 'docstatus'},
- {width: '15%', content: 'name'},
- {width: '40%', content: 'customer_name+tags'},
- {width: '20%', content: 'completion_status'},
- {width: '14%', content: 'modified',
- css: {'text-align': 'right', 'color':'#777'}}
- ]
-
-});
diff --git a/utilities/doctype/address/address.txt b/utilities/doctype/address/address.txt
index 77f25cf6ae..757beb9656 100644
--- a/utilities/doctype/address/address.txt
+++ b/utilities/doctype/address/address.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:32",
"docstatus": 0,
- "modified": "2013-01-22 14:55:56",
+ "modified": "2013-01-29 13:24:45",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -79,6 +79,7 @@
"fieldname": "city",
"fieldtype": "Data",
"in_filter": 1,
+ "in_list_view": 1,
"label": "City/Town",
"reqd": 1,
"search_index": 1
@@ -96,6 +97,7 @@
"fieldname": "country",
"fieldtype": "Select",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Country",
"options": "link:Country",
"reqd": 1,
@@ -151,6 +153,7 @@
"doctype": "DocField",
"fieldname": "is_shipping_address",
"fieldtype": "Check",
+ "in_list_view": 1,
"label": "Is Shipping Address"
},
{
@@ -173,6 +176,7 @@
"fieldname": "customer_name",
"fieldtype": "Data",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Customer Name",
"read_only": 1
},
@@ -190,6 +194,7 @@
"fieldname": "supplier_name",
"fieldtype": "Data",
"in_filter": 1,
+ "in_list_view": 1,
"label": "Supplier Name",
"read_only": 1,
"search_index": 0
diff --git a/utilities/doctype/address/address_list.js b/utilities/doctype/address/address_list.js
deleted file mode 100644
index 325c059fc0..0000000000
--- a/utilities/doctype/address/address_list.js
+++ /dev/null
@@ -1,55 +0,0 @@
-wn.doclistviews['Address'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabAddress`.customer_name",
- "`tabAddress`.supplier",
- "`tabAddress`.supplier_name",
- "`tabAddress`.sales_partner",
- "`tabAddress`.city",
- "`tabAddress`.country",
- "ifnull(`tabAddress`.is_shipping_address, 0) as is_shipping_address",
- ]);
- },
-
- prepare_data: function(data) {
- this._super(data);
-
- // prepare address
- var address = []
- $.each(['city', 'country'], function(i, v) {
- if(data[v]) address.push(data[v]);
- });
- data.address = address.join(", ");
-
- // prepare shipping tag
- if(data.is_shipping_address) {
- data.shipping = 'Shipping';
- }
-
-
- // prepare description
- if(data.customer) {
- data.description = (data.customer_name || data.customer);
- data.contact_type = 'Customer';
- } else if (data.supplier) {
- data.description = (data.supplier_name || data.supplier);
- data.contact_type = 'Supplier';
- } else if (data.sales_partner) {
- data.description = data.sales_partner;
- data.contact_type = 'Sales Partner'
- } else {
- data.description = '';
- data.contact_type = '';
- }
-},
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '20%', content: 'name'},
- {width: '15%', content: 'contact_type'},
- {width: '20%', content: 'description'},
- {width: '30%', content: 'address+shipping+tags', css: {'padding': '2px 0px'}},
- {width: '12%', content: 'modified', css: {'text-align': 'right', 'color':'#777'}}
- ]
-});
diff --git a/utilities/doctype/contact/contact.txt b/utilities/doctype/contact/contact.txt
index 0a244dc088..923ade9225 100644
--- a/utilities/doctype/contact/contact.txt
+++ b/utilities/doctype/contact/contact.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:32",
"docstatus": 0,
- "modified": "2013-01-22 14:55:59",
+ "modified": "2013-01-29 13:26:39",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -65,6 +65,7 @@
"doctype": "DocField",
"fieldname": "email_id",
"fieldtype": "Data",
+ "in_list_view": 1,
"label": "Email Id",
"oldfieldname": "email_id",
"oldfieldtype": "Data",
@@ -113,6 +114,7 @@
"doctype": "DocField",
"fieldname": "customer_name",
"fieldtype": "Data",
+ "in_list_view": 1,
"label": "Customer Name",
"read_only": 1
},
@@ -130,6 +132,7 @@
"doctype": "DocField",
"fieldname": "supplier_name",
"fieldtype": "Data",
+ "in_list_view": 1,
"label": "Supplier Name",
"read_only": 1
},
diff --git a/utilities/doctype/contact/contact_list.js b/utilities/doctype/contact/contact_list.js
deleted file mode 100644
index 3b1b3c983d..0000000000
--- a/utilities/doctype/contact/contact_list.js
+++ /dev/null
@@ -1,50 +0,0 @@
-wn.doclistviews['Contact'] = wn.views.ListView.extend({
- init: function(d) {
- this._super(d)
- this.fields = this.fields.concat([
- "`tabContact`.first_name",
- "`tabContact`.last_name",
- "`tabContact`.customer",
- "`tabContact`.customer_name",
- "`tabContact`.supplier",
- "`tabContact`.supplier_name",
- "`tabContact`.sales_partner",
- "`tabContact`.email_id",
- ]);
- },
-
- prepare_data: function(data) {
- this._super(data);
-
- // prepare fullname
- data.fullname = (data.first_name || '') +
- (data.last_name ? ' ' + data.last_name : '');
- if(!data.fullname) data.fullname = data.name;
- data.fullname = repl("%(name)s\
- ", data);
-
- // prepare description
- if(data.customer) {
- data.description = (data.customer_name || data.customer);
- data.contact_type = 'Customer';
- } else if (data.supplier) {
- data.description = (data.supplier_name || data.supplier);
- data.contact_type = 'Supplier';
- } else if (data.sales_partner) {
- data.description = data.sales_partner;
- data.contact_type = 'Sales Partner'
- } else {
- data.description = '';
- data.contact_type = '';
- }
- },
-
- columns: [
- {width: '3%', content: 'check'},
- {width: '20%', content: 'fullname'},
- {width: '15%', content: 'contact_type'},
- {width: '20%', content: 'description+tags'},
- {width: '30%', content: 'email_id'},
- {width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
- ]
-});