mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
feat: remove more actions button in datatables.
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
|||||||
StatusAccessor,
|
StatusAccessor,
|
||||||
DateAccessor,
|
DateAccessor,
|
||||||
AmountAccessor,
|
AmountAccessor,
|
||||||
ActionsCell,
|
|
||||||
} from './components';
|
} from './components';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,14 +64,6 @@ export const useManualJournalsColumns = () => {
|
|||||||
width: 125,
|
width: 125,
|
||||||
className: 'created_at',
|
className: 'created_at',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'actions',
|
|
||||||
Header: '',
|
|
||||||
Cell: ActionsCell,
|
|
||||||
className: 'actions',
|
|
||||||
width: 50,
|
|
||||||
disableResizing: true,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -125,19 +125,20 @@ export const transformErrors = (resErrors, { setErrors, errors }) => {
|
|||||||
setEntriesErrors(error.indexes, 'contact_id', 'error');
|
setEntriesErrors(error.indexes, 'contact_id', 'error');
|
||||||
}
|
}
|
||||||
if ((error = getError(ERROR.ENTRIES_SHOULD_ASSIGN_WITH_CONTACT))) {
|
if ((error = getError(ERROR.ENTRIES_SHOULD_ASSIGN_WITH_CONTACT))) {
|
||||||
if (error.meta.contact_type === 'customer') {
|
if (error.meta.find(meta => meta.contact_type === 'customer')) {
|
||||||
toastMessages.push(
|
toastMessages.push(
|
||||||
formatMessage({
|
formatMessage({
|
||||||
id: 'receivable_accounts_should_assign_with_customers',
|
id: 'receivable_accounts_should_assign_with_customers',
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (error.meta.contact_type === 'vendor') {
|
if (error.meta.find(meta => meta.contact_type === 'vendor')) {
|
||||||
toastMessages.push(
|
toastMessages.push(
|
||||||
formatMessage({ id: 'payable_accounts_should_assign_with_vendors' }),
|
formatMessage({ id: 'payable_accounts_should_assign_with_vendors' }),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
setEntriesErrors(error.meta.indexes, 'contact_id', 'error');
|
const indexes = error.meta.map((meta => meta.indexes)).flat();
|
||||||
|
setEntriesErrors(indexes, 'contact_id', 'error');
|
||||||
}
|
}
|
||||||
if ((error = getError(ERROR.JOURNAL_NUMBER_ALREADY_EXISTS))) {
|
if ((error = getError(ERROR.JOURNAL_NUMBER_ALREADY_EXISTS))) {
|
||||||
newErrors = setWith(
|
newErrors = setWith(
|
||||||
@@ -153,7 +154,7 @@ export const transformErrors = (resErrors, { setErrors, errors }) => {
|
|||||||
if (toastMessages.length > 0) {
|
if (toastMessages.length > 0) {
|
||||||
AppToaster.show({
|
AppToaster.show({
|
||||||
message: toastMessages.map((message) => {
|
message: toastMessages.map((message) => {
|
||||||
return <div>- {message}</div>;
|
return <div>{message}</div>;
|
||||||
}),
|
}),
|
||||||
intent: Intent.DANGER,
|
intent: Intent.DANGER,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -201,14 +201,6 @@ export function useBillsTableColumns() {
|
|||||||
width: 90,
|
width: 90,
|
||||||
className: 'reference_no',
|
className: 'reference_no',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'actions',
|
|
||||||
Header: '',
|
|
||||||
Cell: ActionsCell,
|
|
||||||
className: 'actions',
|
|
||||||
width: 50,
|
|
||||||
disableResizing: true,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
[formatMessage],
|
[formatMessage],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -118,15 +118,6 @@ export function usePaymentMadesTableColumns() {
|
|||||||
width: 140,
|
width: 140,
|
||||||
className: 'reference',
|
className: 'reference',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
id: 'actions',
|
|
||||||
Header: '',
|
|
||||||
Cell: ActionsCell,
|
|
||||||
className: 'actions',
|
|
||||||
width: 50,
|
|
||||||
disableResizing: true,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
[formatMessage],
|
[formatMessage],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -203,15 +203,7 @@ export function useEstiamtesTableColumns() {
|
|||||||
accessor: 'reference',
|
accessor: 'reference',
|
||||||
width: 90,
|
width: 90,
|
||||||
className: 'reference',
|
className: 'reference',
|
||||||
},
|
}
|
||||||
{
|
|
||||||
id: 'actions',
|
|
||||||
Header: '',
|
|
||||||
Cell: ActionsCell,
|
|
||||||
className: 'actions',
|
|
||||||
width: 50,
|
|
||||||
disableResizing: true,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
[formatMessage],
|
[formatMessage],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -221,14 +221,6 @@ export function useInvoicesTableColumns() {
|
|||||||
width: 90,
|
width: 90,
|
||||||
className: 'reference_no',
|
className: 'reference_no',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'actions',
|
|
||||||
Header: '',
|
|
||||||
Cell: ActionsCell,
|
|
||||||
className: 'actions',
|
|
||||||
width: 50,
|
|
||||||
disableResizing: true,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
[formatMessage],
|
[formatMessage],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -127,15 +127,7 @@ export function usePaymentReceivesColumns() {
|
|||||||
accessor: 'reference_no',
|
accessor: 'reference_no',
|
||||||
width: 140,
|
width: 140,
|
||||||
className: 'reference_no',
|
className: 'reference_no',
|
||||||
},
|
}
|
||||||
{
|
|
||||||
id: 'actions',
|
|
||||||
Header: '',
|
|
||||||
Cell: ActionsCell,
|
|
||||||
className: 'actions',
|
|
||||||
width: 50,
|
|
||||||
disableResizing: true,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
[formatMessage],
|
[formatMessage],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -146,14 +146,6 @@ export function useReceiptsTableColumns() {
|
|||||||
width: 140,
|
width: 140,
|
||||||
className: 'reference_no',
|
className: 'reference_no',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'actions',
|
|
||||||
Header: '',
|
|
||||||
Cell: ActionsCell,
|
|
||||||
className: 'actions',
|
|
||||||
width: 50,
|
|
||||||
disableResizing: true,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
[formatMessage],
|
[formatMessage],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -127,15 +127,7 @@ export function useVendorsTableColumns() {
|
|||||||
accessor: BalanceAccessor,
|
accessor: BalanceAccessor,
|
||||||
className: 'receivable_balance',
|
className: 'receivable_balance',
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
}
|
||||||
{
|
|
||||||
id: 'actions',
|
|
||||||
Cell: ActionsCell,
|
|
||||||
className: 'actions',
|
|
||||||
width: 70,
|
|
||||||
disableResizing: true,
|
|
||||||
disableSortBy: true,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
[formatMessage],
|
[formatMessage],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
padding: 10px 10px;
|
padding: 10px 10px;
|
||||||
background-color: #f0f2f8;
|
background-color: #f0f2f8;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
|
||||||
color: #415060;
|
color: #415060;
|
||||||
border-bottom: 1px solid #d2dce2;
|
border-bottom: 1px solid #d2dce2;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
.dashboard__insider--bills {
|
.dashboard__insider--bills {
|
||||||
.bigcapital-datatable {
|
.bigcapital-datatable {
|
||||||
.tbody {
|
.tbody {
|
||||||
|
.tr {
|
||||||
|
min-height: 50px;
|
||||||
|
}
|
||||||
.td.amount {
|
.td.amount {
|
||||||
.cell-inner {
|
.cell-inner {
|
||||||
> span {
|
> span {
|
||||||
|
|||||||
@@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
.bigcapital-datatable{
|
.bigcapital-datatable{
|
||||||
|
|
||||||
|
.tr .td{
|
||||||
|
padding-top: 0.6rem;
|
||||||
|
padding-bottom: 0.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
.avatar.td{
|
.avatar.td{
|
||||||
|
|
||||||
.avatar{
|
.avatar{
|
||||||
|
|||||||
@@ -5,6 +5,10 @@
|
|||||||
.bigcapital-datatable {
|
.bigcapital-datatable {
|
||||||
.table {
|
.table {
|
||||||
.tbody {
|
.tbody {
|
||||||
|
|
||||||
|
.tr{
|
||||||
|
min-height: 50px;
|
||||||
|
}
|
||||||
.td.amount {
|
.td.amount {
|
||||||
span {
|
span {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
15
client/src/style/pages/InventoryAdjustments/List.scss
Normal file
15
client/src/style/pages/InventoryAdjustments/List.scss
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
// Blueprint framework.
|
||||||
|
// @import '@blueprintjs/core/src/blueprint.scss';
|
||||||
|
|
||||||
|
.dashboard__insider--inventory_adjustments {
|
||||||
|
.bigcapital-datatable {
|
||||||
|
.table {
|
||||||
|
.tbody {
|
||||||
|
.tr{
|
||||||
|
min-height: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,6 +6,9 @@
|
|||||||
.bigcapital-datatable {
|
.bigcapital-datatable {
|
||||||
.table {
|
.table {
|
||||||
.tbody {
|
.tbody {
|
||||||
|
.tr{
|
||||||
|
min-height: 50px;
|
||||||
|
}
|
||||||
.item_type.td {
|
.item_type.td {
|
||||||
.bp3-tag {
|
.bp3-tag {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|||||||
14
client/src/style/pages/ItemsCategories/List.scss
Normal file
14
client/src/style/pages/ItemsCategories/List.scss
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
.dashboard__insider--items-categories-list{
|
||||||
|
|
||||||
|
.bigcapital-datatable {
|
||||||
|
.table {
|
||||||
|
.tbody {
|
||||||
|
.tr{
|
||||||
|
min-height: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -4,6 +4,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tbody {
|
.tbody {
|
||||||
|
.tr .td{
|
||||||
|
padding: 0.8rem 0.5rem;
|
||||||
|
}
|
||||||
.td.amount {
|
.td.amount {
|
||||||
.bp3-popover-target {
|
.bp3-popover-target {
|
||||||
border-bottom: 1px solid #e7e7e7;
|
border-bottom: 1px solid #e7e7e7;
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
.bigcapital-datatable{
|
.bigcapital-datatable{
|
||||||
|
|
||||||
.tbody{
|
.tbody{
|
||||||
|
.tr{
|
||||||
|
min-height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
.td.amount {
|
.td.amount {
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
.bigcapital-datatable{
|
.bigcapital-datatable{
|
||||||
|
|
||||||
.tbody{
|
.tbody{
|
||||||
|
.tr .td{
|
||||||
|
min-height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
.td.amount {
|
.td.amount {
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,11 @@
|
|||||||
|
|
||||||
.tbody{
|
.tbody{
|
||||||
|
|
||||||
|
.tr .td{
|
||||||
|
padding-top: 0.88rem;
|
||||||
|
padding-bottom: 0.88rem;
|
||||||
|
}
|
||||||
|
|
||||||
.td.amount {
|
.td.amount {
|
||||||
|
|
||||||
.cell-inner{
|
.cell-inner{
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
|
|
||||||
.tbody{
|
.tbody{
|
||||||
|
.tr{
|
||||||
|
min-height: 50px;
|
||||||
|
}
|
||||||
.balance.td{
|
.balance.td{
|
||||||
|
|
||||||
.cell-inner{
|
.cell-inner{
|
||||||
|
|||||||
@@ -5,6 +5,10 @@
|
|||||||
|
|
||||||
.tbody{
|
.tbody{
|
||||||
|
|
||||||
|
.tr .td{
|
||||||
|
min-height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
.td.amount {
|
.td.amount {
|
||||||
|
|
||||||
.cell-inner{
|
.cell-inner{
|
||||||
|
|||||||
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
.bigcapital-datatable {
|
.bigcapital-datatable {
|
||||||
|
|
||||||
|
tbody {
|
||||||
|
.tr .td {
|
||||||
|
padding-top: 0.6rem;
|
||||||
|
padding-bottom: 0.6rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.avatar.td {
|
.avatar.td {
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
// Blueprint framework.
|
||||||
|
// @import '@blueprintjs/core/src/blueprint.scss';
|
||||||
|
|
||||||
|
.dashboard__insider--inventory-adjustments-list {
|
||||||
|
.bigcapital-datatable {
|
||||||
|
.table {
|
||||||
|
.tbody {
|
||||||
|
.tr .td{
|
||||||
|
padding: 0.88rem 0.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user