mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
feat: add project to journal
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
InputGroupCell,
|
||||
ContactsListFieldCell,
|
||||
BranchesListFieldCell,
|
||||
ProjectsListFieldCell,
|
||||
} from '@/components/DataTableCells';
|
||||
|
||||
import { CellType, Features, Align } from '@/constants';
|
||||
@@ -127,6 +128,21 @@ export const useJournalTableEntriesColumns = () => {
|
||||
disableSortBy: true,
|
||||
width: 120,
|
||||
},
|
||||
|
||||
...(featureCan(Features.Branches)
|
||||
? [
|
||||
{
|
||||
Header: intl.get('project'),
|
||||
id: 'project_id',
|
||||
accessor: 'project_id',
|
||||
Cell: ProjectsListFieldCell,
|
||||
className: 'project_id',
|
||||
disableSortBy: true,
|
||||
width: 120,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
|
||||
...(featureCan(Features.Branches)
|
||||
? [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user