mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
17e5187c51
- Models - Bill - Quotation (extended from Invoice) - Journal Entry - Reports - Sales Register - Purchase Register
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' },
|
|
];
|
|
}
|
|
}
|