mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
spelling: accumulated
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -362,14 +362,14 @@ export default class CashFlowStatement extends compose(
|
|||||||
/**
|
/**
|
||||||
* Retrieve the total section from the eqauation parser.
|
* Retrieve the total section from the eqauation parser.
|
||||||
* @param {ICashFlowSchemaTotalSection} sectionSchema
|
* @param {ICashFlowSchemaTotalSection} sectionSchema
|
||||||
* @param {ICashFlowSchemaSection[]} accumlatedSections
|
* @param {ICashFlowSchemaSection[]} accumulatedSections
|
||||||
* @returns {ICashFlowStatementTotalSection}
|
* @returns {ICashFlowStatementTotalSection}
|
||||||
*/
|
*/
|
||||||
private totalEquationSectionParser = (
|
private totalEquationSectionParser = (
|
||||||
accumlatedSections: ICashFlowSchemaSection[],
|
accumulatedSections: ICashFlowSchemaSection[],
|
||||||
sectionSchema: ICashFlowSchemaTotalSection
|
sectionSchema: ICashFlowSchemaTotalSection
|
||||||
): ICashFlowStatementTotalSection => {
|
): ICashFlowStatementTotalSection => {
|
||||||
const mappedSectionsById = this.transformSectionsToMap(accumlatedSections);
|
const mappedSectionsById = this.transformSectionsToMap(accumulatedSections);
|
||||||
const nodesTotalById = this.sectionsMapToTotal(mappedSectionsById);
|
const nodesTotalById = this.sectionsMapToTotal(mappedSectionsById);
|
||||||
|
|
||||||
const total = this.evaluateEquation(sectionSchema.equation, nodesTotalById);
|
const total = this.evaluateEquation(sectionSchema.equation, nodesTotalById);
|
||||||
@@ -524,7 +524,7 @@ export default class CashFlowStatement extends compose(
|
|||||||
* @param {ICashFlowSchemaSection | ICashFlowStatementSection} section
|
* @param {ICashFlowSchemaSection | ICashFlowStatementSection} section
|
||||||
* @param {number} key
|
* @param {number} key
|
||||||
* @param {ICashFlowSchemaSection[]} parentValue
|
* @param {ICashFlowSchemaSection[]} parentValue
|
||||||
* @param {(ICashFlowSchemaSection | ICashFlowStatementSection)[]} accumlatedSections
|
* @param {(ICashFlowSchemaSection | ICashFlowStatementSection)[]} accumulatedSections
|
||||||
* @returns {ICashFlowSchemaSection}
|
* @returns {ICashFlowSchemaSection}
|
||||||
*/
|
*/
|
||||||
private schemaSectionTotalParser = (
|
private schemaSectionTotalParser = (
|
||||||
@@ -532,13 +532,13 @@ export default class CashFlowStatement extends compose(
|
|||||||
key: number,
|
key: number,
|
||||||
parentValue: ICashFlowSchemaSection[],
|
parentValue: ICashFlowSchemaSection[],
|
||||||
context,
|
context,
|
||||||
accumlatedSections: (ICashFlowSchemaSection | ICashFlowStatementSection)[]
|
accumulatedSections: (ICashFlowSchemaSection | ICashFlowStatementSection)[]
|
||||||
): ICashFlowSchemaSection | ICashFlowStatementSection => {
|
): ICashFlowSchemaSection | ICashFlowStatementSection => {
|
||||||
return R.compose(
|
return R.compose(
|
||||||
// Total equation section.
|
// Total equation section.
|
||||||
R.when(
|
R.when(
|
||||||
this.isSchemaSectionType(ICashFlowStatementSectionType.TOTAL),
|
this.isSchemaSectionType(ICashFlowStatementSectionType.TOTAL),
|
||||||
R.curry(this.totalEquationSectionParser)(accumlatedSections)
|
R.curry(this.totalEquationSectionParser)(accumulatedSections)
|
||||||
)
|
)
|
||||||
)(section);
|
)(section);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ export const CashFlowStatementDatePeriods = (Base) =>
|
|||||||
// Cash at beginning ----------------------
|
// Cash at beginning ----------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the date preioods of the given node and accumlated function.
|
* Retrieve the date preioods of the given node and accumulated function.
|
||||||
* @param {} node
|
* @param {} node
|
||||||
* @param {}
|
* @param {}
|
||||||
* @return {}
|
* @return {}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export const FinancialDatePeriods = (Base) =>
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the date preioods of the given node and accumlated function.
|
* Retrieve the date preioods of the given node and accumulated function.
|
||||||
* @param {IBalanceSheetAccountNode} node
|
* @param {IBalanceSheetAccountNode} node
|
||||||
* @param {(fromDate: Date, toDate: Date, index: number) => any}
|
* @param {(fromDate: Date, toDate: Date, index: number) => any}
|
||||||
* @return {}
|
* @return {}
|
||||||
|
|||||||
Reference in New Issue
Block a user