[selling] changed fieldtype of Price List to link

This commit is contained in:
Anand Doshi
2013-07-26 11:32:02 +05:30
parent 23de6df72e
commit 720a01a6f6
8 changed files with 37 additions and 17 deletions

View File

@@ -18,8 +18,10 @@ cur_frm.cscript.onload = function(doc,cdt,cdn){
$c_obj(make_doclist(cdt,cdn),'get_series','',function(r,rt){
if(r.message) set_field_options('naming_series', r.message);
});
cur_frm.set_query("price_list_name", function() {
return { filters: { buying_or_selling: "Selling" } };
});
}
//cash bank account

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-05-24 12:15:51",
"docstatus": 0,
"modified": "2013-07-05 14:50:33",
"modified": "2013-07-26 11:16:53",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -94,11 +94,11 @@
{
"doctype": "DocField",
"fieldname": "price_list_name",
"fieldtype": "Select",
"fieldtype": "Link",
"label": "Price List",
"oldfieldname": "price_list_name",
"oldfieldtype": "Select",
"options": "link:Price List",
"options": "Price List",
"read_only": 0,
"reqd": 1
},

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-05-24 19:29:05",
"docstatus": 0,
"modified": "2013-07-25 16:08:10",
"modified": "2013-07-26 11:16:58",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -247,11 +247,11 @@
{
"doctype": "DocField",
"fieldname": "price_list_name",
"fieldtype": "Select",
"fieldtype": "Link",
"label": "Price List",
"oldfieldname": "price_list_name",
"oldfieldtype": "Select",
"options": "link:Price List",
"options": "Price List",
"print_hide": 1,
"read_only": 0,
"reqd": 1