mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: code review notes
This commit is contained in:
@@ -162,9 +162,12 @@ export function useReceipt(id, props) {
|
||||
|
||||
/**
|
||||
* Retrieve the receipt pdf document data.
|
||||
* @param {number} receiptId -
|
||||
*/
|
||||
export function usePdfReceipt(ReceiptId) {
|
||||
return useRequestPdf(`sales/receipts/${ReceiptId}`);
|
||||
export function usePdfReceipt(receiptId: number) {
|
||||
return useRequestPdf({
|
||||
url: `sales/receipts/${receiptId}`,
|
||||
});
|
||||
}
|
||||
|
||||
export function useRefreshReceipts() {
|
||||
|
||||
Reference in New Issue
Block a user