mirror of
https://github.com/frappe/books.git
synced 2024-09-20 19:29:02 +00:00
86d0ef3d06
- SearchBar - Invoice & Bill Rename
25 lines
780 B
JavaScript
25 lines
780 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: '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' }
|
|
];
|
|
}
|
|
};
|