Skip to content

Commit

Permalink
chore: doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abouolia committed Nov 26, 2024
1 parent 4f57782 commit 1fe7d58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/server/src/api/controllers/Sales/PaymentReceives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ export default class PaymentReceivesController extends BaseController {
ACCEPT_TYPE.APPLICATION_PDF,
ACCEPT_TYPE.APPLICATION_TEXT_HTML,
]);
// Responses pdf format.
// Responds pdf format.
if (ACCEPT_TYPE.APPLICATION_PDF === acceptType) {
const [pdfContent, filename] =
await this.paymentReceiveApplication.getPaymentReceivePdf(
Expand All @@ -494,15 +494,15 @@ export default class PaymentReceivesController extends BaseController {
'Content-Disposition': `attachment; filename="${filename}"`,
});
res.send(pdfContent);
// Responses html format.
// Responds html format.
} else if (ACCEPT_TYPE.APPLICATION_TEXT_HTML === acceptType) {
const htmlContent =
await this.paymentReceiveApplication.getPaymentReceivedHtml(
tenantId,
paymentReceiveId
);
return res.status(200).send({ htmlContent });
// Responses json format.
// Responds json format.
} else {
const paymentReceive =
await this.paymentReceiveApplication.getPaymentReceive(
Expand Down

0 comments on commit 1fe7d58

Please sign in to comment.