Revision 0fe023a4
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/DB/Manager/PriceRule.pm | ||
---|---|---|
27 | 27 |
my $type = $params{record}->is_sales ? 'customer' : 'vendor'; |
28 | 28 |
|
29 | 29 |
# plan: 1. search all rule_items that do NOT match this record/record item combo |
30 |
my ($sub_where, @value_subs) = SL::DB::Manager::PriceRuleItem->not_matching_sql_and_values(type => $type); |
|
31 |
my @values = map { $_->($params{record}, $params{record_item}) } @value_subs; |
|
30 |
my ($sub_where, @values) = SL::DB::Manager::PriceRuleItem->not_matching_sql_and_values(type => $type, %params); |
|
32 | 31 |
|
33 | 32 |
# now union all NOT matching, invert ids, load these |
34 | 33 |
my $matching_rule_ids = <<SQL; |
Auch abrufbar als: Unified diff
PriceRule: Korrektes Matching von Nulls