feat: resource tables printing

This commit is contained in:
Ahmed Bouhuolia
2024-06-02 13:15:56 +02:00
parent 79be4266bb
commit f15fecde54
11 changed files with 52 additions and 43 deletions

View File

@@ -92,7 +92,7 @@ function PaymentMadeActionsBar({
};
// Handle the print button click.
const handlePrintBtnClick = () => {
downloadExportPdf({ resource: 'PaymentMade' });
downloadExportPdf({ resource: 'BillPayment' });
};
return (

View File

@@ -134,7 +134,6 @@ const invalidateResourcesOnImport = (
queryClient: QueryClient,
resource: string,
) => {
debugger;
switch (resource) {
case 'Item':
queryClient.invalidateQueries(T.ITEMS);