feat: send mail notifications of sale transactions

This commit is contained in:
Ahmed Bouhuolia
2023-12-24 21:53:37 +02:00
parent 13c6e7a62d
commit 6356cb5e63
9 changed files with 195 additions and 36 deletions

View File

@@ -165,3 +165,7 @@ export type IPaymentReceiveGLCommonEntry = Pick<
| 'createdAt'
| 'branchId'
>;
export interface IPaymentReceiveMailOpts {
}

View File

@@ -124,3 +124,11 @@ export interface ISaleEstimateApprovedEvent {
saleEstimate: ISaleEstimate;
trx: Knex.Transaction;
}
export interface SaleEstimateMailOptions {
to: string;
from: string;
subject: string;
body: string;
attachInvoice?: boolean;
}

View File

@@ -134,3 +134,7 @@ export interface ISaleReceiptDeletingPayload {
oldSaleReceipt: ISaleReceipt;
trx: Knex.Transaction;
}
export interface SaleReceiptMailOpts {
}