feat : Cash flow transaction type.

This commit is contained in:
elforjani13
2021-10-17 18:00:40 +02:00
parent 2078b6bc99
commit c148e2976a
33 changed files with 1273 additions and 63 deletions

View File

@@ -36,7 +36,7 @@ function AccountTransactionsActionsBar({
const handleMoneyInFormTransaction = (value) => {
openDialog('money-in', {
account_type: value.type,
account_id: accountId.id,
account_id: accountId,
});
};
@@ -44,7 +44,7 @@ function AccountTransactionsActionsBar({
const handlMoneyOutFormTransaction = (value) => {
openDialog('money-out', {
account_type: value.type,
account_id: accountId.id,
account_id: accountId,
});
};
return (

View File

@@ -10,7 +10,8 @@ const AccountTransactionsContext = React.createContext();
* Account transctions provider.
*/
function AccountTransactionsProvider({ query, ...props }) {
const accountId = useParams();
const { id } = useParams();
const accountId = parseInt(id, 10);
// Fetch cashflow account transactions list
const {
@@ -21,7 +22,6 @@ function AccountTransactionsProvider({ query, ...props }) {
enabled: !!accountId,
});
// Provider payload.
const provider = {
accountId,