mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
27 lines
927 B
JavaScript
27 lines
927 B
JavaScript
|
const RegisterView = require('../Register/RegisterView');
|
||
|
const frappe = require('frappejs');
|
||
|
const { DateTime } = require('luxon');
|
||
|
const { unique } = require('frappejs/utils');
|
||
|
|
||
|
module.exports = class SalesRegisterView extends RegisterView {
|
||
|
constructor() {
|
||
|
super({
|
||
|
title: frappe._('Sales Register')
|
||
|
});
|
||
|
|
||
|
this.method = 'sales-register';
|
||
|
}
|
||
|
|
||
|
getColumns() {
|
||
|
return [
|
||
|
{ label: 'Invoice', fieldname: 'name' },
|
||
|
{ label: 'Posting Date', fieldname: 'date' },
|
||
|
{ label: 'Customer', fieldname: 'customer' },
|
||
|
{ label: 'Receivable Account', fieldname: 'account' },
|
||
|
{ label: 'Net Total', fieldname: 'netTotal', fieldtype: 'Currency' },
|
||
|
{ label: 'Total Tax', fieldname: 'totalTax', fieldtype: 'Currency' },
|
||
|
{ label: 'Grand Total', fieldname: 'grandTotal', fieldtype: 'Currency' },
|
||
|
];
|
||
|
}
|
||
|
}
|