mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat(expenses): filter expenses accounts.
This commit is contained in:
@@ -32,7 +32,9 @@ export default function ExpenseFormEntriesTable({
|
||||
const handleUpdateData = useCallback(
|
||||
(rowIndex, columnId, value) => {
|
||||
const newRows = compose(
|
||||
// Update auto-adding new line.
|
||||
updateAutoAddNewLine(defaultEntry, ['expense_account_id']),
|
||||
// Update the row value of the given row index and column id.
|
||||
updateTableRow(rowIndex, columnId, value),
|
||||
)(entries);
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ export function useExpenseFormTableColumns() {
|
||||
className: 'expense_account_id',
|
||||
disableSortBy: true,
|
||||
width: 40,
|
||||
filterAccountsByRootType: ['expense'],
|
||||
filterAccountsByRootTypes: ['expense'],
|
||||
},
|
||||
{
|
||||
Header: formatMessage({ id: 'amount_currency' }, { currency: 'USD' }),
|
||||
|
||||
Reference in New Issue
Block a user