mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
fix financial statements.
This commit is contained in:
@@ -16,7 +16,6 @@ import withDashboard from 'containers/Dashboard/withDashboard';
|
||||
import withJournalActions from './withJournalActions';
|
||||
|
||||
|
||||
|
||||
function Journal({
|
||||
// #withJournalActions
|
||||
requestFetchJournalSheet,
|
||||
@@ -40,7 +39,7 @@ function Journal({
|
||||
}, []);
|
||||
|
||||
const fetchHook = useQuery(['journal', filter],
|
||||
(key, query) => { requestFetchJournalSheet(query); },
|
||||
(key, query) => requestFetchJournalSheet(query),
|
||||
{ manual: true });
|
||||
|
||||
// Handle financial statement filter change.
|
||||
|
||||
@@ -25,6 +25,8 @@ function JournalSheetTable({
|
||||
onFetchData,
|
||||
companyName,
|
||||
}) {
|
||||
const { formatMessage } = useIntl();
|
||||
|
||||
const rowTypeFilter = (rowType, value, types) => {
|
||||
return (types.indexOf(rowType) === -1) ? '' : value;
|
||||
};
|
||||
@@ -32,7 +34,6 @@ function JournalSheetTable({
|
||||
const exceptRowTypes = (rowType, value, types) => {
|
||||
return (types.indexOf(rowType) !== -1) ? '' : value;
|
||||
};
|
||||
const {formatMessage} =useIntl();
|
||||
|
||||
const columns = useMemo(() => [
|
||||
{
|
||||
@@ -100,9 +101,8 @@ const {formatMessage} =useIntl();
|
||||
columns={columns}
|
||||
data={journalSheetTableRows}
|
||||
onFetchData={handleFetchData}
|
||||
noResults={"This report does not contain any data."}
|
||||
expanded={expandedRows}
|
||||
noInitialFetch={true} />
|
||||
noResults={"This report does not contain any data between date period."}
|
||||
expanded={expandedRows} />
|
||||
</FinancialSheet>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user