mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
sales/ pur invoice listview fix
This commit is contained in:
@@ -16,9 +16,8 @@ wn.doclistviews['Purchase Invoice'] = wn.views.ListView.extend({
|
|||||||
|
|
||||||
prepare_data: function(data) {
|
prepare_data: function(data) {
|
||||||
this._super(data);
|
this._super(data);
|
||||||
data.paid = flt(
|
data.paid = data.docstatus == 1 ?
|
||||||
((data.grand_total - data.outstanding_amount) / data.grand_total) * 100,
|
flt(((data.grand_total - data.outstanding_amount) / data.grand_total) * 100, 2) : 0;
|
||||||
2);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
columns: [
|
columns: [
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ wn.doclistviews['Sales Invoice'] = wn.views.ListView.extend({
|
|||||||
},
|
},
|
||||||
prepare_data: function(data) {
|
prepare_data: function(data) {
|
||||||
this._super(data);
|
this._super(data);
|
||||||
data.paid = flt((data.grand_total - data.outstanding_amount) / data.grand_total * 100, 2);
|
data.paid = (data.docstatus == 1) ?
|
||||||
|
flt((data.grand_total - data.outstanding_amount) / data.grand_total * 100, 2) : 0;
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{width: '3%', content: 'check'},
|
{width: '3%', content: 'check'},
|
||||||
|
|||||||
Reference in New Issue
Block a user