|
|
@@ -98,9 +98,9 @@ _f.Grid.prototype.insert_column = function(doctype, fieldname, fieldtype, label, |
|
|
|
|
|
|
|
var idx = this.head_row.cells.length; |
|
|
|
if(!width)width = '100px'; |
|
|
|
if((width+'').slice(-2)!='px') { |
|
|
|
width= width + 'px'; |
|
|
|
} |
|
|
|
if(fieldtype=="Currency" && cint(width) < 100) width = "100px"; |
|
|
|
width= cint(width) + 'px'; |
|
|
|
|
|
|
|
var col = this.head_row.insertCell(idx); |
|
|
|
|
|
|
|
col.doctype = doctype; // for report (fields may be from diff doctypes) |
|
|
|