mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-26 17:49:48 +00:00
fix: use organization date format in banking transactions and reports
- Add OrganizationSettingsModule to BankingTransactionsModule - Update GetBankAccountTransactions to pass dateFormat from settings - Add meta support to FinancialSheet base class - Refactor TransactionsByReference to use IFinancialReportMeta - Update frontend to use server-provided formatted_date
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import React from 'react';
|
||||
import intl from 'react-intl-universal';
|
||||
import { Intent, Menu, MenuItem, Tag } from '@blueprintjs/core';
|
||||
import { FormatDateCell, Icon } from '@/components';
|
||||
import { Icon } from '@/components';
|
||||
import { safeCallback } from '@/utils';
|
||||
import { useAccountTransactionsContext } from './AccountTransactionsProvider';
|
||||
import FinancialLoadingBar from '@/containers/FinancialStatements/FinancialLoadingBar';
|
||||
@@ -75,8 +75,7 @@ export function useAccountTransactionsColumns() {
|
||||
{
|
||||
id: 'date',
|
||||
Header: intl.get('date'),
|
||||
accessor: 'date',
|
||||
Cell: FormatDateCell,
|
||||
accessor: 'formatted_date',
|
||||
width: 110,
|
||||
className: 'date',
|
||||
clickable: true,
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import intl from 'react-intl-universal';
|
||||
import React from 'react';
|
||||
|
||||
import { FormatDateCell } from '@/components';
|
||||
import { useAccountDrawerTableOptionsContext } from './AccountDrawerTableOptionsProvider';
|
||||
|
||||
/**
|
||||
@@ -15,8 +14,7 @@ export const useAccountReadEntriesColumns = () => {
|
||||
() => [
|
||||
{
|
||||
Header: intl.get('transaction_date'),
|
||||
accessor: 'date',
|
||||
Cell: FormatDateCell,
|
||||
accessor: 'formatted_date',
|
||||
width: 110,
|
||||
textOverview: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user