Merge branch 'edge' of github.com:webnotes/erpnext into edge

This commit is contained in:
Anand Doshi
2013-01-02 16:47:00 +05:30
5 changed files with 38 additions and 15 deletions

View File

@@ -52,11 +52,11 @@ cur_frm.cscript.is_opening = function(doc, cdt, cdn) {
} }
cur_frm.fields_dict['entries'].grid.get_field('account').get_query = function(doc) { cur_frm.fields_dict['entries'].grid.get_field('account').get_query = function(doc) {
return "SELECT `tabAccount`.name FROM `tabAccount` WHERE `tabAccount`.company='"+doc.company+"' AND tabAccount.group_or_ledger = 'Ledger' AND tabAccount.docstatus != 2 AND `tabAccount`.%(key)s LIKE '%s' ORDER BY `tabAccount`.name DESC LIMIT 50"; return "SELECT `tabAccount`.name, `tabAccount`.parent_account FROM `tabAccount` WHERE `tabAccount`.company='"+doc.company+"' AND tabAccount.group_or_ledger = 'Ledger' AND tabAccount.docstatus != 2 AND `tabAccount`.%(key)s LIKE '%s' ORDER BY `tabAccount`.name DESC LIMIT 50";
} }
cur_frm.fields_dict["entries"].grid.get_field("cost_center").get_query = function(doc, cdt, cdn) { cur_frm.fields_dict["entries"].grid.get_field("cost_center").get_query = function(doc, cdt, cdn) {
return 'SELECT `tabCost Center`.`name` FROM `tabCost Center` WHERE `tabCost Center`.`company_name` = "' +doc.company+'" AND `tabCost Center`.%(key)s LIKE "%s" AND `tabCost Center`.`group_or_ledger` = "Ledger" AND `tabCost Center`.docstatus != 2 ORDER BY `tabCost Center`.`name` ASC LIMIT 50'; return 'SELECT `tabCost Center`.`name`, `tabCost Center`.parent_cost_center FROM `tabCost Center` WHERE `tabCost Center`.`company_name` = "' +doc.company+'" AND `tabCost Center`.%(key)s LIKE "%s" AND `tabCost Center`.`group_or_ledger` = "Ledger" AND `tabCost Center`.docstatus != 2 ORDER BY `tabCost Center`.`name` ASC LIMIT 50';
} }
// Restrict Voucher based on Account // Restrict Voucher based on Account

View File

@@ -1,4 +1,8 @@
erpnext.updates = [ erpnext.updates = [
["2nd January 2013", [
"Permission Manager: New Design with better help and better advanced permission selection.",
"User Properties: Better way to set User Properties (defaults).",
]],
["1st January 2013", [ ["1st January 2013", [
"Trial Balance: Added an option to see the report <b>without period closing entry</b>\ "Trial Balance: Added an option to see the report <b>without period closing entry</b>\
You will find this checkbox at the bottom of the report.", You will find this checkbox at the bottom of the report.",

View File

@@ -566,12 +566,12 @@ patch_list = [
'patch_module': 'patches.december_2012', 'patch_module': 'patches.december_2012',
'patch_file': 'update_print_width', 'patch_file': 'update_print_width',
}, },
{
'patch_module': 'patches.january_2013',
'patch_file': 'deprecate_stock_search_criteria',
},
{ {
'patch_module': 'patches.january_2013', 'patch_module': 'patches.january_2013',
'patch_file': 'remove_bad_permissions', 'patch_file': 'remove_bad_permissions',
}, },
{
'patch_module': 'patches.january_2013',
'patch_file': 'deprecate_stock_search_criteria',
},
] ]

View File

@@ -4,7 +4,7 @@
"docstatus": 0, "docstatus": 0,
"creation": "2012-10-29 14:30:00", "creation": "2012-10-29 14:30:00",
"modified_by": "Administrator", "modified_by": "Administrator",
"modified": "2012-12-24 10:46:06" "modified": "2013-01-02 12:40:26"
}, },
{ {
"autoname": "TASK.#####", "autoname": "TASK.#####",
@@ -37,6 +37,7 @@
"doctype": "DocType" "doctype": "DocType"
}, },
{ {
"print_width": "50%",
"oldfieldtype": "Section Break", "oldfieldtype": "Section Break",
"doctype": "DocField", "doctype": "DocField",
"label": "Task Details", "label": "Task Details",
@@ -76,6 +77,7 @@
"in_filter": 1 "in_filter": 1
}, },
{ {
"print_width": "50%",
"oldfieldtype": "Column Break", "oldfieldtype": "Column Break",
"doctype": "DocField", "doctype": "DocField",
"width": "50%", "width": "50%",
@@ -121,6 +123,7 @@
"options": "Simple" "options": "Simple"
}, },
{ {
"print_width": "300px",
"oldfieldtype": "Text Editor", "oldfieldtype": "Text Editor",
"doctype": "DocField", "doctype": "DocField",
"label": "Details", "label": "Details",
@@ -138,6 +141,7 @@
"fieldtype": "Section Break" "fieldtype": "Section Break"
}, },
{ {
"print_width": "50%",
"oldfieldtype": "Column Break", "oldfieldtype": "Column Break",
"doctype": "DocField", "doctype": "DocField",
"label": "Expected", "label": "Expected",
@@ -163,6 +167,7 @@
"fieldtype": "Currency" "fieldtype": "Currency"
}, },
{ {
"print_width": "50%",
"oldfieldtype": "Column Break", "oldfieldtype": "Column Break",
"doctype": "DocField", "doctype": "DocField",
"label": "Actual", "label": "Actual",
@@ -216,7 +221,7 @@
"fieldname": "review_date", "fieldname": "review_date",
"fieldtype": "Date", "fieldtype": "Date",
"depends_on": "eval:doc.status == \"Closed\" || doc.status == \"Pending Review\"", "depends_on": "eval:doc.status == \"Closed\" || doc.status == \"Pending Review\"",
"hidden": 1 "hidden": 0
}, },
{ {
"oldfieldtype": "Date", "oldfieldtype": "Date",
@@ -226,7 +231,7 @@
"fieldname": "closing_date", "fieldname": "closing_date",
"fieldtype": "Date", "fieldtype": "Date",
"depends_on": "eval:doc.status == \"Closed\"", "depends_on": "eval:doc.status == \"Closed\"",
"hidden": 1 "hidden": 0
}, },
{ {
"print_hide": 1, "print_hide": 1,
@@ -245,7 +250,11 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"amend": 0,
"create": 0,
"doctype": "DocPerm", "doctype": "DocPerm",
"submit": 0,
"cancel": 0,
"permlevel": 1 "permlevel": 1
} }
] ]

