feat: AR/AP aging summary report.

This commit is contained in:
a.bouhuolia
2021-01-09 13:37:53 +02:00
parent 09b2aa57a0
commit 40afb108e3
18 changed files with 283 additions and 100 deletions

View File

@@ -8,8 +8,8 @@ export interface IARAgingSummaryQuery {
agingDaysBefore: number;
agingPeriods: number;
numberFormat: {
noCents: number;
divideOn1000: number;
noCents: boolean;
divideOn1000: boolean;
};
customersIds: number[];
noneZero: boolean;
@@ -17,13 +17,18 @@ export interface IARAgingSummaryQuery {
export interface IARAgingSummaryCustomer {
customerName: string;
current: IAgingPeriodTotal,
aging: (IAgingPeriodTotal & IAgingPeriod)[];
total: IAgingPeriodTotal;
}
export interface IARAgingSummaryTotal {
current: IAgingPeriodTotal,
aging: (IAgingPeriodTotal & IAgingPeriod)[],
};
export interface IARAgingSummaryData {
customers: IARAgingSummaryCustomer[],
total: (IAgingPeriodTotal & IAgingPeriod)[]
total: IARAgingSummaryTotal,
}
export type IARAgingSummaryColumns = IAgingPeriod[];