From: Bernd Bleßmann Date: Mon, 8 Jul 2019 13:04:22 +0000 (+0200) Subject: Part: Filter-Specs für Kunden- und Lieferanten-Artikel.-Nr. X-Git-Tag: release-3.5.6.1~550 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=88d774c6d423854ca7765cb2e4c284398e0b1d73;p=kivitendo-erp.git Part: Filter-Specs für Kunden- und Lieferanten-Artikel.-Nr. --- 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 {