mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat : Cash flow transaction type.
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user