feat: categorize cashflow transaction drawer

This commit is contained in:
Ahmed Bouhuolia
2024-03-05 22:27:42 +02:00
parent db839137d0
commit a17b4f6a8a
16 changed files with 402 additions and 2 deletions

View File

@@ -211,3 +211,23 @@ export function useRefreshCashflowTransactions() {
},
};
}
/**
*
*/
export function useUncategorizedTransaction(
uncategorizedTranasctionId: nunber,
props,
) {
return useRequestQuery(
[t.CASHFLOW_UNCAATEGORIZED_TRANSACTION, uncategorizedTranasctionId],
{
method: 'get',
url: `cashflow/transactions/uncategorized/${uncategorizedTranasctionId}`,
},
{
select: (res) => res.data?.data,
...props,
},
);
}

View File

@@ -202,6 +202,8 @@ const CASH_FLOW_ACCOUNTS = {
'CASHFLOW_ACCOUNT_TRANSACTIONS_INFINITY',
CASHFLOW_ACCOUNT_UNCATEGORIZED_TRANSACTIONS_INFINITY:
'CASHFLOW_ACCOUNT_UNCATEGORIZED_TRANSACTIONS_INFINITY',
CASHFLOW_UNCAATEGORIZED_TRANSACTION: 'CASHFLOW_UNCAATEGORIZED_TRANSACTION',
};
const TARNSACTIONS_LOCKING = {