mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 07:40:32 +00:00
fix: broken transactions by vendor report
This commit is contained in:
@@ -25,7 +25,7 @@ import {
|
||||
*/
|
||||
export const useVendorsTransactionsColumns = () => {
|
||||
const {
|
||||
vendorsTransactions: { tableRows },
|
||||
vendorsTransactions: { table },
|
||||
} = useVendorsTransactionsContext();
|
||||
|
||||
return React.useMemo(
|
||||
@@ -59,7 +59,7 @@ export const useVendorsTransactionsColumns = () => {
|
||||
accessor: 'cells[4].value',
|
||||
className: 'credit',
|
||||
textOverview: true,
|
||||
width: getColumnWidth(tableRows, 'cells[5].value', {
|
||||
width: getColumnWidth(table.rows, 'cells[5].value', {
|
||||
minWidth: 100,
|
||||
magicSpacing: 10,
|
||||
}),
|
||||
@@ -69,7 +69,7 @@ export const useVendorsTransactionsColumns = () => {
|
||||
accessor: 'cells[5].value',
|
||||
className: 'debit',
|
||||
textOverview: true,
|
||||
width: getColumnWidth(tableRows, 'cells[6].value', {
|
||||
width: getColumnWidth(table.rows, 'cells[6].value', {
|
||||
minWidth: 100,
|
||||
magicSpacing: 10,
|
||||
}),
|
||||
@@ -79,13 +79,13 @@ export const useVendorsTransactionsColumns = () => {
|
||||
accessor: 'cells[6].value',
|
||||
className: 'running_balance',
|
||||
textOverview: true,
|
||||
width: getColumnWidth(tableRows, 'cells[7].value', {
|
||||
width: getColumnWidth(table.rows, 'cells[7].value', {
|
||||
minWidth: 120,
|
||||
magicSpacing: 10,
|
||||
}),
|
||||
},
|
||||
],
|
||||
[tableRows],
|
||||
[table],
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user