2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-13 11:26:42 +00:00

Bug fix for pack quantity display (#10810)

This commit is contained in:
Oliver
2025-11-12 00:45:44 +11:00
committed by GitHub
parent e2eeaa991d
commit a1a2a47bba

View File

@@ -13,7 +13,6 @@ import { ApiEndpoints } from '@lib/enums/ApiEndpoints';
import { ModelType } from '@lib/enums/ModelType';
import { UserRoles } from '@lib/enums/Roles';
import { apiUrl } from '@lib/functions/Api';
import { formatDecimal } from '@lib/functions/Formatting';
import type { TableFilter } from '@lib/types/Filters';
import type { TableColumn } from '@lib/types/Tables';
import { IconPackageImport } from '@tabler/icons-react';
@@ -112,7 +111,6 @@ export function SupplierPartTable({
{
accessor: 'pack_quantity',
sortable: true,
render: (record: any) => {
const part = record?.part_detail ?? {};
@@ -120,7 +118,7 @@ export function SupplierPartTable({
if (part.units) {
extra.push(
<Text key='base'>
<Text key='base' size='sm'>
{t`Base units`} : {part.units}
</Text>
);
@@ -128,7 +126,7 @@ export function SupplierPartTable({
return (
<TableHoverCard
value={formatDecimal(record.pack_quantity)}
value={record.pack_quantity}
extra={extra}
title={t`Pack Quantity`}
/>