Revision 2de6b963
Von Bernd Bleßmann vor fast 5 Jahren hinzugefügt
js/kivi.Part.js | ||
---|---|---|
335 | 335 |
ajax_data: function(term) { |
336 | 336 |
var data = { |
337 | 337 |
'filter.all:substr:multi::ilike': term, |
338 |
'filter.obsolete': 0, |
|
339 | 338 |
current: this.$real.val(), |
340 | 339 |
}; |
341 | 340 |
|
342 | 341 |
if (this.o.part_type) |
343 | 342 |
data['filter.part_type'] = this.o.part_type.split(','); |
344 | 343 |
|
344 |
if (this.o.status) { |
|
345 |
if (this.o.status == 'active') data['filter.obsolete'] = 0; |
|
346 |
if (this.o.status == 'obsolete') data['filter.obsolete'] = 1; |
|
347 |
} else |
|
348 |
data['filter.obsolete'] = 0; |
|
349 |
|
|
345 | 350 |
if (this.o.classification_id) |
346 | 351 |
data['filter.classification_id'] = this.o.classification_id.split(','); |
347 | 352 |
|
Auch abrufbar als: Unified diff
PartPicker: auch nach ungültigen oder allen Artikeln suchen können.
Dazu kann ein Parameter "status" (active/obsolete/all) übergeben werden.
Ohne diesen Parameter ist das Verhalten wie zuvor (nur gültige).