[fix] [minor] show percent fields as right aligned, query report ajax should be of type GET

This commit is contained in:
Anand Doshi 2013-08-07 19:08:12 +05:30
parent 8ab7bf37b2
commit 4545987c9f
2 changed files with 2 additions and 1 deletions

View file

@ -20,7 +20,7 @@ wn.form.formatters = {
return value==null ? "": cint(value);
},
Percent: function(value) {
return flt(value, 2) + "%";
return "<div style='text-align: right'>" + flt(value, 2) + "%" + "</div>";
},
Currency: function(value, docfield, options, doc) {
var currency = wn.meta.get_field_currency(docfield, doc);

View file

@ -144,6 +144,7 @@ wn.views.QueryReport = Class.extend({
})
return wn.call({
method: "webnotes.widgets.query_report.run",
type: "GET",
args: {
"report_name": me.report_name,
filters: filters