mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
fix: Trial balance sheet adjusted balance (#273)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import { useTrialBalanceSheetContext } from './TrialBalanceProvider';
|
||||
import { trialBalancesheetDynamicColumns } from './dynamicColumns';
|
||||
|
||||
/**
|
||||
* Retrieves the trial balance sheet columns.
|
||||
*/
|
||||
export const useTrialBalanceSheetTableColumns = () => {
|
||||
const {
|
||||
trialBalanceSheet: { table },
|
||||
} = useTrialBalanceSheetContext();
|
||||
|
||||
return React.useMemo(
|
||||
() => trialBalancesheetDynamicColumns(table.columns, table.rows),
|
||||
[table],
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user