2018-04-19 14:31:35 +00:00
|
|
|
const frappe = require('frappejs');
|
2018-04-24 07:58:57 +00:00
|
|
|
const FinancialStatementsView = require('../FinancialStatements/FinancialStatementsView');
|
2018-04-19 14:31:35 +00:00
|
|
|
|
2018-04-24 07:58:57 +00:00
|
|
|
module.exports = class ProfitAndLossView extends FinancialStatementsView {
|
2018-04-19 14:31:35 +00:00
|
|
|
constructor() {
|
|
|
|
super({
|
|
|
|
title: frappe._('Profit and Loss'),
|
2018-04-24 07:58:57 +00:00
|
|
|
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'],
|
2018-04-24 07:58:57 +00:00
|
|
|
label: 'Periodicity', fieldname: 'periodicity', default: 'Monthly'}
|
2018-04-19 14:31:35 +00:00
|
|
|
]
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|