feat: rewrite repositories with base entity repository class.

feat: sales and purchases status.
feat: sales and purchases auto-increment number.
fix: settings find query with extra columns.
This commit is contained in:
Ahmed Bouhuolia
2020-12-13 19:50:59 +02:00
parent e9e4ddaee0
commit 188e411f02
78 changed files with 1634 additions and 869 deletions

View File

@@ -11,6 +11,7 @@ export interface IBillDTO {
note: string,
amount: number,
paymentAmount: number,
open: boolean,
entries: IItemEntryDTO[],
};
@@ -24,6 +25,7 @@ export interface IBillEditDTO {
note: string,
amount: number,
paymentAmount: number,
open: boolean,
entries: IItemEntryDTO[],
};
@@ -41,6 +43,7 @@ export interface IBill {
paymentAmount: number,
invLotNumber: string,
openedAt: Date | string,
entries: IItemEntry[],
};

View File

@@ -13,6 +13,7 @@ export interface ISaleEstimate {
entries: IItemEntry[],
sendToEmail: string,
createdAt?: Date,
deliveredAt: string|Date,
};
export interface ISaleEstimateDTO {
customerId: number,
@@ -23,6 +24,7 @@ export interface ISaleEstimateDTO {
note: string,
termsConditions: string,
sendToEmail: string,
delivered: boolean,
};
export interface ISalesEstimatesFilter extends IDynamicListFilterDTO {

View File

@@ -7,7 +7,9 @@ export interface ISaleInvoice {
invoiceDate: Date,
dueDate: Date,
dueAmount: number,
customerId: number,
entries: IItemEntry[],
deliveredAt: string|Date,
}
export interface ISaleInvoiceOTD {
@@ -19,8 +21,17 @@ export interface ISaleInvoiceOTD {
invoiceMessage: string,
termsConditions: string,
entries: IItemEntryDTO[],
delivered: boolean,
}
export interface ISaleInvoiceCreateDTO extends ISaleInvoiceOTD {
fromEstiamteId: number,
};
export interface ISaleInvoiceEditDTO extends ISaleInvoiceOTD {
};
export interface ISalesInvoicesFilter{
page: number,
pageSize: number,