Revision 33b0b2ca
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
SL/BackgroundJob/CreatePeriodicInvoices.pm | ||
---|---|---|
22 | 22 |
my $self = shift; |
23 | 23 |
$self->{db_obj} = shift; |
24 | 24 |
|
25 |
my $configs = SL::DB::Manager::PeriodicInvoicesConfig->get_all(where => [ active => 1 ]);
|
|
25 |
my $configs = SL::DB::Manager::PeriodicInvoicesConfig->get_all(query => [ active => 1 ]);
|
|
26 | 26 |
|
27 | 27 |
foreach my $config (@{ $configs }) { |
28 | 28 |
my $new_end_date = $config->handle_automatic_extension; |
SL/DB/Chart.pm | ||
---|---|---|
17 | 17 |
sub get_active_taxkey { |
18 | 18 |
my ($self, $date) = @_; |
19 | 19 |
$date ||= DateTime->today_local; |
20 |
return SL::DB::Manager::TaxKey->get_all(where => [ and => [ chart_id => $self->id,
|
|
20 |
return SL::DB::Manager::TaxKey->get_all(query => [ and => [ chart_id => $self->id,
|
|
21 | 21 |
startdate => { le => $date } ] ], |
22 | 22 |
sort_by => "startdate DESC")->[0]; |
23 | 23 |
} |
SL/DB/Manager/BackgroundJob.pm | ||
---|---|---|
29 | 29 |
next_run_at => undef, |
30 | 30 |
next_run_at => { le => $now } ] ]); |
31 | 31 |
|
32 |
return $class->get_all(where => [ or => [ @interval_args, @once_args ] ]);
|
|
32 |
return $class->get_all(query => [ or => [ @interval_args, @once_args ] ]);
|
|
33 | 33 |
} |
34 | 34 |
|
35 | 35 |
1; |
Auch abrufbar als: Unified diff
Ältere RDBO-Versionen kennen 'where' als Alias für 'query' beim Manager nicht