Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b166ba3b

Von Jan Büren vor etwa 8 Jahren hinzugefügt

  • ID b166ba3bdc7dbc69b5be36501905508fd3dce242
  • Vorgänger c8baba6b
  • Nachfolger 056888bc

Dialogbuchen um WebDAV-Funktion erweitert

Unterschiede anzeigen:

SL/Webdav.pm
30 30
  service                 => 'dienstleistungen',
31 31
  assembly                => 'erzeugnisse',
32 32
  letter                  => 'briefe',
33
  general_ledger          => 'dialogbuchungen',
33 34
);
34 35

  
35 36
sub get_all_files {
bin/mozilla/gl.pl
43 43
use SL::IS;
44 44
use SL::ReportGenerator;
45 45
use SL::DBUtils qw(selectrow_query selectall_hashref_query);
46
use SL::Webdav;
47
use SL::Locale::String qw(t8);
46 48

  
47 49
require "bin/mozilla/common.pl";
48 50
require "bin/mozilla/reportgenerator.pl";
......
200 202

  
201 203
  $form->{show_details} = $myconfig{show_form_details} unless defined $form->{show_details};
202 204

  
205
  if ($form->{reference} && $::instance_conf->get_webdav) {
206
    my $webdav = SL::Webdav->new(
207
      type     => 'general_ledger',
208
      number   => $form->{reference},
209
    );
210
    my $webdav_path = $webdav->webdav_path;
211
    my @all_objects = $webdav->get_all_objects;
212
    @{ $form->{WEBDAV} } = map { { name => $_->filename,
213
                                   type => t8('File'),
214
                                   link => File::Spec->catdir($webdav_path, $_->filename),
215
                               } } @all_objects;
216
  }
203 217
  form_header();
204 218
  display_rows();
205 219
  form_footer();
......
1168 1182
  $form->{storno} = 0;
1169 1183

  
1170 1184
  post_transaction();
1185
  if ($::instance_conf->get_webdav) {
1186
    SL::Webdav->new(type     => 'general_ledger',
1187
                    number   => $form->{reference},
1188
                   )->webdav_path;
1189
  }
1171 1190

  
1172 1191
  $form->{callback} = build_std_url("action=add", "show_details");
1173 1192
  $form->redirect($form->{callback});
templates/webpages/gl/form_footer.html
14 14
  </td>
15 15
  </tr>
16 16
</table>
17
</div>
18
[% PROCESS 'webdav/_list.html' %]
19
</div>
17 20

  
21
<hr size="3" noshade>
18 22
<input name=callback type=hidden value="[% callback %]">
19 23

  
20 24
[%- IF id && follow_ups.size %]
templates/webpages/gl/form_header.html
49 49
<input type="hidden" name="follow_up_trans_info_1" value="[% id | html %]">
50 50
<input type="hidden" name="follow_up_rowcount" value="1">
51 51

  
52
<div id="ir_tabs" class="tabwidget">
53
 <ul>
54
  <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
55
[%- IF INSTANCE_CONF.get_webdav %]
56
  <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
57
[%- END %]
58
 </ul>
59
 <div id="ui-tabs-basic-data">
60

  
52 61
<table width=100%>
53 62
[%- IF saved_message %]
54 63
  <tr>

Auch abrufbar als: Unified diff