fix(sever): tax rates cell.

This commit is contained in:
Ahmed Bouhuolia
2023-09-20 00:43:55 +02:00
parent 453df2ac4e
commit d48d864a5f
5 changed files with 6 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ export function InvoiceDetailTableFooter() {
{invoice.taxes.map((taxRate) => (
<TotalLine
key={taxRate.id}
title={`${taxRate.name} (${taxRate.tax_rate}%)`}
title={`${taxRate.name} [${taxRate.tax_rate}%]`}
value={taxRate.tax_rate_amount_formatted}
textStyle={TotalLineTextStyle.Regular}
/>

View File

@@ -9,7 +9,7 @@ const ARAgingSummaryHeaderDimensonsContext = React.createContext();
/**
* ARAging summary header dismensions provider.
* @returns
* @returns {JSX.Element}
*/
function ARAgingSummaryHeaderDimensionsProvider({ query, ...props }) {
// Features guard.

View File

@@ -13,6 +13,7 @@ const taxNameAccessor = R.curry((data, column) => ({
sticky: 'left',
width: 300,
textOverview: true,
disableSortBy: true,
}));
const taxableAmountAccessor = R.curry((data, column) => {
@@ -25,6 +26,7 @@ const taxableAmountAccessor = R.curry((data, column) => {
className: column.key,
width: getColumnWidth(data, accessor, { minWidth: 120 }),
align: Align.Right,
disableSortBy: true,
};
});

View File

@@ -36,7 +36,7 @@ export function TaxRatesTableActionsMenu({
onClick={safeCallback(onActivate, original)}
/>
)}
{original.active && (
{!!original.active && (
<MenuItem
icon={<Icon icon="pause-16" iconSize={16} />}
text={'Inactivate Tax Rate'}