Mahnungsbericht: Dokumente nur für ersten Eintrag eines Mahnlaufs anzeigen
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 19 Mar 2021 12:56:29 +0000 (13:56 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Thu, 25 Mar 2021 10:22:24 +0000 (11:22 +0100)
bin/mozilla/dn.pl

index e690bb9..9422da3 100644 (file)
@@ -447,7 +447,7 @@ sub show_dunning {
       $row->{language} = { };
     }
 
-    if ($::instance_conf->get_doc_storage) {
+    if ($::instance_conf->get_doc_storage && $first_row_for_dunning) {
       my @files  = SL::File->get_all_versions(object_id   => $ref->{dunning_id},
                                               object_type => 'dunning',
                                               file_type   => 'document',);