fix: issue in edit payment receive with invoices payment amount chaning.

This commit is contained in:
a.bouhuolia
2020-12-19 17:04:11 +02:00
parent 1a0aad7dc4
commit fb135913bb
8 changed files with 103 additions and 108 deletions

View File

@@ -13,7 +13,7 @@ export interface IPaymentReceive {
entries: IPaymentReceiveEntry[],
userId: number,
};
export interface IPaymentReceiveDTO {
export interface IPaymentReceiveCreateDTO {
customerId: number,
paymentDate: Date,
amount: number,
@@ -24,6 +24,16 @@ export interface IPaymentReceiveDTO {
entries: IPaymentReceiveEntryDTO[],
};
export interface IPaymentReceiveEditDTO {
paymentDate: Date,
amount: number,
referenceNo: string,
depositAccountId: number,
paymentReceiveNo?: string,
description: string,
entries: IPaymentReceiveEntryDTO[],
};
export interface IPaymentReceiveEntry {
id?: number,
paymentReceiveId: number,

View File

@@ -25,7 +25,7 @@ export interface ISaleInvoiceDTO {
}
export interface ISaleInvoiceCreateDTO extends ISaleInvoiceDTO {
fromEstiamteId: number,
fromEstimateId: number,
};
export interface ISaleInvoiceEditDTO extends ISaleInvoiceDTO {