mirror of
https://github.com/inventree/InvenTree.git
synced 2026-07-04 06:00:38 +00:00
[UI] Tweak "order parts" wizard (#12236)
- Order supplier parts by "primary" value - Attempt to auto-fill primary supplier part
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user