Revision 14ec63c8
Von Moritz Bunkus vor fast 2 Jahren hinzugefügt
SL/DB/Manager/DeliveryTerm.pm | ||
---|---|---|
18 | 18 |
}); |
19 | 19 |
} |
20 | 20 |
|
21 |
sub get_valid { |
|
22 |
my ($class, $with_this_id) = @_; |
|
23 |
|
|
24 |
my @conditions = (obsolete => 0); |
|
25 |
|
|
26 |
if ($with_this_id) { |
|
27 |
@conditions = ( |
|
28 |
or => [ |
|
29 |
id => $with_this_id, |
|
30 |
@conditions, |
|
31 |
]); |
|
32 |
} |
|
33 |
|
|
34 |
return $class->get_all_sorted(query => \@conditions); |
|
35 |
} |
|
36 |
|
|
21 | 37 |
1; |
Auch abrufbar als: Unified diff
Lieferbedingungen ungültig markieren können