mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
180825243f
- Common FinancialStatementsView - Add BalanceSheet - Add Fiscal Year in Accounting Settings
18 lines
712 B
JavaScript
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'}
|
|
]
|
|
});
|
|
}
|
|
}
|