mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
refactoring: balance sheet report.
refactoring: trial balance sheet report. refactoring: general ledger report. refactoring: journal report. refactoring: P&L report.
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
|
||||
export default [
|
||||
{
|
||||
name: 'Assets',
|
||||
section_type: 'assets',
|
||||
type: 'section',
|
||||
children: [
|
||||
{
|
||||
name: 'Current Asset',
|
||||
type: 'section',
|
||||
_accounts_types_related: ['current_asset'],
|
||||
},
|
||||
{
|
||||
name: 'Fixed Asset',
|
||||
type: 'section',
|
||||
_accounts_types_related: ['fixed_asset'],
|
||||
},
|
||||
{
|
||||
name: 'Other Asset',
|
||||
type: 'section',
|
||||
_accounts_types_related: ['other_asset'],
|
||||
},
|
||||
],
|
||||
_forceShow: true,
|
||||
},
|
||||
{
|
||||
name: 'Liabilities and Equity',
|
||||
section_type: 'liabilities_equity',
|
||||
type: 'section',
|
||||
children: [
|
||||
{
|
||||
name: 'Liabilities',
|
||||
section_type: 'liability',
|
||||
type: 'section',
|
||||
children: [
|
||||
{
|
||||
name: 'Current Liability',
|
||||
type: 'section',
|
||||
_accounts_types_related: ['current_liability'],
|
||||
},
|
||||
{
|
||||
name: 'Long Term Liability',
|
||||
type: 'section',
|
||||
_accounts_types_related: ['long_term_liability'],
|
||||
},
|
||||
{
|
||||
name: 'Other Liability',
|
||||
type: 'section',
|
||||
_accounts_types_related: ['other_liability'],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Equity',
|
||||
section_type: 'equity',
|
||||
type: 'section',
|
||||
_accounts_types_related: ['equity'],
|
||||
},
|
||||
],
|
||||
_forceShow: true,
|
||||
},
|
||||
];
|
||||
65
server/src/data/BalanceSheetStructure.ts
Normal file
65
server/src/data/BalanceSheetStructure.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
import { IBalanceSheetStructureSection } from 'interfaces';
|
||||
|
||||
const balanceSheetStructure: IBalanceSheetStructureSection[] = [
|
||||
{
|
||||
name: 'Assets',
|
||||
sectionType: 'assets',
|
||||
type: 'section',
|
||||
children: [
|
||||
{
|
||||
name: 'Current Asset',
|
||||
type: 'accounts_section',
|
||||
_accountsTypesRelated: ['current_asset'],
|
||||
},
|
||||
{
|
||||
name: 'Fixed Asset',
|
||||
type: 'accounts_section',
|
||||
_accountsTypesRelated: ['fixed_asset'],
|
||||
},
|
||||
{
|
||||
name: 'Other Asset',
|
||||
type: 'accounts_section',
|
||||
_accountsTypesRelated: ['other_asset'],
|
||||
},
|
||||
],
|
||||
_forceShow: true,
|
||||
},
|
||||
{
|
||||
name: 'Liabilities and Equity',
|
||||
sectionType: 'liabilities_equity',
|
||||
type: 'section',
|
||||
children: [
|
||||
{
|
||||
name: 'Liabilities',
|
||||
sectionType: 'liability',
|
||||
type: 'section',
|
||||
children: [
|
||||
{
|
||||
name: 'Current Liability',
|
||||
type: 'accounts_section',
|
||||
_accountsTypesRelated: ['current_liability'],
|
||||
},
|
||||
{
|
||||
name: 'Long Term Liability',
|
||||
type: 'accounts_section',
|
||||
_accountsTypesRelated: ['long_term_liability'],
|
||||
},
|
||||
{
|
||||
name: 'Other Liability',
|
||||
type: 'accounts_section',
|
||||
_accountsTypesRelated: ['other_liability'],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Equity',
|
||||
sectionType: 'equity',
|
||||
type: 'accounts_section',
|
||||
_accountsTypesRelated: ['equity'],
|
||||
},
|
||||
],
|
||||
_forceShow: true,
|
||||
},
|
||||
];
|
||||
|
||||
export default balanceSheetStructure;
|
||||
Reference in New Issue
Block a user