X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ac84f80b460db32e6a989a250b3fc1093680fe9a..ad9b15c2da87c6ee98f0990b49c8dff0f09cf581:/SL/Common.pm?ds=inline diff --git a/SL/Common.pm b/SL/Common.pm index d6260251e..82cadbfaf 100644 --- a/SL/Common.pm +++ b/SL/Common.pm @@ -397,11 +397,13 @@ sub get_vc_details { vc.*, pt.description AS payment_terms, b.description AS business, - l.description AS language + l.description AS language, + dt.description AS delivery_terms FROM ${vc} vc LEFT JOIN payment_terms pt ON (vc.payment_id = pt.id) LEFT JOIN business b ON (vc.business_id = b.id) LEFT JOIN language l ON (vc.language_id = l.id) + LEFT JOIN delivery_terms dt ON (vc.delivery_term_id = dt.id) WHERE vc.id = ?|; my $ref = selectfirst_hashref_query($form, $dbh, $query, $vc_id); @@ -645,7 +647,7 @@ sub copy_file_to_webdav_folder { my $timestamp = get_current_formatted_time(); my $new_file = File::Spec->catfile($form->{cwd}, $webdav_folder, $form->generate_attachment_filename()); - $new_file =~ s/\./$timestamp\./; + $new_file =~ s{(.*)\.}{$1$timestamp\.}; if (!File::Copy::copy($current_file, $new_file)) { $::lxdebug->message(LXDebug::WARN(), "Copy file from $current_file to $new_file failed: $ERRNO");