2018-04-26 10:23:27 +00:00
|
|
|
const frappe = require('frappejs');
|
|
|
|
const RegisterView = require('../Register/RegisterView');
|
|
|
|
|
|
|
|
module.exports = class PurchaseRegisterView extends RegisterView {
|
2019-08-01 11:52:58 +00:00
|
|
|
constructor() {
|
|
|
|
super({
|
|
|
|
title: frappe._('Purchase Register')
|
|
|
|
});
|
2018-04-26 10:23:27 +00:00
|
|
|
|
2019-08-01 11:52:58 +00:00
|
|
|
this.method = 'purchase-register';
|
|
|
|
}
|
2018-04-26 10:23:27 +00:00
|
|
|
|
2019-08-01 11:52:58 +00:00
|
|
|
getColumns() {
|
|
|
|
return [
|
|
|
|
{ label: 'PurchaseInvoice', 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' }
|
|
|
|
];
|
|
|
|
}
|
|
|
|
};
|