Revision 0c73b206
Von Bernd Bleßmann vor mehr als 5 Jahren hinzugefügt
js/kivi.Part.js | ||
---|---|---|
334 | 334 |
}, |
335 | 335 |
ajax_data: function(term) { |
336 | 336 |
var data = { |
337 |
'filter.all:substr:multi::ilike': term, |
|
338 | 337 |
current: this.$real.val(), |
339 | 338 |
}; |
340 | 339 |
|
... | ... | |
356 | 355 |
if (this.o.convertible_unit) |
357 | 356 |
data['filter.unit_obj.convertible_to'] = this.o.convertible_unit; |
358 | 357 |
|
358 |
var filter_name = 'all'; |
|
359 |
if (this.o.with_makemodel) { |
|
360 |
filter_name = 'all_with_makemodel'; |
|
361 |
} |
|
362 |
if (this.o.with_customer_partnumber) { |
|
363 |
filter_name = 'all_with_customer_partnumber'; |
|
364 |
} |
|
365 |
data['filter.' + filter_name + ':substr:multi::ilike'] = term; |
|
366 |
|
|
359 | 367 |
return data; |
360 | 368 |
}, |
361 | 369 |
set_item: function(item) { |
Auch abrufbar als: Unified diff
PartPicker nach Kunden- und Lieferanten-Artikel-Nr. suchen und filtern können