list view for purchase receipt

This commit is contained in:
Rushabh Mehta 2012-05-03 10:41:19 +05:30
parent 3d0c9ba22d
commit 28bb342f96
2 changed files with 38 additions and 0 deletions

View 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'}}
]
});

View 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'}}
]
});