From 75b27bd10a17b2fc92573cb1ef79fd315ab637bd Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 24 Jun 2026 12:49:30 +1000 Subject: [PATCH] [UI] Tweak "order parts" wizard (#12236) - 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