@ -2031,9 +2031,11 @@ _f.frm_dialog.cur_frm.fields_dict[n].refresh();}else{var g=_f.cur_grid_cell;if(g
cur_frm . fields_dict [ n ] . refresh ( ) ; } }
cur_frm . fields_dict [ n ] . refresh ( ) ; } }
set_field_options = function ( n , txt ) { var df = get_field ( cur_frm . doctype , n , cur_frm . docname ) ; if ( df ) df . options = txt ; refresh_field ( n ) ; }
set_field_options = function ( n , txt ) { var df = get_field ( cur_frm . doctype , n , cur_frm . docname ) ; if ( df ) df . options = txt ; refresh_field ( n ) ; }
set_field_permlevel = function ( n , level ) { var df = get_field ( cur_frm . doctype , n , cur_frm . docname ) ; if ( df ) df . permlevel = level ; refresh_field ( n ) ; }
set_field_permlevel = function ( n , level ) { var df = get_field ( cur_frm . doctype , n , cur_frm . docname ) ; if ( df ) df . permlevel = level ; refresh_field ( n ) ; }
hide_field = function ( n ) { function _ hide_field ( n , hidden ) { var df = get_field ( cur_frm . doctype , n , cur_frm . docname ) ; if ( df ) df . hidden = hidden ; refresh_field ( n ) ; else console . log ( "hide_field cannot find field " + n ) ; }
hide_field = function ( n ) { function _ hide_field ( n , hidden ) { var df = get_field ( cur_frm . doctype , n , cur_frm . docname ) ; if ( df ) { df . hidden = hidden ; refresh_field ( n ) ; }
else { console . log ( "hide_field cannot find field " + n ) ; } }
if ( cur_frm ) { if ( n . substr ) _ hide_field ( n , 1 ) ; else { for ( var i in n ) _ hide_field ( n [ i ] , 1 ) } } }
if ( cur_frm ) { if ( n . substr ) _ hide_field ( n , 1 ) ; else { for ( var i in n ) _ hide_field ( n [ i ] , 1 ) } } }
unhide_field = function ( n ) { function _ hide_field ( n , hidden ) { var df = get_field ( cur_frm . doctype , n , cur_frm . docname ) ; if ( df ) df . hidden = hidden ; refresh_field ( n ) ; else console . log ( "unhide_field cannot find field " + n ) ; }
unhide_field = function ( n ) { function _ hide_field ( n , hidden ) { var df = get_field ( cur_frm . doctype , n , cur_frm . docname ) ; if ( df ) { df . hidden = hidden ; refresh_field ( n ) ; }
else { console . log ( "unhide_field cannot find field " + n ) ; } }
if ( cur_frm ) { if ( n . substr ) _ hide_field ( n , 0 ) ; else { for ( var i in n ) _ hide_field ( n [ i ] , 0 ) } } }
if ( cur_frm ) { if ( n . substr ) _ hide_field ( n , 0 ) ; else { for ( var i in n ) _ hide_field ( n [ i ] , 0 ) } } }
get_field_obj = function ( fn ) { return cur_frm . fields_dict [ fn ] ; }
get_field_obj = function ( fn ) { return cur_frm . fields_dict [ fn ] ; }
/ *
/ *