mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
chore: doc comments
This commit is contained in:
@@ -481,7 +481,7 @@ export default class PaymentReceivesController extends BaseController {
|
|||||||
ACCEPT_TYPE.APPLICATION_PDF,
|
ACCEPT_TYPE.APPLICATION_PDF,
|
||||||
ACCEPT_TYPE.APPLICATION_TEXT_HTML,
|
ACCEPT_TYPE.APPLICATION_TEXT_HTML,
|
||||||
]);
|
]);
|
||||||
// Responses pdf format.
|
// Responds pdf format.
|
||||||
if (ACCEPT_TYPE.APPLICATION_PDF === acceptType) {
|
if (ACCEPT_TYPE.APPLICATION_PDF === acceptType) {
|
||||||
const [pdfContent, filename] =
|
const [pdfContent, filename] =
|
||||||
await this.paymentReceiveApplication.getPaymentReceivePdf(
|
await this.paymentReceiveApplication.getPaymentReceivePdf(
|
||||||
@@ -494,7 +494,7 @@ export default class PaymentReceivesController extends BaseController {
|
|||||||
'Content-Disposition': `attachment; filename="${filename}"`,
|
'Content-Disposition': `attachment; filename="${filename}"`,
|
||||||
});
|
});
|
||||||
res.send(pdfContent);
|
res.send(pdfContent);
|
||||||
// Responses html format.
|
// Responds html format.
|
||||||
} else if (ACCEPT_TYPE.APPLICATION_TEXT_HTML === acceptType) {
|
} else if (ACCEPT_TYPE.APPLICATION_TEXT_HTML === acceptType) {
|
||||||
const htmlContent =
|
const htmlContent =
|
||||||
await this.paymentReceiveApplication.getPaymentReceivedHtml(
|
await this.paymentReceiveApplication.getPaymentReceivedHtml(
|
||||||
@@ -502,7 +502,7 @@ export default class PaymentReceivesController extends BaseController {
|
|||||||
paymentReceiveId
|
paymentReceiveId
|
||||||
);
|
);
|
||||||
return res.status(200).send({ htmlContent });
|
return res.status(200).send({ htmlContent });
|
||||||
// Responses json format.
|
// Responds json format.
|
||||||
} else {
|
} else {
|
||||||
const paymentReceive =
|
const paymentReceive =
|
||||||
await this.paymentReceiveApplication.getPaymentReceive(
|
await this.paymentReceiveApplication.getPaymentReceive(
|
||||||
|
|||||||
Reference in New Issue
Block a user