mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
[price_list] [minor] move header of new grid to right if currency
This commit is contained in:
@@ -93,9 +93,14 @@ wn.ui.form.TableGrid = Class.extend({
|
|||||||
|
|
||||||
// Make other headers with label as heading
|
// Make other headers with label as heading
|
||||||
$.each(this.fields, function(i, obj) {
|
$.each(this.fields, function(i, obj) {
|
||||||
if (obj.in_list_view===1)
|
|
||||||
var th = document.createElement("th");
|
var th = document.createElement("th");
|
||||||
|
|
||||||
|
// If currency then move header to right
|
||||||
|
if (obj.fieldtype == "Currency")
|
||||||
|
$(th).attr("style", "vertical-align:middle; text-align:right;");
|
||||||
|
else
|
||||||
$(th).attr("style", "vertical-align:middle");
|
$(th).attr("style", "vertical-align:middle");
|
||||||
|
|
||||||
$(th).html(obj.label);
|
$(th).html(obj.label);
|
||||||
$(th).appendTo(row);
|
$(th).appendTo(row);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user