Browse Source

[sales invoice] added progress bar of payment

develop
Rushabh Mehta 11 years ago
parent
commit
8f48db33d2
  1. 4
      accounts/doctype/sales_invoice/sales_invoice_list.js

4
accounts/doctype/sales_invoice/sales_invoice_list.js

@ -1,10 +1,10 @@
// render
wn.listview_settings['Sales Invoice'] = {
add_fields: ["`tabSales Invoice`.grand_total", "`tabSales Invoice`.outstanding_amount"],
add_columns: [{"content":"paid_amount", width:"10%", type:"bar-graph",
add_columns: [{"content":"Percent Paid", width:"10%", type:"bar-graph",
label: "Payment Received"}],
prepare_data: function(data) {
data.paid_amount = flt(data.grand_total) ? (((flt(data.grand_total) -
data["Percent Paid"] = flt(data.grand_total) ? (((flt(data.grand_total) -
flt(data.outstanding_amount)) / flt(data.grand_total)) * 100) : 0;
}
};

Loading…
Cancel
Save