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

@@ -17,13 +17,19 @@ export interface IAPAgingSummaryQuery {
export interface IAPAgingSummaryVendor {
vendorName: string,
current: IAgingPeriodTotal,
aging: (IAgingPeriod & IAgingPeriodTotal)[],
total: IAgingPeriodTotal,
}
};
export interface IAPAgingSummaryTotal {
current: IAgingPeriodTotal,
aging: (IAgingPeriodTotal & IAgingPeriod)[],
};
export interface IAPAgingSummaryData {
vendors: IAPAgingSummaryVendor[],
total: (IAgingPeriod & IAgingPeriodTotal)[],
}
total: IAPAgingSummaryTotal,
};
export type IAPAgingSummaryColumns = IAgingPeriod[];

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[];

View File

@@ -42,6 +42,9 @@ export interface IBill {
amount: number,
paymentAmount: number,
dueAmount: number,
overdueDays: number,
invLotNumber: string,
openedAt: Date | string,

View File

@@ -7,6 +7,7 @@ export interface ISaleInvoice {
invoiceDate: Date,
dueDate: Date,
dueAmount: number,
overdueDays: number,
customerId: number,
entries: IItemEntry[],
deliveredAt: string | Date,

View File

@@ -35,5 +35,7 @@ export * from './TrialBalanceSheet';
export * from './GeneralLedgerSheet'
export * from './ProfitLossSheet';
export * from './JournalReport';
export * from './AgingReport';
export * from './ARAgingSummaryReport';
export * from './APAgingSummaryReport';
export * from './Mailable';