sales/ pur invoice listview fix
This commit is contained in:
parent
39ca69e978
commit
757a785872
@ -16,9 +16,8 @@ wn.doclistviews['Purchase Invoice'] = wn.views.ListView.extend({
|
||||
|
||||
prepare_data: function(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: [
|
||||
|
@ -14,7 +14,8 @@ wn.doclistviews['Sales Invoice'] = wn.views.ListView.extend({
|
||||
},
|
||||
prepare_data: function(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: [
|
||||
{width: '3%', content: 'check'},
|
||||
|
Loading…
x
Reference in New Issue
Block a user