2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/reports/ProfitAndLoss/ProfitAndLossView.js

18 lines
712 B
JavaScript
Raw Normal View History

2018-04-19 14:31:35 +00:00
const frappe = require('frappejs');
const FinancialStatementsView = require('../FinancialStatements/FinancialStatementsView');
2018-04-19 14:31:35 +00:00
module.exports = class ProfitAndLossView extends FinancialStatementsView {
2018-04-19 14:31:35 +00:00
constructor() {
super({
title: frappe._('Profit and Loss'),
method: 'profit-and-loss',
2018-04-19 14:31:35 +00:00
filterFields: [
{fieldtype: 'Date', label: 'From Date', required: 1},
{fieldtype: 'Date', label: 'To Date', required: 1},
{fieldtype: 'Select', options: ['Monthly', 'Quarterly', 'Half Yearly', 'Yearly'],
label: 'Periodicity', fieldname: 'periodicity', default: 'Monthly'}
2018-04-19 14:31:35 +00:00
]
});
}
}