View File

@@ -2,11 +2,12 @@
{ {
"owner": "Administrator", "owner": "Administrator",
"docstatus": 0, "docstatus": 0,
"creation": "2012-11-30 18:13:54", "creation": "2012-12-03 10:31:04",
"modified_by": "Administrator", "modified_by": "Administrator",
"modified": "2012-12-03 09:33:28" "modified": "2013-01-02 12:46:48"
}, },
{ {
"istable": 1,
"autoname": "TSD.#####", "autoname": "TSD.#####",
"name": "__common__", "name": "__common__",
"doctype": "DocType", "doctype": "DocType",
@@ -24,6 +25,7 @@
"doctype": "DocType" "doctype": "DocType"
}, },
{ {
"print_width": "160px",
"oldfieldtype": "Time", "oldfieldtype": "Time",
"doctype": "DocField", "doctype": "DocField",
"label": "Actual Start Time", "label": "Actual Start Time",
@@ -35,6 +37,7 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"print_width": "160px",
"oldfieldtype": "Time", "oldfieldtype": "Time",
"doctype": "DocField", "doctype": "DocField",
"label": "Actual End Time", "label": "Actual End Time",
@@ -46,17 +49,19 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"print_width": "200px",
"permlevel": 0,
"search_index": 0, "search_index": 0,
"doctype": "DocField", "doctype": "DocField",
"label": "Activity Type", "label": "Activity Type",
"width": "200px", "width": "200px",
"options": "Activity Type",
"fieldname": "activity_type", "fieldname": "activity_type",
"fieldtype": "Link", "fieldtype": "Link",
"reqd": 1, "reqd": 1,
"permlevel": 0 "options": "Activity Type"
}, },
{ {
"print_width": "200px",
"oldfieldtype": "Text", "oldfieldtype": "Text",
"doctype": "DocField", "doctype": "DocField",
"label": "Additional Info", "label": "Additional Info",
@@ -67,6 +72,7 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"print_width": "100px",
"oldfieldtype": "Data", "oldfieldtype": "Data",
"doctype": "DocField", "doctype": "DocField",
"label": "Total Hours (Actual)", "label": "Total Hours (Actual)",
@@ -77,6 +83,7 @@
"permlevel": 1 "permlevel": 1
}, },
{ {
"print_width": "150px",
"oldfieldtype": "Data", "oldfieldtype": "Data",
"doctype": "DocField", "doctype": "DocField",
"label": "Customer Name", "label": "Customer Name",
@@ -88,6 +95,7 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"print_width": "150px",
"permlevel": 0, "permlevel": 0,
"oldfieldtype": "Link", "oldfieldtype": "Link",
"doctype": "DocField", "doctype": "DocField",
@@ -102,19 +110,21 @@
"in_filter": 1 "in_filter": 1
}, },
{ {
"print_width": "150px",
"permlevel": 0,
"oldfieldtype": "Link", "oldfieldtype": "Link",
"doctype": "DocField", "doctype": "DocField",
"label": "Task Id", "label": "Task Id",
"oldfieldname": "task_id", "oldfieldname": "task_id",
"width": "150px", "width": "150px",
"options": "Task",
"fieldname": "task_id", "fieldname": "task_id",
"fieldtype": "Link", "fieldtype": "Link",
"search_index": 1, "search_index": 1,
"permlevel": 0, "options": "Task",
"in_filter": 1 "in_filter": 1
}, },
{ {
"print_width": "250px",
"oldfieldtype": "Link", "oldfieldtype": "Link",
"doctype": "DocField", "doctype": "DocField",
"label": "Task Name", "label": "Task Name",