listview of sales invoice
This commit is contained in:
parent
486718250e
commit
1f5a58eed7
@ -4,6 +4,7 @@ wn.doclistviews['Sales Invoice'] = wn.views.ListView.extend({
|
||||
this._super(d);
|
||||
this.fields = this.fields.concat([
|
||||
"`tabSales Invoice`.customer_name",
|
||||
"`tabSales Invoice`.debit_to",
|
||||
"ifnull(`tabSales Invoice`.outstanding_amount,0) as outstanding_amount",
|
||||
"ifnull(`tabSales Invoice`.grand_total,0) as grand_total",
|
||||
"`tabSales Invoice`.currency",
|
||||
@ -19,7 +20,13 @@ wn.doclistviews['Sales Invoice'] = wn.views.ListView.extend({
|
||||
{width: '5%', content: 'avatar'},
|
||||
{width: '3%', content: 'docstatus'},
|
||||
{width: '15%', content: 'name'},
|
||||
{width: '34%', content: 'customer_name+tags', css: {color:'#222'}},
|
||||
{
|
||||
width: '34%',
|
||||
content: function(parent, data) {
|
||||
$(parent).html(data.customer_name?data.customer_name:data.debit_to)
|
||||
},
|
||||
css: {color: '#222'}
|
||||
},
|
||||
{
|
||||
width: '18%',
|
||||
content: function(parent, data) {
|
||||
|
Loading…
Reference in New Issue
Block a user