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) {
|
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'},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user