my $self = shift;
$self->{db_obj} = shift;
- my $configs = SL::DB::Manager::PeriodicInvoicesConfig->get_all(where => [ active => 1 ]);
+ my $configs = SL::DB::Manager::PeriodicInvoicesConfig->get_all(query => [ active => 1 ]);
foreach my $config (@{ $configs }) {
my $new_end_date = $config->handle_automatic_extension;
sub get_active_taxkey {
my ($self, $date) = @_;
$date ||= DateTime->today_local;
- return SL::DB::Manager::TaxKey->get_all(where => [ and => [ chart_id => $self->id,
+ return SL::DB::Manager::TaxKey->get_all(query => [ and => [ chart_id => $self->id,
startdate => { le => $date } ] ],
sort_by => "startdate DESC")->[0];
}
next_run_at => undef,
next_run_at => { le => $now } ] ]);
- return $class->get_all(where => [ or => [ @interval_args, @once_args ] ]);
+ return $class->get_all(query => [ or => [ @interval_args, @once_args ] ]);
}
1;