mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix: import bank transactions
This commit is contained in:
@@ -15,7 +15,7 @@ export const TABLES = {
|
||||
EXPENSES: 'expenses',
|
||||
CASHFLOW_ACCOUNTS: 'cashflow_accounts',
|
||||
CASHFLOW_Transactions: 'cashflow_transactions',
|
||||
UNCATEGORIZED_CASHFLOW_TRANSACTION: 'UNCATEGORIZED_CASHFLOW_TRANSACTION',
|
||||
UNCATEGORIZED_BANK_TRANSACTION: 'UNCATEGORIZED_BANK_TRANSACTION',
|
||||
CREDIT_NOTES: 'credit_notes',
|
||||
VENDOR_CREDITS: 'vendor_credits',
|
||||
WAREHOUSE_TRANSFERS: 'warehouse_transfers',
|
||||
|
||||
@@ -60,7 +60,7 @@ function AccountTransactionsDataTable({
|
||||
|
||||
// Local storage memorizing columns widths.
|
||||
const [initialColumnsWidths, , handleColumnResizing] =
|
||||
useMemorizedColumnsWidths(TABLES.UNCATEGORIZED_CASHFLOW_TRANSACTION);
|
||||
useMemorizedColumnsWidths(TABLES.UNCATEGORIZED_BANK_TRANSACTION);
|
||||
|
||||
// Handle cell click.
|
||||
const handleCellClick = (cell) => {
|
||||
|
||||
@@ -21,7 +21,7 @@ export default function ImportUncategorizedTransactions() {
|
||||
return (
|
||||
<DashboardInsider name={'import-uncategorized-bank-transactions'}>
|
||||
<ImportView
|
||||
resource={'uncategorized_cashflow_transaction'}
|
||||
resource={'uncategorized_bank_transaction'}
|
||||
params={{ accountId: params.id }}
|
||||
onImportSuccess={handleImportSuccess}
|
||||
onCancelClick={handleCnacelBtnClick}
|
||||
|
||||
@@ -208,7 +208,7 @@ const invalidateResourcesOnImport = (
|
||||
queryClient.invalidateQueries(T.MANUAL_JOURNALS);
|
||||
break;
|
||||
|
||||
case 'UncategorizedCashflowTransaction':
|
||||
case 'UncategorizedBankTransaction':
|
||||
queryClient.invalidateQueries(T.CASH_FLOW_TRANSACTIONS);
|
||||
queryClient.invalidateQueries(T.CASH_FLOW_TRANSACTIONS);
|
||||
queryClient.invalidateQueries(T.CASHFLOW_ACCOUNT_TRANSACTIONS_INFINITY);
|
||||
|
||||
Reference in New Issue
Block a user