feat: AR aging summary sheet frontend.

This commit is contained in:
a.bouhuolia
2021-01-13 20:58:58 +02:00
parent 7680150a31
commit 343185b8bd
27 changed files with 670 additions and 594 deletions

View File

@@ -79,7 +79,6 @@ export default abstract class AgingSummaryReport extends AgingReport {
return {
...agingPeriod,
total,
formattedAmount: this.formatAmount(total),
};
});
return newAgingPeriods;
@@ -198,4 +197,11 @@ export default abstract class AgingSummaryReport extends AgingReport {
protected getAgingPeriodsTotal(agingPeriods: IAgingPeriodTotal[]): number {
return sumBy(agingPeriods, 'total');
}
protected getTotalContactsTotals(
customersSummary: IARAgingSummaryCustomer[]
): number {
return sumBy(customersSummary, (summary) => summary.total.total);
}
}