mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
feat: reconcile matching transactions
This commit is contained in:
@@ -2,6 +2,8 @@ import { connect } from 'react-redux';
|
||||
import {
|
||||
closeMatchingTransactionAside,
|
||||
setUncategorizedTransactionIdForMatching,
|
||||
openReconcileMatchingTransaction,
|
||||
closeReconcileMatchingTransaction,
|
||||
} from '@/store/banking/banking.reducer';
|
||||
|
||||
export interface WithBankingActionsProps {
|
||||
@@ -9,6 +11,8 @@ export interface WithBankingActionsProps {
|
||||
setUncategorizedTransactionIdForMatching: (
|
||||
uncategorizedTransactionId: number,
|
||||
) => void;
|
||||
openReconcileMatchingTransaction: () => void;
|
||||
closeReconcileMatchingTransaction: () => void;
|
||||
}
|
||||
|
||||
const mapDipatchToProps = (dispatch: any): WithBankingActionsProps => ({
|
||||
@@ -20,6 +24,10 @@ const mapDipatchToProps = (dispatch: any): WithBankingActionsProps => ({
|
||||
dispatch(
|
||||
setUncategorizedTransactionIdForMatching(uncategorizedTransactionId),
|
||||
),
|
||||
openReconcileMatchingTransaction: () =>
|
||||
dispatch(openReconcileMatchingTransaction()),
|
||||
closeReconcileMatchingTransaction: () =>
|
||||
dispatch(closeReconcileMatchingTransaction()),
|
||||
});
|
||||
|
||||
export const withBankingActions = connect<
|
||||
|
||||
Reference in New Issue
Block a user