2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/reports/ProfitAndLoss/ProfitAndLossView.js
Faris Ansari 180825243f Reports
- Common FinancialStatementsView
- Add BalanceSheet
- Add Fiscal Year in Accounting Settings
2018-04-24 13:28:57 +05:30

18 lines
712 B
JavaScript

const frappe = require('frappejs');
const FinancialStatementsView = require('../FinancialStatements/FinancialStatementsView');
module.exports = class ProfitAndLossView extends FinancialStatementsView {
constructor() {
super({
title: frappe._('Profit and Loss'),
method: 'profit-and-loss',
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'}
]
});
}
}