2
0
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:
Oliver
2025-10-26 20:11:11 +11:00
committed by GitHub
parent ee79869df3
commit 9f7f963d16
2 changed files with 3 additions and 3 deletions

View File

@@ -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>
); );
} }

View File

@@ -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>
); );
} }