mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat: Invoice number in downloaded pdf document
This commit is contained in:
@@ -11,7 +11,7 @@ import { compose } from '@/utils';
|
||||
function PaymentReceivePdfPreviewDialogContent({
|
||||
subscriptionForm: { paymentReceiveId },
|
||||
}) {
|
||||
const { isLoading, pdfUrl } = usePdfPaymentReceive(paymentReceiveId);
|
||||
const { isLoading, pdfUrl, filename } = usePdfPaymentReceive(paymentReceiveId);
|
||||
|
||||
return (
|
||||
<DialogContent>
|
||||
@@ -27,7 +27,7 @@ function PaymentReceivePdfPreviewDialogContent({
|
||||
|
||||
<AnchorButton
|
||||
href={pdfUrl}
|
||||
download={'payment.pdf'}
|
||||
download={filename}
|
||||
minimal={true}
|
||||
outlined={true}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user