[fix] [minor] [sales invoice] don't hide warehouse and delivered_qty
This commit is contained in:
parent
c7280b4973
commit
10c773dc1c
@ -171,8 +171,7 @@ cur_frm.cscript.hide_fields = function(doc) {
|
||||
'total_commission', 'advances'];
|
||||
|
||||
item_flds_normal = ['sales_order', 'delivery_note']
|
||||
item_flds_pos = ['warehouse', 'serial_no', 'batch_no', 'actual_qty',
|
||||
'delivered_qty', 'expense_account']
|
||||
item_flds_pos = ['serial_no', 'batch_no', 'actual_qty', 'expense_account']
|
||||
|
||||
if(cint(doc.is_pos) == 1) {
|
||||
hide_field(par_flds);
|
||||
@ -185,7 +184,7 @@ cur_frm.cscript.hide_fields = function(doc) {
|
||||
}
|
||||
|
||||
cur_frm.fields_dict['entries'].grid.set_column_disp(item_flds_pos, (cint(doc.update_stock)==1?true:false));
|
||||
|
||||
|
||||
// India related fields
|
||||
var cp = wn.control_panel;
|
||||
if (cp.country == 'India') unhide_field(['c_form_applicable', 'c_form_no']);
|
||||
|
Loading…
Reference in New Issue
Block a user