mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
25 lines
846 B
JavaScript
25 lines
846 B
JavaScript
|
const frappe = require('frappejs');
|
||
|
const RegisterView = require('../Register/RegisterView');
|
||
|
|
||
|
module.exports = class PurchaseRegisterView extends RegisterView {
|
||
|
constructor() {
|
||
|
super({
|
||
|
title: frappe._('Purchase Register'),
|
||
|
});
|
||
|
|
||
|
this.method = 'purchase-register';
|
||
|
}
|
||
|
|
||
|
getColumns() {
|
||
|
return [
|
||
|
{ label: 'Bill', fieldname: 'name' },
|
||
|
{ label: 'Posting Date', fieldname: 'date' },
|
||
|
{ label: 'Supplier', fieldname: 'supplier' },
|
||
|
{ label: 'Payable Account', fieldname: 'account' },
|
||
|
{ label: 'Net Total', fieldname: 'netTotal', fieldtype: 'Currency' },
|
||
|
{ label: 'Total Tax', fieldname: 'totalTax', fieldtype: 'Currency' },
|
||
|
{ label: 'Grand Total', fieldname: 'grandTotal', fieldtype: 'Currency' },
|
||
|
];
|
||
|
}
|
||
|
}
|