mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix(sever): tax rates cell.
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
@@ -9,7 +9,7 @@ const ARAgingSummaryHeaderDimensonsContext = React.createContext();
|
||||
|
||||
/**
|
||||
* ARAging summary header dismensions provider.
|
||||
* @returns
|
||||
* @returns {JSX.Element}
|
||||
*/
|
||||
function ARAgingSummaryHeaderDimensionsProvider({ query, ...props }) {
|
||||
// Features guard.
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user