mirror of
https://github.com/inventree/InvenTree.git
synced 2026-01-10 05:08:09 +00:00
[ui] tweak inline display of supplier part (#11090)
- Hide pack quantity for single units
This commit is contained in:
@@ -82,7 +82,8 @@ export function RenderSupplierPart(
|
|||||||
const secondary: string = instance.SKU;
|
const secondary: string = instance.SKU;
|
||||||
let suffix: string = part?.full_name ?? '';
|
let suffix: string = part?.full_name ?? '';
|
||||||
|
|
||||||
if (instance.pack_quantity) {
|
// Display non-unitary pack quantities
|
||||||
|
if (instance.pack_quantity && instance.pack_quantity_native != 1) {
|
||||||
suffix += ` (${instance.pack_quantity})`;
|
suffix += ` (${instance.pack_quantity})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user