list view for purchase receipt
This commit is contained in:
parent
3d0c9ba22d
commit
28bb342f96
18
erpnext/stock/doctype/purchase_receipt/listview.js
Normal file
18
erpnext/stock/doctype/purchase_receipt/listview.js
Normal file
@ -0,0 +1,18 @@
|
||||
// render
|
||||
wn.doclistviews['Purchase Receipt'] = wn.views.ListView.extend({
|
||||
init: function(d) {
|
||||
this._super(d);
|
||||
this.fields = this.fields.concat([
|
||||
"`tabPurchase Receipt`.supplier_name",
|
||||
"`tabPurchase Receipt`.purchase_order_no"
|
||||
]);
|
||||
},
|
||||
columns: [
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '15%', content:'name'},
|
||||
{width: '50%', content:'tags+supplier_name', css: {color:'#aaa'}},
|
||||
{width: '15%', content:'purchase_order_no', type:'link', doctype:'Purchase Order Order'},
|
||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
]
|
||||
});
|
20
erpnext/stock/doctype/stock_entry/listview.js
Normal file
20
erpnext/stock/doctype/stock_entry/listview.js
Normal file
@ -0,0 +1,20 @@
|
||||
// render
|
||||
wn.doclistviews['Stock Entry'] = wn.views.ListView.extend({
|
||||
init: function(d) {
|
||||
this._super(d);
|
||||
this.fields = this.fields.concat([
|
||||
"`tabStock Entry`.purpose",
|
||||
"`tabStock Entry`.from_warehouse",
|
||||
"`tabStock Entry`.to_warehouse",
|
||||
]);
|
||||
},
|
||||
columns: [
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '15%', content:'name'},
|
||||
{width: '18%', content:'tags+purpose', css: {color:'#aaa'}},
|
||||
{width: '18%', content:'from_warehouse', template: 'From %(from_warehouse)s'},
|
||||
{width: '18%', content:'to_warehouse', template: 'To %(to_warehouse)s'},
|
||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
]
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user