mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
72c6d7f6c7
* init()
* Country-wise Chart of accounts on setup
* Add a sample invoice template
* Some error fixes
* [fix] missing COA
- move importCOA.js from models/doctype/account to models/doctype/Account
* All Account initial balance zero
* setup Bank Reconciliation
* New chart of accounts tree component
* GST taxes added. initialized gst reports.
* [chore] add *.db to .gitignore
* [fix] importCOA path error
* fix error + bank reconciliation fields
* [feat] add gst taxes
* GST report initialized
* GST report finalized
* GST report finalized
* Complete min. reconciliation
* [feat] auto select tax in invoice based on states
* [chore] fix merge changes
* Fix date issue - Make Payment
* Add invoice templates and invoice customizer panel
* Restructure invoice vue components
* update file with fiscal year
* Fix issues in invoice designs
* Add company settings. Dynamic addresses in invoice
* Move invoice styles to different file and add separate components for addresses
* [feat] add export-filtered-data-to-csv to reports
* [feat] add Export Wizard component for customizing export
* Fix invoice customizer position while scrolling. Fix address displayed as undefined in invoice if not found in db
* [chore] change markup for select all chkbox
* Setup config as doctype
* GSTIN bug fix
* Add custom google fonts
* Add Send email footer
* Fix DateTime
* Complete Merge + Resolve
* Complete Merge + Resolve
* [chore] change layout of Export Wizard
* [enh] optimize checkNoneSelected, style export modal footer divider
* Add Tax to SideBar
* Remove extra logs
* [fix] db name section in sidebar showing absolute path instead of dbname in windows i.e. platform=win32
* Country-wise Chart of accounts on setup (#78)
* Country-wise Chart of accounts on setup
* Some error fixes
* All Account initial balance zero
* Update README.md
- updated installation instructions with more detail
* Merge #79 Winter Sprint: Work
https://github.com/frappe/accounting/pull/79
* Revert "Merge #79 Winter Sprint: Work"
This reverts commit 1715116668
.
71 lines
2.1 KiB
JavaScript
71 lines
2.1 KiB
JavaScript
const frappe = require('frappejs');
|
|
const GeneralLedger = require('./GeneralLedger/GeneralLedger');
|
|
const ProfitAndLoss = require('./ProfitAndLoss/ProfitAndLoss');
|
|
const BalanceSheet = require('./BalanceSheet/BalanceSheet');
|
|
const TrialBalance = require('./TrialBalance/TrialBalance');
|
|
const SalesRegister = require('./SalesRegister/SalesRegister');
|
|
const PurchaseRegister = require('./PurchaseRegister/PurchaseRegister');
|
|
const BankReconciliation = require('./BankReconciliation/BankReconciliation');
|
|
const GoodsAndServiceTax = require('./GoodsAndServiceTax/GoodsAndServiceTax');
|
|
const AccountsReceivablePayable = require('./AccountsReceivablePayable/AccountsReceivablePayable');
|
|
|
|
// called on server side
|
|
function registerReportMethods() {
|
|
const reports = [{
|
|
method: 'general-ledger',
|
|
class: GeneralLedger
|
|
},
|
|
{
|
|
method: 'profit-and-loss',
|
|
class: ProfitAndLoss
|
|
},
|
|
{
|
|
method: 'balance-sheet',
|
|
class: BalanceSheet
|
|
},
|
|
{
|
|
method: 'trial-balance',
|
|
class: TrialBalance
|
|
},
|
|
{
|
|
method: 'sales-register',
|
|
class: SalesRegister
|
|
},
|
|
{
|
|
method: 'purchase-register',
|
|
class: PurchaseRegister
|
|
},
|
|
{
|
|
method: 'bank-reconciliation',
|
|
class: BankReconciliation
|
|
},
|
|
{
|
|
method: 'gst-taxes',
|
|
class: GoodsAndServiceTax
|
|
},
|
|
];
|
|
|
|
reports.forEach(report => {
|
|
frappe.registerMethod({
|
|
method: report.method,
|
|
handler: getReportData(report.class)
|
|
});
|
|
});
|
|
|
|
frappe.registerMethod({
|
|
method: 'accounts-receivable',
|
|
handler: args => new AccountsReceivablePayable().run('Receivable', args)
|
|
});
|
|
|
|
frappe.registerMethod({
|
|
method: 'accounts-payable',
|
|
handler: args => new AccountsReceivablePayable().run('Payable', args)
|
|
});
|
|
}
|
|
|
|
function getReportData(ReportClass) {
|
|
return args => new ReportClass().run(args);
|
|
}
|
|
|
|
module.exports = registerReportMethods
|