From 1906f17d100747f254b977c058fabe9469bf3e4d Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 24 Jun 2026 01:57:54 +0000 Subject: [PATCH] [UI] Tweak "order parts" wizard - Order supplier parts by "primary" value - Attempt to auto-fill primary supplier part --- src/frontend/src/components/wizards/OrderPartsWizard.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/src/components/wizards/OrderPartsWizard.tsx b/src/frontend/src/components/wizards/OrderPartsWizard.tsx index e026cae9fb..9db57a0eb3 100644 --- a/src/frontend/src/components/wizards/OrderPartsWizard.tsx +++ b/src/frontend/src/components/wizards/OrderPartsWizard.tsx @@ -306,12 +306,17 @@ function SelectPartsStep({ placeholder: t`Select supplier part`, required: true, autoFill: true, + autoFillFilters: { + active: true, + primary: true + }, value: record.supplier_part?.pk, onValueChange: (value, instance) => { onSelectSupplierPart(record.part.pk, instance); }, filters: { part: record.part.pk, + ordering: '-primary', active: true, part_detail: true, supplier_detail: true