From: Sven Schöling Date: Fri, 12 Sep 2014 13:32:06 +0000 (+0200) Subject: PriceRule: Vergleiche waren falsch herum X-Git-Tag: release-3.2.0beta~143 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=195868629497c88a82de60d0aca754943903620c;p=kivitendo-erp.git PriceRule: Vergleiche waren falsch herum --- diff --git a/SL/DB/Manager/PriceRuleItem.pm b/SL/DB/Manager/PriceRuleItem.pm index 60e5d8248..632b0bf28 100644 --- a/SL/DB/Manager/PriceRuleItem.pm +++ b/SL/DB/Manager/PriceRuleItem.pm @@ -56,7 +56,7 @@ sub not_matching_sql_and_values { my $ops = $ops{$def->{ops}}; for (keys %$ops) { - push @sub_tokens, "op = '$_' AND NOT value_$def->{data_type} $ops->{$_} ?"; + push @sub_tokens, "op = '$_' AND NOT ? $ops->{$_} value_$def->{data_type}"; push @values, $value; } } else {