feat: wip send an invoice mail the customer email

This commit is contained in:
Ahmed Bouhuolia
2023-12-14 23:49:23 +02:00
parent e5bcb1c19a
commit cfd4540a65
8 changed files with 221 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ import { ApproveSaleEstimate } from './ApproveSaleEstimate';
import { RejectSaleEstimate } from './RejectSaleEstimate';
import { SaleEstimateNotifyBySms } from './SaleEstimateSmsNotify';
import { SaleEstimatesPdf } from './SaleEstimatesPdf';
import { SendSaleEstimateMail } from './SendSaleEstimateMail';
@Service()
export class SaleEstimatesApplication {
@@ -50,6 +51,9 @@ export class SaleEstimatesApplication {
@Inject()
private saleEstimatesPdfService: SaleEstimatesPdf;
@Inject()
private sendEstimateMailService: SendSaleEstimateMail;
/**
* Create a sale estimate.
* @param {number} tenantId - The tenant id.
@@ -209,4 +213,14 @@ export class SaleEstimatesApplication {
saleEstimate
);
}
/**
*
* @param {number} tenantId
* @param {number} saleEstimateId
* @returns
*/
public sendSaleEstimateMail(tenantId: number, saleEstimateId: number) {
return this.sendEstimateMailService.sendMail(tenantId, saleEstimateId);
}
}

View File

@@ -0,0 +1,6 @@
import { Service } from "typedi";
@Service()
export class SendSaleEstimateMail {
sendMail(tenantId: number, saleEstimateId: number) {}
}