mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-29 20:30:39 +00:00
Better quantity rendering (#10680)
This commit is contained in:
@@ -8,7 +8,7 @@ import { ModelType } from '@lib/enums/ModelType';
|
|||||||
import { apiUrl } from '@lib/functions/Api';
|
import { apiUrl } from '@lib/functions/Api';
|
||||||
import type { TableFilter } from '@lib/types/Filters';
|
import type { TableFilter } from '@lib/types/Filters';
|
||||||
import type { TableColumn } from '@lib/types/Tables';
|
import type { TableColumn } from '@lib/types/Tables';
|
||||||
import { formatCurrency } from '../../defaults/formatters';
|
import { formatCurrency, formatDecimal } from '../../defaults/formatters';
|
||||||
import { useTable } from '../../hooks/UseTable';
|
import { useTable } from '../../hooks/UseTable';
|
||||||
import { DateColumn, ReferenceColumn, StatusColumn } from '../ColumnRenderers';
|
import { DateColumn, ReferenceColumn, StatusColumn } from '../ColumnRenderers';
|
||||||
import { IncludeVariantsFilter, StatusFilterOptions } from '../Filter';
|
import { IncludeVariantsFilter, StatusFilterOptions } from '../Filter';
|
||||||
@@ -76,7 +76,7 @@ export default function PartPurchaseOrdersTable({
|
|||||||
|
|
||||||
extra.push(
|
extra.push(
|
||||||
<Text key='total-quantity'>
|
<Text key='total-quantity'>
|
||||||
{t`Total Quantity`}: {total} {part?.units}
|
{t`Total Quantity`}: {formatDecimal(total)} {part?.units}
|
||||||
</Text>
|
</Text>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ export function PurchaseOrderLineItemTable({
|
|||||||
|
|
||||||
extra.push(
|
extra.push(
|
||||||
<Text key='total-quantity'>
|
<Text key='total-quantity'>
|
||||||
{t`Total Quantity`}: {total} {part?.units}
|
{t`Total Quantity`}: {formatDecimal(total)} {part?.units}
|
||||||
</Text>
|
</Text>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user