feat: payment received mail receipt

This commit is contained in:
Ahmed Bouhuolia
2024-11-25 11:51:13 +02:00
parent 459bf4cd55
commit df41de7239
12 changed files with 221 additions and 181 deletions

View File

@@ -3,7 +3,6 @@ import HasTenancyService from '@/services/Tenancy/TenancyService';
import { GetPaymentReceivedMailStateTransformer } from './GetPaymentReceivedMailStateTransformer';
import { TransformerInjectable } from '@/lib/Transformer/TransformerInjectable';
import { Inject, Service } from 'typedi';
import { ContactMailNotification } from '@/services/MailNotification/ContactMailNotification';
import { SendPaymentReceiveMailNotification } from './PaymentReceivedMailNotification';
@Service()

View File

@@ -82,14 +82,6 @@ export class GetPaymentReceivedMailStateTransformer extends PaymentReceiveTransf
return this.formatDate(payment.paymentDate);
};
/**
* Retrieves the formatted payment amount.
* @returns {string}
*/
protected paymentAmountFormatted = (payment) => {
return this.formatMoney(payment.paymentAmount);
};
/**
* Retrieves the payment amount.
* @param payment
@@ -175,7 +167,7 @@ export class GetPaymentReceivedEntryMailState extends PaymentReceivedEntryTransf
};
/**
*
* Retrieves the paid amount.
* @param entry
* @returns {string}
*/
@@ -184,7 +176,7 @@ export class GetPaymentReceivedEntryMailState extends PaymentReceivedEntryTransf
};
/**
*
* Retrieves the invoice number.
* @param entry
* @returns {string}
*/

View File

@@ -8,7 +8,7 @@ export class GetSaleReceiptState {
private tenancy: HasTenancyService;
/**
* Retireves the sale receipt state.
* Retrieves the sale receipt state.
* @param {Number} tenantId -
* @return {Promise<ISaleReceiptState>}
*/