[UI] Tweak "order parts" wizard (#12236)
- Order supplier parts by "primary" value - Attempt to auto-fill primary supplier part
This commit is contained in:
parent
184ec37975
commit
75b27bd10a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue