service => 'dienstleistungen',
assembly => 'erzeugnisse',
letter => 'briefe',
+ general_ledger => 'dialogbuchungen',
);
sub get_all_files {
use SL::IS;
use SL::ReportGenerator;
use SL::DBUtils qw(selectrow_query selectall_hashref_query);
+use SL::Webdav;
+use SL::Locale::String qw(t8);
require "bin/mozilla/common.pl";
require "bin/mozilla/reportgenerator.pl";
$form->{show_details} = $myconfig{show_form_details} unless defined $form->{show_details};
+ if ($form->{reference} && $::instance_conf->get_webdav) {
+ my $webdav = SL::Webdav->new(
+ type => 'general_ledger',
+ number => $form->{reference},
+ );
+ my $webdav_path = $webdav->webdav_path;
+ my @all_objects = $webdav->get_all_objects;
+ @{ $form->{WEBDAV} } = map { { name => $_->filename,
+ type => t8('File'),
+ link => File::Spec->catdir($webdav_path, $_->filename),
+ } } @all_objects;
+ }
form_header();
display_rows();
form_footer();
$form->{storno} = 0;
post_transaction();
+ if ($::instance_conf->get_webdav) {
+ SL::Webdav->new(type => 'general_ledger',
+ number => $form->{reference},
+ )->webdav_path;
+ }
$form->{callback} = build_std_url("action=add", "show_details");
$form->redirect($form->{callback});
<input type="hidden" name="follow_up_trans_info_1" value="[% id | html %]">
<input type="hidden" name="follow_up_rowcount" value="1">
+<div id="ir_tabs" class="tabwidget">
+ <ul>
+ <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
+[%- IF INSTANCE_CONF.get_webdav %]
+ <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
+[%- END %]
+ </ul>
+ <div id="ui-tabs-basic-data">
+
<table width=100%>
[%- IF saved_message %]
<tr>