[fixes] pull previous doc details

This commit is contained in:
Nabin Hait
2013-06-24 12:20:35 +05:30
parent 65f038c926
commit 4cd977a2a9
5 changed files with 5 additions and 5 deletions

View File

@@ -166,7 +166,7 @@ cur_frm.cscript.recalculate = function(doc, cdt, cdn) {
cur_frm.cscript.get_items = function(doc, dt, dn) {
var callback = function(r,rt) {
unhide_field(['supplier_address', 'contact_person']);
cur_frm.refresh();
cur_frm.refresh_fields();
}
$c_obj(make_doclist(dt,dn),'pull_details','',callback);
}

View File

@@ -275,7 +275,7 @@ cur_frm.cscript.is_opening = function(doc, dt, dn) {
cur_frm.cscript.get_items = function(doc, dt, dn) {
var callback = function(r,rt) {
unhide_field(['customer_address','contact_person', 'territory','customer_group']);
cur_frm.refresh();
cur_frm.refresh_fields();
}
get_server_fields('pull_details','','',doc, dt, dn,1,callback);
}