[fix] [minor] show percent fields as right aligned, query report ajax should be of type GET
This commit is contained in:
parent
8ab7bf37b2
commit
4545987c9f
2 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue