From 88d774c6d423854ca7765cb2e4c284398e0b1d73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 8 Jul 2019 15:04:22 +0200 Subject: [PATCH] =?utf8?q?Part:=20Filter-Specs=20f=C3=BCr=20Kunden-=20und?= =?utf8?q?=20Lieferanten-Artikel.-Nr.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Manager/Part.pm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/SL/DB/Manager/Part.pm b/SL/DB/Manager/Part.pm index d24954bdb..b46f851cf 100644 --- a/SL/DB/Manager/Part.pm +++ b/SL/DB/Manager/Part.pm @@ -23,7 +23,17 @@ __PACKAGE__->add_filter_specs( all => sub { my ($key, $value, $prefix) = @_; return or => [ map { $prefix . $_ => $value } qw(partnumber description ean) ] - } + }, + all_with_makemodel => sub { + my ($key, $value, $prefix) = @_; + return or => [ map { $prefix . $_ => $value } qw(partnumber description ean makemodels.model) ], + $prefix . 'makemodels'; + }, + all_with_customer_partnumber => sub { + my ($key, $value, $prefix) = @_; + return or => [ map { $prefix . $_ => $value } qw(partnumber description ean customerprices.customer_partnumber) ], + $prefix . 'customerprices'; + }, ); sub type_filter { -- 2.20.1