mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 07:40:32 +00:00
feat: add project invoicing cell.
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
PercentFieldCell,
|
||||
NumericInputCell,
|
||||
CheckBoxFieldCell,
|
||||
ProjectInvoicingCell,
|
||||
} from '@/components/DataTableCells';
|
||||
|
||||
/**
|
||||
@@ -152,6 +153,15 @@ export function useEditableItemsEntriesColumns({ landedCost }) {
|
||||
},
|
||||
]
|
||||
: []),
|
||||
{
|
||||
Header: '',
|
||||
accessor: 'invoicing',
|
||||
Cell: ProjectInvoicingCell,
|
||||
disableSortBy: true,
|
||||
disableResizing: true,
|
||||
width: 45,
|
||||
align: Align.Center,
|
||||
},
|
||||
{
|
||||
Header: '',
|
||||
accessor: 'action',
|
||||
|
||||
@@ -40,6 +40,9 @@ function ProjectDetailActionsBar({
|
||||
// Handle new transaction button click.
|
||||
const handleNewTransactionBtnClick = ({ path }) => {
|
||||
switch (path) {
|
||||
case 'invoincing':
|
||||
openDialog('project-invoicing-form');
|
||||
break;
|
||||
case 'expense':
|
||||
openDialog('project-expense-form', { projectId });
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user