projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Temporäre Menüpunkte für neuen CSV-Import
[kivitendo-erp.git]
/
SL
/
BackgroundJob
/
CreatePeriodicInvoices.pm
diff --git
a/SL/BackgroundJob/CreatePeriodicInvoices.pm
b/SL/BackgroundJob/CreatePeriodicInvoices.pm
index
1a2cf81
..
0bbea2d
100644
(file)
--- a/
SL/BackgroundJob/CreatePeriodicInvoices.pm
+++ b/
SL/BackgroundJob/CreatePeriodicInvoices.pm
@@
-22,7
+22,7
@@
sub run {
my $self = shift;
$self->{db_obj} = shift;
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;
foreach my $config (@{ $configs }) {
my $new_end_date = $config->handle_automatic_extension;
@@
-184,7
+184,7
@@
sub _calculate_dates {
sub _send_email {
my ($posted_invoices, $printed_invoices) = @_;
sub _send_email {
my ($posted_invoices, $printed_invoices) = @_;
-
read_config 'config/lx_office.conf' => my %config
;
+
my %config = %::lx_office_conf
;
return if !$config{periodic_invoices} || !$config{periodic_invoices}->{send_email_to} || !scalar @{ $posted_invoices };
return if !$config{periodic_invoices} || !$config{periodic_invoices}->{send_email_to} || !scalar @{ $posted_invoices };
@@
-238,9
+238,9
@@
sub _print_invoice {
$form->throw_on_error(sub {
eval {
$form->throw_on_error(sub {
eval {
- $form->parse_template(\%::myconfig
, $::userspath
);
+ $form->parse_template(\%::myconfig);
1;
1;
- } || die $EVAL_ERROR->
{error}
;
+ } || die $EVAL_ERROR->
getMessage
;
});
}
});
}