refactoring: payment receive and sale invoice actions.

This commit is contained in:
Ahmed Bouhuolia
2020-10-25 18:30:44 +02:00
parent 39d1875cbb
commit 426f9fcf55
20 changed files with 820 additions and 1069 deletions

View File

@@ -1,4 +1,43 @@
import { IDynamicListFilterDTO } from "./DynamicFilter";
export interface IPaymentReceive { };
export interface IPaymentReceiveOTD { };
export interface IPaymentReceive {
id?: number,
customerId: number,
paymentDate: Date,
amount: number,
referenceNo: string,
depositAccountId: number,
paymentReceiveNo: string,
description: string,
entries: IPaymentReceiveEntry[],
userId: number,
};
export interface IPaymentReceiveDTO {
customerId: number,
paymentDate: Date,
amount: number,
referenceNo: string,
depositAccountId: number,
paymentReceiveNo: string,
description: string,
entries: IPaymentReceiveEntryDTO[],
};
export interface IPaymentReceiveEntry {
id?: number,
paymentReceiveId: number,
invoiceId: number,
paymentAmount: number,
};
export interface IPaymentReceiveEntryDTO {
id?: number,
paymentReceiveId: number,
invoiceId: number,
paymentAmount: number,
};
export interface IPaymentReceivesFilter extends IDynamicListFilterDTO {
stringifiedFilterRoles?: string,
}

View File

@@ -13,6 +13,8 @@ export interface ISaleInvoiceOTD {
invoiceDate: Date,
dueDate: Date,
referenceNo: string,
invoiceNo: string,
customerId: number,
invoiceMessage: string,
termsConditions: string,
entries: IItemEntryDTO[],