mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
fix(sever): tax rates cell.
This commit is contained in:
@@ -27,7 +27,7 @@ export function TaxRatesSuggestInputCell({
|
|||||||
items={taxRates}
|
items={taxRates}
|
||||||
valueAccessor={'id'}
|
valueAccessor={'id'}
|
||||||
labelAccessor={'code'}
|
labelAccessor={'code'}
|
||||||
textAccessor={'name'}
|
textAccessor={'name_formatted'}
|
||||||
popoverProps={{ minimal: true, boundary: 'window' }}
|
popoverProps={{ minimal: true, boundary: 'window' }}
|
||||||
inputProps={{ placeholder: '' }}
|
inputProps={{ placeholder: '' }}
|
||||||
fill={true}
|
fill={true}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export function InvoiceDetailTableFooter() {
|
|||||||
{invoice.taxes.map((taxRate) => (
|
{invoice.taxes.map((taxRate) => (
|
||||||
<TotalLine
|
<TotalLine
|
||||||
key={taxRate.id}
|
key={taxRate.id}
|
||||||
title={`${taxRate.name} (${taxRate.tax_rate}%)`}
|
title={`${taxRate.name} [${taxRate.tax_rate}%]`}
|
||||||
value={taxRate.tax_rate_amount_formatted}
|
value={taxRate.tax_rate_amount_formatted}
|
||||||
textStyle={TotalLineTextStyle.Regular}
|
textStyle={TotalLineTextStyle.Regular}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ const ARAgingSummaryHeaderDimensonsContext = React.createContext();
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* ARAging summary header dismensions provider.
|
* ARAging summary header dismensions provider.
|
||||||
* @returns
|
* @returns {JSX.Element}
|
||||||
*/
|
*/
|
||||||
function ARAgingSummaryHeaderDimensionsProvider({ query, ...props }) {
|
function ARAgingSummaryHeaderDimensionsProvider({ query, ...props }) {
|
||||||
// Features guard.
|
// Features guard.
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ const taxNameAccessor = R.curry((data, column) => ({
|
|||||||
sticky: 'left',
|
sticky: 'left',
|
||||||
width: 300,
|
width: 300,
|
||||||
textOverview: true,
|
textOverview: true,
|
||||||
|
disableSortBy: true,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const taxableAmountAccessor = R.curry((data, column) => {
|
const taxableAmountAccessor = R.curry((data, column) => {
|
||||||
@@ -25,6 +26,7 @@ const taxableAmountAccessor = R.curry((data, column) => {
|
|||||||
className: column.key,
|
className: column.key,
|
||||||
width: getColumnWidth(data, accessor, { minWidth: 120 }),
|
width: getColumnWidth(data, accessor, { minWidth: 120 }),
|
||||||
align: Align.Right,
|
align: Align.Right,
|
||||||
|
disableSortBy: true,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export function TaxRatesTableActionsMenu({
|
|||||||
onClick={safeCallback(onActivate, original)}
|
onClick={safeCallback(onActivate, original)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{original.active && (
|
{!!original.active && (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
icon={<Icon icon="pause-16" iconSize={16} />}
|
icon={<Icon icon="pause-16" iconSize={16} />}
|
||||||
text={'Inactivate Tax Rate'}
|
text={'Inactivate Tax Rate'}
|
||||||
|
|||||||
Reference in New Issue
Block a user