Revision d8acfbcb
Von Bernd Bleßmann vor fast 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 |
if (this.o.vendor_selector || this.o.customer_selector) { |
|
359 |
if (this.o.vendor_selector) { |
|
360 |
data['filter.all_with_makemodel:substr:multi::ilike'] = term; |
|
361 |
if ($(this.o.vendor_selector).val()) { |
|
362 |
data['filter.makemodels.make'] = $(this.o.vendor_selector).val().split(','); |
|
363 |
} |
|
364 |
} |
|
365 |
if (this.o.customer_selector) { |
|
366 |
data['filter.all_with_customer_partnumber:substr:multi::ilike'] = term; |
|
367 |
if ($(this.o.customer_selector).val()) { |
|
368 |
data['filter.customerprices.customer_id'] = $(this.o.customer_selector).val().split(','); |
|
369 |
} |
|
370 |
} |
|
371 |
} else { |
|
372 |
data['filter.all:substr:multi::ilike'] = term; |
|
373 |
} |
|
374 |
|
|
359 | 375 |
return data; |
360 | 376 |
}, |
361 | 377 |
set_item: function(item) { |
Auch abrufbar als: Unified diff
PartPicker nach Kunden- und Lieferanten-Artikel-Nr. suchen und filtern können