mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
refactor: mail templates
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
IPaymentReceivedCreateDTO,
|
||||
IPaymentReceivedEditDTO,
|
||||
IPaymentsReceivedFilter,
|
||||
PaymentReceiveMailOptsDTO,
|
||||
} from './types/PaymentReceived.types';
|
||||
@@ -79,7 +77,9 @@ export class PaymentReceivesApplication {
|
||||
* @param {IPaymentsReceivedFilter} filterDTO
|
||||
* @returns
|
||||
*/
|
||||
public async getPaymentsReceived(filterDTO: Partial<IPaymentsReceivedFilter>) {
|
||||
public async getPaymentsReceived(
|
||||
filterDTO: Partial<IPaymentsReceivedFilter>,
|
||||
) {
|
||||
return this.getPaymentsReceivedService.getPaymentReceives(filterDTO);
|
||||
}
|
||||
|
||||
@@ -142,6 +142,17 @@ export class PaymentReceivesApplication {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves html content of the given payment receive.
|
||||
* @param {number} paymentReceivedId
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
public getPaymentReceivedHtml(paymentReceivedId: number) {
|
||||
return this.getPaymentReceivePdfService.getPaymentReceivedHtml(
|
||||
paymentReceivedId,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the create/edit initial state of the payment received.
|
||||
* @returns {Promise<IPaymentReceivedState>}
|
||||
|
||||
Reference in New Issue
Block a user