Merge branch 'master' into edge
This commit is contained in:
commit
de46f43dc1
@ -1,9 +1,9 @@
|
|||||||
// render
|
// render
|
||||||
wn.listview_settings['Purchase Invoice'] = {
|
wn.listview_settings['Purchase Invoice'] = {
|
||||||
add_fields: ["`tabPurchase Invoice`.grand_total", "`tabPurchase Invoice`.outstanding_amount"],
|
add_fields: ["`tabPurchase Invoice`.grand_total", "`tabPurchase Invoice`.outstanding_amount"],
|
||||||
add_columns: [{"content":"outstanding_amount", width:"10%", type:"bar-graph"}],
|
add_columns: [{"content":"outstanding_amount", width:"10%", type:"bar-graph", label: "Paid"}],
|
||||||
prepare_data: function(data) {
|
prepare_data: function(data) {
|
||||||
data.outstanding_amount = (flt(data.grand_total) -
|
data.outstanding_amount = ((flt(data.grand_total) -
|
||||||
flt(data.outstanding_amount)) / flt(data.grand_total) * 100;
|
flt(data.outstanding_amount)) / flt(data.grand_total)) * 100;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user