feat: journal and general ledger report.

This commit is contained in:
a.bouhuolia
2021-01-21 14:32:31 +02:00
parent da69c333d7
commit 1a89730855
43 changed files with 797 additions and 372 deletions

View File

@@ -8,19 +8,42 @@ const balanceSheetStructure: IBalanceSheetStructureSection[] = [
children: [
{
name: 'Current Asset',
type: 'accounts_section',
accountsTypesRelated: ['current_asset'],
sectionType: 'assets',
type: 'section',
children: [
{
name: 'Cash and cash equivalents',
type: 'accounts_section',
accountsTypes: ['cash', 'bank'],
},
{
name: 'Accounts Receivable',
type: 'accounts_section',
accountsTypes: ['accounts_receivable'],
},
{
name: 'Inventories',
type: 'accounts_section',
accountsTypes: ['inventory'],
},
{
name: 'Other current assets',
type: 'accounts_section',
accountsTypes: ['other_current_asset'],
},
],
alwaysShow: true,
},
{
name: 'Fixed Asset',
type: 'accounts_section',
accountsTypesRelated: ['fixed_asset'],
accountsTypes: ['fixed_asset'],
},
{
name: 'Other Asset',
name: 'Non-Current Assets',
type: 'accounts_section',
accountsTypesRelated: ['other_asset'],
},
accountsTypes: ['non_current_asset'],
}
],
alwaysShow: true,
},
@@ -35,27 +58,32 @@ const balanceSheetStructure: IBalanceSheetStructureSection[] = [
type: 'section',
children: [
{
name: 'Current Liability',
name: 'Current Liabilties',
type: 'accounts_section',
accountsTypesRelated: ['current_liability'],
accountsTypes: [
'accounts_payable',
'tax_payable',
'credit_card',
'other_current_liability'
],
},
{
name: 'Long Term Liability',
name: 'Long-Term Liabilities',
type: 'accounts_section',
accountsTypesRelated: ['long_term_liability'],
accountsTypes: ['long_term_liability'],
},
{
name: 'Other Liability',
name: 'Non-Current Liabilities',
type: 'accounts_section',
accountsTypesRelated: ['other_liability'],
},
accountsTypes: ['non_current_liability'],
}
],
},
{
name: 'Equity',
sectionType: 'equity',
type: 'accounts_section',
accountsTypesRelated: ['equity'],
accountsTypes: ['equity'],
},
],
alwaysShow: true,