mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
27aed52044
- get books to serve albiet broken - one step at a time
41 lines
1.4 KiB
JavaScript
41 lines
1.4 KiB
JavaScript
/*
|
|
import AccountsReceivablePayable from './AccountsReceivablePayable/AccountsReceivablePayable';
|
|
import BalanceSheet from './BalanceSheet/BalanceSheet';
|
|
import BankReconciliation from './BankReconciliation/BankReconciliation';
|
|
import GeneralLedger from './GeneralLedger/GeneralLedger';
|
|
import GSTR1 from './GoodsAndServiceTax/GSTR1';
|
|
import GSTR2 from './GoodsAndServiceTax/GSTR2';
|
|
import ProfitAndLoss from './ProfitAndLoss/ProfitAndLoss';
|
|
import PurchaseRegister from './PurchaseRegister/PurchaseRegister';
|
|
import SalesRegister from './SalesRegister/SalesRegister';
|
|
import TrialBalance from './TrialBalance/TrialBalance';
|
|
|
|
export function getReportData(method, filters) {
|
|
const reports = {
|
|
'general-ledger': GeneralLedger,
|
|
'profit-and-loss': ProfitAndLoss,
|
|
'balance-sheet': BalanceSheet,
|
|
'trial-balance': TrialBalance,
|
|
'gstr-1': GSTR1,
|
|
'gstr-2': GSTR2,
|
|
'sales-register': SalesRegister,
|
|
'purchase-register': PurchaseRegister,
|
|
'bank-reconciliation': BankReconciliation,
|
|
};
|
|
|
|
if (method === 'accounts-receivable') {
|
|
return new AccountsReceivablePayable().run('Receivable', filters);
|
|
}
|
|
|
|
if (method === 'accounts-payable') {
|
|
return new AccountsReceivablePayable().run('Payable', filters);
|
|
}
|
|
|
|
const ReportClass = reports[method];
|
|
return new ReportClass().run(filters);
|
|
}
|
|
*/
|
|
export function getReportData(method, filters) {
|
|
return { rows: [], columns: [] };
|
|
}
|