mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
refactor(nestjs): wip
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
CreatePaymentReceivedDto,
|
||||
EditPaymentReceivedDto,
|
||||
} from './dtos/PaymentReceived.dto';
|
||||
import { PaymentsReceivedPagesService } from './queries/PaymentsReceivedPages.service';
|
||||
|
||||
@Injectable()
|
||||
export class PaymentReceivesApplication {
|
||||
@@ -31,6 +32,7 @@ export class PaymentReceivesApplication {
|
||||
private sendPaymentReceiveMailNotification: SendPaymentReceiveMailNotification,
|
||||
private getPaymentReceivePdfService: GetPaymentReceivedPdfService,
|
||||
private getPaymentReceivedStateService: GetPaymentReceivedStateService,
|
||||
private paymentsReceivedPagesService: PaymentsReceivedPagesService,
|
||||
) {}
|
||||
|
||||
/**
|
||||
@@ -147,4 +149,14 @@ export class PaymentReceivesApplication {
|
||||
public getPaymentReceivedState() {
|
||||
return this.getPaymentReceivedStateService.getPaymentReceivedState();
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the payment received edit page.
|
||||
* @param {number} paymentReceiveId - Payment receive id.
|
||||
*/
|
||||
public getPaymentReceivedEditPage(paymentReceiveId: number) {
|
||||
return this.paymentsReceivedPagesService.getPaymentReceiveEditPage(
|
||||
paymentReceiveId,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user