fix: financial reports.

This commit is contained in:
a.bouhuolia
2022-02-13 13:21:59 +02:00
parent b1f07d281f
commit 2986b537d0
13 changed files with 90 additions and 48 deletions

View File

@@ -2,15 +2,17 @@ import React from 'react';
import intl from 'react-intl-universal';
import moment from 'moment';
import { Button } from '@blueprintjs/core';
import { Icon, If, FormattedMessage as T } from 'components';
import { useJournalSheetContext } from './JournalProvider';
import FinancialLoadingBar from '../FinancialLoadingBar';
import { Align } from 'common';
/**
* Retrieve the journal table columns.
*/
export const useJournalTableColumns = () => {
return React.useMemo(
() => [
{
@@ -57,12 +59,12 @@ export const useJournalTableColumns = () => {
{
Header: intl.get('credit'),
accessor: 'formatted_credit',
className: 'credit',
align: Align.Right,
},
{
Header: intl.get('debit'),
accessor: 'formatted_debit',
className: 'debit',
align: Align.Right,
},
],
[],