Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ddf6b218

Von Philip Reetz vor mehr als 16 Jahren hinzugefügt

  • ID ddf6b21857f3b1cfbc9efe74004d5faa8e03d23c
  • Vorgänger 3a83b0d2
  • Nachfolger 6f205006

Umbau der bisherigen Saldenbilanz zu einer richtigen Summen- Saldenliste unter Benutzung des
Reportgenerator Frameworks

Unterschiede anzeigen:

SL/RP.pm
804 804
  }
805 805

  
806 806
  # get beginning balances
807
  if ($form->{fromdate}) {
808
    $query =
809
      qq|SELECT c.accno, c.category, SUM(ac.amount) AS amount, c.description
810
         FROM acc_trans ac
811
         JOIN chart c ON (ac.chart_id = c.id)
812
         $dpt_join
813
         WHERE (ac.transdate < ?)
814
           $dpt_where
815
           $project
816
         GROUP BY c.accno, c.category, c.description |;
807
  $query =
808
    qq|SELECT c.accno, c.category, SUM(ac.amount) AS amount, c.description
809
        FROM acc_trans ac
810
        JOIN chart c ON (ac.chart_id = c.id)
811
        $dpt_join
812
        WHERE (ac.transdate < (select date_trunc('year', date ?)))
813
          $dpt_where
814
          $project
815
        GROUP BY c.accno, c.category, c.description |;
817 816

  
818
    $sth = prepare_execute_query($form, $dbh, $query, $form->{fromdate});
817
  $sth = prepare_execute_query($form, $dbh, $query, $form->{fromdate});
819 818

  
820
    while (my $ref = $sth->fetchrow_hashref(NAME_lc)) {
821
      $balance{ $ref->{accno} } = $ref->{amount};
819
  while (my $ref = $sth->fetchrow_hashref(NAME_lc)) {
822 820

  
823
      if ($ref->{amount} != 0 && $form->{all_accounts}) {
824
        $trb{ $ref->{accno} }{description} = $ref->{description};
825
        $trb{ $ref->{accno} }{charttype}   = 'A';
826
        $trb{ $ref->{accno} }{category}    = $ref->{category};
821
    if ($ref->{amount} != 0 || $form->{all_accounts}) {
822
      $trb{ $ref->{accno} }{description} = $ref->{description};
823
      $trb{ $ref->{accno} }{charttype}   = 'A';
824
      if ($ref->{category} ne "I" &&  $ref->{category} ne "E") {
825
        if ($ref->{amount} > 0) {
826
          $trb{ $ref->{accno} }{haben_eb}   = $ref->{amount};
827
        } else {
828
          $trb{ $ref->{accno} }{soll_eb}   = $ref->{amount} * -1;
829
        }
827 830
      }
828

  
831
      $trb{ $ref->{accno} }{category}    = $ref->{category};
829 832
    }
830
    $sth->finish;
831 833

  
832 834
  }
835
  $sth->finish;
836

  
833 837

  
834 838
  # get headings
835 839
  $query =
......
851 855
  $sth->finish;
852 856

  
853 857
  $where = " 1 = 1 ";
858
  $saldowhere = " 1 = 1 ";
859
  $sumwhere = " 1 = 1 ";
854 860
  my $tofrom;
855 861

  
856 862
  if ($form->{fromdate} || $form->{todate}) {
......
858 864
      my $fromdate = conv_dateq($form->{fromdate});
859 865
      $tofrom   .= " AND (ac.transdate >= $fromdate)";
860 866
      $subwhere .= " AND (transdate >= $fromdate)";
867
      $sumsubwhere .= " AND (transdate >= (select date_trunc('year', date $fromdate))) ";
868
      $saldosubwhere .= " AND (((c.category='I' OR c.category='E') AND transdate>=(select date_trunc('year', date $fromdate))) OR (c.category NOT IN ('I', 'E'))) ";
861 869
      $invwhere .= " AND (a.transdate >= $fromdate)";
870
      $glsaldowhere .= " AND (((c.category='I' OR c.category='E') AND ac.transdate>=(select date_trunc('year', date $fromdate))) OR (c.category NOT IN ('I', 'E'))) ";
862 871
      $glwhere = " AND (ac.transdate >= $fromdate)";
872
      $glsumwhere = " AND (ac.transdate >= (select date_trunc('year', date $fromdate))) ";
863 873
    }
864 874
    if ($form->{todate}) {
865 875
      my $todate = conv_dateq($form->{todate});
866 876
      $tofrom   .= " AND (ac.transdate <= $todate)";
867 877
      $invwhere .= " AND (a.transdate <= $todate)";
878
      $saldosubwhere .= " AND (transdate <= $todate)";
879
      $sumsubwhere .= " AND (transdate <= $todate)";
868 880
      $subwhere .= " AND (transdate <= $todate)";
869 881
      $glwhere  .= " AND (ac.transdate <= $todate)";
870
    }
882
      $glsumwhere .= " AND (ac.transdate <= $todate) ";
883
      $glsaldowhere .= " AND (ac.transdate <= $todate) ";
884
   }
871 885
  }
872 886

  
873
  if ($form->{eur}) {
887
  if ($form->{method} eq "cash") {
874 888
    $where .=
875 889
      qq| AND ((ac.trans_id IN (SELECT id from ar) AND
876 890
                ac.trans_id IN
......
897 911
               (ac.trans_id in (SELECT id from gl)
898 912
                $glwhere)
899 913
              )|;
914
    $saldowhere .=       
915
qq| AND ((ac.trans_id IN (SELECT id from ar) AND
916
                ac.trans_id IN
917
                  (
918
                    SELECT trans_id
919
                    FROM acc_trans
920
                    JOIN chart ON (chart_id = id)
921
                    WHERE (link LIKE '%AR_paid%')
922
                      $saldosubwhere
923
                  )
924
               )
925
               OR
926
               (ac.trans_id in (SELECT id from ap) AND
927
                ac.trans_id IN
928
                  (
929
                    SELECT trans_id
930
                    FROM acc_trans
931
                    JOIN chart ON (chart_id = id)
932
                    WHERE (link LIKE '%AP_paid%')
933
                      $saldosubwhere
934
                  )
935
               )
936
               OR
937
               (ac.trans_id in (SELECT id from gl)
938
                $glsaldowhere)
939
              )|;
940
    $sumwhere .=       
941
qq| AND ((ac.trans_id IN (SELECT id from ar) AND
942
                ac.trans_id IN
943
                  (
944
                    SELECT trans_id
945
                    FROM acc_trans
946
                    JOIN chart ON (chart_id = id)
947
                    WHERE (link LIKE '%AR_paid%')
948
                      $sumsubwhere
949
                  )
950
               )
951
               OR
952
               (ac.trans_id in (SELECT id from ap) AND
953
                ac.trans_id IN
954
                  (
955
                    SELECT trans_id
956
                    FROM acc_trans
957
                    JOIN chart ON (chart_id = id)
958
                    WHERE (link LIKE '%AP_paid%')
959
                      $sumsubwhere
960
                  )
961
               )
962
               OR
963
               (ac.trans_id in (SELECT id from gl)
964
                $glsumwhere)
965
              )|;
966

  
900 967
  } else {
901 968
    $where .= $tofrom;
969
    $saldowhere .= $glsaldowhere;
970
    $sumwhere .= $glsumwhere;
902 971
  }
903 972

  
904 973
  $query = qq|
......
979 1048
            $dpt_where
980 1049
            $project
981 1050
          AND ac.amount > 0
982
          AND c.accno = ?) AS credit |;
1051
          AND c.accno = ?) AS credit,
1052
        (SELECT SUM(ac.amount)
1053
         FROM acc_trans ac
1054
         JOIN chart c ON (ac.chart_id = c.id)
1055
         $dpt_join
1056
         WHERE $saldowhere
1057
           $dpt_where
1058
           $project
1059
         AND c.accno = ?) AS saldo,
1060

  
1061
        (SELECT SUM(ac.amount)
1062
         FROM acc_trans ac
1063
         JOIN chart c ON (ac.chart_id = c.id)
1064
         $dpt_join
1065
         WHERE $sumwhere
1066
           $dpt_where
1067
           $project
1068
         AND amount > 0
1069
         AND c.accno = ?) AS sum_credit,
1070

  
1071
        (SELECT SUM(ac.amount)
1072
         FROM acc_trans ac
1073
         JOIN chart c ON (ac.chart_id = c.id)
1074
         $dpt_join
1075
         WHERE $sumwhere
1076
           $dpt_where
1077
           $project
1078
         AND amount < 0
1079
         AND c.accno = ?) AS sum_debit,
1080

  
1081
        (SELECT max(ac.transdate) FROM acc_trans ac
1082
        JOIN chart c ON (ac.chart_id = c.id)
1083
        $dpt_join
1084
        WHERE $where
1085
          $dpt_where
1086
          $project
1087
        AND c.accno = ?) AS last_transaction
1088

  
1089

  
1090
 |;
983 1091

  
984 1092
  $drcr = prepare_query($form, $dbh, $q_drcr);
985 1093

  
......
1007 1115
           WHERE $invwhere
1008 1116
             $dpt_where
1009 1117
             $project
1010
           AND c.accno = ?) AS credit |;
1118
           AND c.accno = ?) AS credit,
1119

  
1120
        (SELECT SUM(ac.amount)
1121
         FROM acc_trans ac
1122
         JOIN chart c ON (ac.chart_id = c.id)
1123
         $dpt_join
1124
         WHERE $saldowhere
1125
           $dpt_where
1126
           $project
1127
         AND c.accno = ?) AS saldo,
1128

  
1129
        (SELECT SUM(ac.amount)
1130
         FROM acc_trans ac
1131
         JOIN chart c ON (ac.chart_id = c.id)
1132
         $dpt_join
1133
         WHERE $sumwhere
1134
           $dpt_where
1135
           $project
1136
         AND amount > 0
1137
         AND c.accno = ?) AS sum_credit,
1138

  
1139
        (SELECT SUM(ac.amount)
1140
         FROM acc_trans ac
1141
         JOIN chart c ON (ac.chart_id = c.id)
1142
         $dpt_join
1143
         WHERE $sumwhere
1144
           $dpt_where
1145
           $project
1146
         AND amount < 0
1147
         AND c.accno = ?) AS sum_debit,
1148

  
1149

  
1150
        (SELECT max(ac.transdate) FROM acc_trans ac
1151
        JOIN chart c ON (ac.chart_id = c.id)
1152
        $dpt_join
1153
        WHERE $where
1154
          $dpt_where
1155
          $project
1156
        AND c.accno = ?) AS last_transaction
1157
 |;
1011 1158

  
1012 1159
    $project_drcr = prepare_query($form, $dbh, $q_project_drcr);
1013 1160
  }
1014 1161

  
1015
  my ($debit, $credit);
1162
  my ($debit, $credit, $saldo, $soll_saldo, $haben_saldo,$soll_kummuliert, $haben_kummuliert, $last_transaction);
1016 1163

  
1017 1164
  foreach my $accno (sort keys %trb) {
1018 1165
    $ref = {};
1019 1166

  
1020 1167
    $ref->{accno} = $accno;
1021 1168
    map { $ref->{$_} = $trb{$accno}{$_} }
1022
      qw(description category charttype amount);
1169
      qw(description category charttype amount soll_eb haben_eb);
1023 1170

  
1024 1171
    $ref->{balance} = $form->round_amount($balance{ $ref->{accno} }, 2);
1025 1172

  
1026 1173
    if ($trb{$accno}{charttype} eq 'A') {
1027 1174

  
1028 1175
      # get DR/CR
1029
      do_statement($form, $drcr, $q_drcr, $ref->{accno}, $ref->{accno});
1176
      do_statement($form, $drcr, $q_drcr, $ref->{accno}, $ref->{accno}, $ref->{accno}, $ref->{accno}, $ref->{accno}, $ref->{accno});
1030 1177

  
1031
      ($debit, $credit) = (0, 0);
1032
      while (($debit, $credit) = $drcr->fetchrow_array) {
1178
      ($debit, $credit, $saldo, $haben_saldo, $soll_saldo, $soll_kumuliert, $haben_kumuliert) = (0, 0, 0, 0, 0, 0, 0);
1179
      $last_transaction = "";
1180
      while (($debit, $credit, $saldo, $haben_kumuliert, $soll_kumuliert, $last_transaction) = $drcr->fetchrow_array) {
1033 1181
        $ref->{debit}  += $debit;
1034 1182
        $ref->{credit} += $credit;
1183
        if ($saldo >= 0) {
1184
          $ref->{haben_saldo} += $saldo;
1185
        } else {
1186
          $ref->{soll_saldo} += $saldo * -1;
1187
        }
1188
        $ref->{last_transaction} = $last_transaction;
1189
        $ref->{soll_kumuliert} = $soll_kumuliert * -1;
1190
        $ref->{haben_kumuliert} = $haben_kumuliert;
1035 1191
      }
1036 1192
      $drcr->finish;
1037 1193

  
1038 1194
      if ($form->{project_id}) {
1039 1195

  
1040 1196
        # get DR/CR
1041
        do_statement($form, $project_drcr, $q_project_drcr, $ref->{accno}, $ref->{accno});
1197
        do_statement($form, $project_drcr, $q_project_drcr, $ref->{accno}, $ref->{accno}, $ref->{accno}, $ref->{accno}, $ref->{accno}, $ref->{accno});
1042 1198

  
1043 1199
        ($debit, $credit) = (0, 0);
1044
        while (($debit, $credit) = $project_drcr->fetchrow_array) {
1200
        while (($debit, $credit, $saldo, $haben_kumuliert, $soll_kumuliert, $last_transaction) = $project_drcr->fetchrow_array) {
1045 1201
          $ref->{debit}  += $debit;
1046 1202
          $ref->{credit} += $credit;
1203
          if ($saldo >= 0) {
1204
            $ref->{haben_saldo} += $saldo;
1205
          } else {
1206
            $ref->{soll_saldo} += $saldo * -1;
1207
          }
1208
          $ref->{soll_kumuliert} += $soll_kumuliert * -1;
1209
          $ref->{haben_kumuliert} += $haben_kumuliert;
1047 1210
        }
1048 1211
        $project_drcr->finish;
1049 1212
      }
1050 1213

  
1051 1214
      $ref->{debit}  = $form->round_amount($ref->{debit},  2);
1052 1215
      $ref->{credit} = $form->round_amount($ref->{credit}, 2);
1053

  
1216
      $ref->{haben_saldo}  = $form->round_amount($ref->{haben_saldo},  2);
1217
      $ref->{soll_saldo} = $form->round_amount($ref->{soll_saldo}, 2);
1218
      $ref->{haben_kumuliert}  = $form->round_amount($ref->{haben_kumuliert},  2);
1219
      $ref->{soll_kumuliert} = $form->round_amount($ref->{soll_kumuliert}, 2);
1054 1220
    }
1055 1221

  
1056 1222
    # add subtotal
......
1059 1225
    if ($accno) {
1060 1226
      $trb{$accno}{debit}  += $ref->{debit};
1061 1227
      $trb{$accno}{credit} += $ref->{credit};
1228
      $trb{$accno}{soll_saldo}  += $ref->{soll_saldo};
1229
      $trb{$accno}{haben_saldo} += $ref->{haben_saldo};
1230
      $trb{$accno}{soll_kumuliert}  += $ref->{soll_kumuliert};
1231
      $trb{$accno}{haben_kumuliert} += $ref->{haben_kumuliert};
1062 1232
    }
1063 1233

  
1064 1234
    push @{ $form->{TB} }, $ref;
......
1073 1243
      if ($accno eq $ref->{accno}) {
1074 1244
        $ref->{debit}  = $trb{$accno}{debit};
1075 1245
        $ref->{credit} = $trb{$accno}{credit};
1076
      }
1246
        $ref->{soll_saldo}  = $trb{$accno}{soll_saldo};
1247
        $ref->{haben_saldo} = $trb{$accno}{haben_saldo};
1248
        $ref->{soll_kumuliert}  = $trb{$accno}{soll_kumuliert};
1249
        $ref->{haben_kumuliert} = $trb{$accno}{haben_kumuliert};      }
1077 1250
    }
1078 1251
  }
1079 1252

  
bin/mozilla/rp.pl
586 586

  
587 587
  if ($form->{report} eq "trial_balance") {
588 588
    print qq|
589
	<tr>
590
	  <th align=right nowrap>| . $locale->text('Project') . qq|</th>
591
	  <td colspan=3>$projectnumber</td>
592
	</tr>
589 593
        <input type=hidden name=nextsub value=generate_trial_balance>
590
        <input type=hidden name=eur value=$eur>
591
       <tr>
592
	  <th align=right>| . $locale->text('From') . qq|</th>
593
          <td>
594
            $button1
595
            $button1_2
596
          </td>
597
	  <th align=right>| . $locale->text('Bis') . qq|</th>
598
	  <td>
599
            $button2
600
            $button2_2
601
          </td>
594
</table>
595
<table>
596
	<tr>
597
	  <th align=left><input name=reporttype class=radio type=radio value="custom" checked> |
598
      . $locale->text('Customized Report') . qq|</th>
602 599
	</tr>
603
      </table>
604
    </td>
605
  </tr>
606
  <tr>
607
    <td>
608
      <table>
609 600
	<tr>
610
	  <th align=right nowrap>| . $locale->text('Include in Report') . qq|</th>
611
	  <td><input name=l_heading class=checkbox type=checkbox value=Y>&nbsp;|
612
      . $locale->text('Heading') . qq|
613
	  <input name=l_subtotal class=checkbox type=checkbox value=Y>&nbsp;|
614
      . $locale->text('Subtotal') . qq|
615
	  <input name=all_accounts class=checkbox type=checkbox value=Y>&nbsp;|
616
      . $locale->text('All Accounts') . qq|</td>
601
	  <th colspan=1>| . $locale->text('Year') . qq|</th>
602
	  <td><input name=year size=11 title="|
603
      . $locale->text('YYYY') . qq|" value="$year"></td>
604
	</tr>
605
|;
606

  
607
    print qq|
608
	<tr>
609
		<td align=right>
610
<b> | . $locale->text('Yearly') . qq|</b> </td>
611
		<th align=left>| . $locale->text('Quarterly') . qq|</th>
612
		<th align=left colspan=3>| . $locale->text('Monthly') . qq|</th>
613
	</tr>
614
	<tr>
615
		<td align=right>&nbsp; <input name=duetyp class=radio type=radio value="13"
616
$checked></td>
617
		<td><input name=duetyp class=radio type=radio value="A" $checked >&nbsp;1. |
618
      . $locale->text('Quarter') . qq|</td>
619
|;
620
    $checked = "checked";
621
    print qq|
622
		<td><input name=duetyp class=radio type=radio value="1" $checked >&nbsp;|
623
      . $locale->text('January') . qq|</td>
624
|;
625
    $checked = "";
626
    print qq|
627
		<td><input name=duetyp class=radio type=radio value="5" $checked >&nbsp;|
628
      . $locale->text('May') . qq|</td>
629
		<td><input name=duetyp class=radio type=radio value="9" $checked >&nbsp;|
630
      . $locale->text('September') . qq|</td>
631

  
632
	</tr>
633
	<tr>
634
		<td align= right>&nbsp;</td>
635
		<td><input name=duetyp class=radio type=radio value="B" $checked>&nbsp;2. |
636
      . $locale->text('Quarter') . qq|</td>
637
		<td><input name=duetyp class=radio type=radio value="2" $checked >&nbsp;|
638
      . $locale->text('February') . qq|</td>
639
		<td><input name=duetyp class=radio type=radio value="6" $checked >&nbsp;|
640
      . $locale->text('June') . qq|</td>
641
		<td><input name=duetyp class=radio type=radio value="10" $checked >&nbsp;|
642
      . $locale->text('October') . qq|</td>
643
	</tr>
644
	<tr>
645
		<td> &nbsp;</td>
646
		<td><input name=duetyp class=radio type=radio value="C" $checked>&nbsp;3. |
647
      . $locale->text('Quarter') . qq|</td>
648
		<td><input name=duetyp class=radio type=radio value="3" $checked >&nbsp;|
649
      . $locale->text('March') . qq|</td>
650
		<td><input name=duetyp class=radio type=radio value="7" $checked >&nbsp;|
651
      . $locale->text('July') . qq|</td>
652
		<td><input name=duetyp class=radio type=radio value="11" $checked >&nbsp;|
653
      . $locale->text('November') . qq|</td>
654

  
617 655
	</tr>
656
	<tr>
657
		<td> &nbsp;</td>
658
		<td><input name=duetyp class=radio type=radio value="D" $checked>&nbsp;4. |
659
      . $locale->text('Quarter') . qq|&nbsp;</td>
660
		<td><input name=duetyp class=radio type=radio value="4" $checked >&nbsp;|
661
      . $locale->text('April') . qq|</td>
662
		<td><input name=duetyp class=radio type=radio value="8" $checked >&nbsp;|
663
      . $locale->text('August') . qq|</td>
664
		<td><input name=duetyp class=radio type=radio value="12" $checked >&nbsp;|
665
      . $locale->text('December') . qq|</td>
618 666

  
667
	</tr>
668
	<tr>
669
   		<td colspan=5><hr size=3 noshade></td>
670
	</tr>
671
	<tr>
672
          <th align=left><input name=reporttype class=radio type=radio value="free" $checked> |
673
      . $locale->text('Free report period') . qq|</th>
674
	  <td align=left colspan=4>| . $locale->text('From') . qq|&nbsp;
675
	      $button1
676
              $button1_2&nbsp;
677
	      | . $locale->text('Bis') . qq|&nbsp;
678
	      $button2
679
              $button2_2
680
          </td>
681
        </tr>
682
	<tr>
683
   		<td colspan=5><hr size=3 noshade></td>
684
	</tr>
685
	<tr>
686
	  <th align=leftt>| . $locale->text('Method') . qq|</th>
687
	  <td colspan=3><input name=method class=radio type=radio value=accrual $accrual>|
688
      . $locale->text('Accrual') . qq|
689
	  &nbsp;<input name=method class=radio type=radio value=cash $cash>|
690
      . $locale->text('EUR') . qq|</td>
691
	</tr>
692
       <tr>
693
         <th align=right colspan=4>|
694
      . $locale->text('All Accounts')
695
      . qq|</th>
696
             <td><input name=all_accounts type=checkbox value=1></td>
697
         </tr>
698
        <tr>
699
         <th align=right colspan=4>|
700
      . $locale->text('Decimalplaces')
701
      . qq|</th>
702
             <td><input name=decimalplaces size=3 value="2"></td>
703
         </tr>
704
                                    
619 705
$jsscript
620 706
|;
621 707
  }
......
1168 1254

  
1169 1255
  $auth->assert('report');
1170 1256

  
1257
  if ($form->{reporttype} eq "custom") {
1258

  
1259
    #forgotten the year --> thisyear
1260
    if ($form->{year} !~ m/^\d\d\d\d$/) {
1261
      $locale->date(\%myconfig, $form->current_date(\%myconfig), 0) =~
1262
        /(\d\d\d\d)/;
1263
      $form->{year} = $1;
1264
    }
1265

  
1266
    #yearly report
1267
    if ($form->{duetyp} eq "13") {
1268
      $form->{fromdate} = "1.1.$form->{year}";
1269
      $form->{todate}   = "31.12.$form->{year}";
1270
    }
1271

  
1272
    #Quater reports
1273
    if ($form->{duetyp} eq "A") {
1274
      $form->{fromdate} = "1.1.$form->{year}";
1275
      $form->{todate}   = "31.3.$form->{year}";
1276
    }
1277
    if ($form->{duetyp} eq "B") {
1278
      $form->{fromdate} = "1.4.$form->{year}";
1279
      $form->{todate}   = "30.6.$form->{year}";
1280
    }
1281
    if ($form->{duetyp} eq "C") {
1282
      $form->{fromdate} = "1.7.$form->{year}";
1283
      $form->{todate}   = "30.9.$form->{year}";
1284
    }
1285
    if ($form->{duetyp} eq "D") {
1286
      $form->{fromdate} = "1.10.$form->{year}";
1287
      $form->{todate}   = "31.12.$form->{year}";
1288
    }
1289

  
1290
    #Monthly reports
1291
  SWITCH: {
1292
      $form->{duetyp} eq "1" && do {
1293
        $form->{fromdate} = "1.1.$form->{year}";
1294
        $form->{todate}   = "31.1.$form->{year}";
1295
        last SWITCH;
1296
      };
1297
      $form->{duetyp} eq "2" && do {
1298
        $form->{fromdate} = "1.2.$form->{year}";
1299

  
1300
        #this works from 1901 to 2099, 1900 and 2100 fail.
1301
        $leap = ($form->{year} % 4 == 0) ? "29" : "28";
1302
        $form->{todate} = "$leap.2.$form->{year}";
1303
        last SWITCH;
1304
      };
1305
      $form->{duetyp} eq "3" && do {
1306
        $form->{fromdate} = "1.3.$form->{year}";
1307
        $form->{todate}   = "31.3.$form->{year}";
1308
        last SWITCH;
1309
      };
1310
      $form->{duetyp} eq "4" && do {
1311
        $form->{fromdate} = "1.4.$form->{year}";
1312
        $form->{todate}   = "30.4.$form->{year}";
1313
        last SWITCH;
1314
      };
1315
      $form->{duetyp} eq "5" && do {
1316
        $form->{fromdate} = "1.5.$form->{year}";
1317
        $form->{todate}   = "31.5.$form->{year}";
1318
        last SWITCH;
1319
      };
1320
      $form->{duetyp} eq "6" && do {
1321
        $form->{fromdate} = "1.6.$form->{year}";
1322
        $form->{todate}   = "30.6.$form->{year}";
1323
        last SWITCH;
1324
      };
1325
      $form->{duetyp} eq "7" && do {
1326
        $form->{fromdate} = "1.7.$form->{year}";
1327
        $form->{todate}   = "31.7.$form->{year}";
1328
        last SWITCH;
1329
      };
1330
      $form->{duetyp} eq "8" && do {
1331
        $form->{fromdate} = "1.8.$form->{year}";
1332
        $form->{todate}   = "31.8.$form->{year}";
1333
        last SWITCH;
1334
      };
1335
      $form->{duetyp} eq "9" && do {
1336
        $form->{fromdate} = "1.9.$form->{year}";
1337
        $form->{todate}   = "30.9.$form->{year}";
1338
        last SWITCH;
1339
      };
1340
      $form->{duetyp} eq "10" && do {
1341
        $form->{fromdate} = "1.10.$form->{year}";
1342
        $form->{todate}   = "31.10.$form->{year}";
1343
        last SWITCH;
1344
      };
1345
      $form->{duetyp} eq "11" && do {
1346
        $form->{fromdate} = "1.11.$form->{year}";
1347
        $form->{todate}   = "30.11.$form->{year}";
1348
        last SWITCH;
1349
      };
1350
      $form->{duetyp} eq "12" && do {
1351
        $form->{fromdate} = "1.12.$form->{year}";
1352
        $form->{todate}   = "31.12.$form->{year}";
1353
        last SWITCH;
1354
      };
1355
    }
1356
  }
1357

  
1358

  
1171 1359
  # get for each account initial balance, debits and credits
1172 1360
  RP->trial_balance(\%myconfig, \%$form);
1173 1361

  
1174
  $form->{nextsub} = "generate_trial_balance";
1175
  $form->{title}   = $locale->text('Trial Balance');
1176
  list_accounts('generate_trial_balance');
1362

  
1363
  $form->{rowcount} = scalar @{ $form->{TB} };
1364

  
1365
  my @columns = (
1366
    "accno",               "description",
1367
    "last_transaction",    "soll_eb",
1368
    "haben_eb",
1369
    "soll",                 "haben",
1370
    "soll_kumuliert", "haben_kumuliert",
1371
    "soll_saldo", "haben_saldo"
1372
  );
1373

  
1374

  
1375
  my $attachment_basename;
1376

  
1377
  my $report = SL::ReportGenerator->new(\%myconfig, $form);
1378

  
1379
  my @hidden_variables = ();
1380
  push @hidden_variables, qw(fromdate todate year cash );
1381

  
1382
  my $href = build_std_url('action=orders', grep { $form->{$_} } @hidden_variables);
1383

  
1384
  my %column_defs = (
1385
    'accno'                   => { 'text' => $locale->text('Account Number'), },
1386
    'description'             => { 'text' => $locale->text('Description'), },
1387
    'last_transaction'        => { 'text' => $locale->text('Last Transaction'), },
1388
    'soll_eb'                 => { 'text' => $locale->text('Debit Starting Balance'), },
1389
    'haben_eb'                => { 'text' => $locale->text('Credit Starting Balance'), },
1390
    'soll'                    => { 'text' => $locale->text('Debit'), },
1391
    'haben'                   => { 'text' => $locale->text('Credit'), },
1392
    'soll_kumuliert'          => { 'text' => $locale->text('Sum Debit'), },
1393
    'haben_kumuliert'         => { 'text' => $locale->text('Sum Credit'), },
1394
    'soll_saldo'              => { 'text' => $locale->text('Saldo Debit'), },
1395
    'haben_saldo'                => { 'text' => $locale->text('Saldo Credit'), }
1396
  );
1397

  
1398

  
1399

  
1400
  my %column_alignment = map { $_ => 'right' } qw(soll_eb haben_eb soll haben soll_kumuliert haben_kumuliert soll_saldo haben_saldo);
1401

  
1402
  map { $column_defs{$_}->{visible} =  1 } @columns;
1403

  
1404
  $report->set_columns(%column_defs);
1405
  $report->set_column_order(@columns);
1406

  
1407
  $report->set_export_options('trial_balance', @hidden_variables);
1408

  
1409
  $report->set_sort_indicator($form->{sort}, 1);
1410

  
1411
  my @options;
1412

  
1413

  
1414
  $form->{template_fromto} = $locale->date(\%myconfig, $form->{fromdate}, 0) . "&nbsp; - &nbsp;" . $locale->date(\%myconfig, $form->{todate}, 0);
1415
  $form->{template_to} = $locale->date(\%myconfig, $form->{todate}, 0);
1416

  
1417
  $report->set_options('output_format'        => 'HTML',
1418
                       'title'                => $form->{title},
1419
                       'attachment_basename'  => $attachment_basename . strftime('_%Y%m%d', localtime time),
1420
    );
1421
  $report->set_options_from_form();
1422
  # $form->parse_html_template('report_generator/html_report_susa', $variables));
1423
  $form->{report_template} = 'report_generator/html_report_susa';
1424
  # add sort and escape callback, this one we use for the add sub
1425
  $form->{callback} = $href .= "&sort=$form->{sort}";
1426

  
1427
  # escape callback for href
1428
  $callback = $form->escape($href);
1429

  
1430
  my @subtotal_columns = qw(soll_eb haben_eb soll haben soll_kumuliert haben_kumuliert soll_saldo haben_saldo);
1431

  
1432
  my %totals    = map { $_ => 0 } @subtotal_columns;
1433

  
1434
  my $edit_url = build_std_url('action=edit', 'type', 'vc');
1435

  
1436
  foreach $accno (@{ $form->{TB} }) {
1437

  
1438
    $accno->{soll} = $accno->{debit};
1439
    $accno->{haben} = $accno->{credit};
1440
    map { $totals{$_}    += $accno->{$_} } @subtotal_columns;
1441

  
1442
    map { $accno->{$_} = $form->format_amount(\%myconfig, $accno->{$_}, 2) } qw(soll_eb haben_eb soll haben soll_kumuliert haben_kumuliert soll_saldo haben_saldo);
1443

  
1444
    map { $accno->{$_} = ($accno->{$_} == 0) ? '' : $accno->{$_} } qw(soll_eb haben_eb soll haben soll_kumuliert haben_kumuliert soll_saldo haben_saldo);
1445

  
1446
    my $row = { };
1447

  
1448
    foreach my $column (@columns) {
1449
      $row->{$column} = {
1450
        'data'  => $accno->{$column},
1451
        'align' => $column_alignment{$column},
1452
      };
1453
    }
1454

  
1455

  
1456
    $row->{$ordnumber}->{link} = $edit_url . "&id=" . E($oe->{id}) . "&callback=${callback}";
1457

  
1458
    my $row_set = [ $row ];
1459

  
1460

  
1461
    $report->add_data($row_set);
1462

  
1463
    $idx++;
1464
  }
1465

  
1466
  $report->add_separator();
1467

  
1468
  $report->add_data(create_subtotal_row(\%totals, \@columns, \%column_alignment, \@subtotal_columns, 'listtotal'));
1469

  
1470
  $report->generate_with_headers();
1471

  
1472
  $lxdebug->leave_sub();
1473

  
1474
}
1475

  
1476
sub create_subtotal_row {
1477
  $lxdebug->enter_sub();
1478

  
1479
  my ($totals, $columns, $column_alignment, $subtotal_columns, $class) = @_;
1480

  
1481
  my $row = { map { $_ => { 'data' => '', 'class' => $class, 'align' => $column_alignment->{$_}, } } @{ $columns } };
1482

  
1483
  map { $row->{$_}->{data} = $form->format_amount(\%myconfig, $totals->{$_}, 2) } @{ $subtotal_columns };
1484

  
1485
  $row->{tax}->{data} = $form->format_amount(\%myconfig, $totals->{amount} - $totals->{netamount}, 2);
1486

  
1487
  map { $totals->{$_} = 0 } @{ $subtotal_columns };
1177 1488

  
1178 1489
  $lxdebug->leave_sub();
1490

  
1491
  return $row;
1179 1492
}
1180 1493

  
1181 1494
sub create_list_accounts_subtotal_row {
locale/de/admin
11 11
  'Address'                     => 'Adresse',
12 12
  'Administration'              => 'Administration',
13 13
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
14
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
14
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
15 15
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
16 16
  'Authentification database creation' => 'Anlegen der Datenbank zur Benutzerauthentifizierung',
17 17
  'Authentification tables creation' => 'Anlegen der Tabellen zur Benutzerauthentifizierung',
locale/de/all
148 148
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
149 149
  'Aktion'                      => 'Aktion',
150 150
  'All'                         => 'Alle',
151
  'All Accounts'                => 'Alle Konten',
151
  'All Accounts'                => '',
152 152
  'All Datasets up to date!'    => 'Alle Datenbanken sind auf aktuellem Stand.',
153 153
  'All changes in that file have been reverted.' => 'Alle &Auml;nderungen in dieser Datei wurden r&uuml;ckg&auml;ngig gemacht.',
154 154
  'All database upgrades have been applied.' => 'Alle Datenbankupdates wurden eingespielt.',
155
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
155
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
156 156
  'Allow access'                => 'Zugriff erlauben',
157 157
  'Allow the following users access to my follow-ups:' => 'Erlaube den folgenden Benutzern Zugriff auf meine Wiedervorlagen:',
158 158
  'Alternatively you can create a new part which will then be selected.' => 'Sie k&ouml;nnen auch einen neuen Artikel anlegen, der dann automatisch ausgew&auml;hlt wird.',
......
181 181
  'Assemblies'                  => 'Erzeugnisse',
182 182
  'Assembly Number missing!'    => 'Erzeugnisnummer fehlt!',
183 183
  'Asset'                       => 'Aktiva/Mittelverwendung',
184
  'Assets'                      => 'Aktiva',
184 185
  'Assign new units'            => 'Neue Einheiten zuweisen',
185 186
  'Assign units'                => 'Einheiten zuweisen',
186 187
  'Assume Tax Consultant Data in Tax Computation?' => 'Beraterdaten in UStVA ?bernehmen?',
......
365 366
  'Credit Note'                 => 'Gutschrift',
366 367
  'Credit Note Date'            => 'Gutschriftdatum',
367 368
  'Credit Note Number'          => 'Gutschriftnummer',
369
  'Credit Starting Balance'     => 'Er?ffnungsbilanzwert Aktiva',
368 370
  'Credit Tax'                  => 'Umsatzsteuer',
369 371
  'Credit Tax Account'          => 'Umsatzsteuerkonto',
370 372
  'Credit note (one letter abbreviation)' => 'G',
......
420 422
  'Datum von'                   => 'Datum von',
421 423
  'Debit'                       => 'Soll',
422 424
  'Debit Account'               => 'Sollkonto',
425
  'Debit Starting Balance'      => 'Er?ffnungsbilanzwert Passiva',
423 426
  'Debit Tax'                   => 'Vorsteuer',
424 427
  'Debit Tax Account'           => 'Vorsteuerkonto',
425 428
  'Debit and credit out of balance!' => 'Soll und Haben m?ssen gleich sein.',
......
791 794
  'Last Sales Order Number'     => 'Letzte Auftragsnummer',
792 795
  'Last Sales Quotation Number' => 'Letzte Angebotsnummer',
793 796
  'Last Service Number'         => 'Letzte Dienstleistungsnr.',
797
  'Last Transaction'            => 'Letzte Buchung',
794 798
  'Last Vendor Number'          => 'Letzte Lieferantennummer',
795 799
  'Lead'                        => 'Kundenquelle',
796 800
  'Leave host and port field empty unless you want to make a remote connection.' => 'F&uuml;r lokale Verbindungen "Rechner" und "Port" freilassen.',
......
907 911
  'No backup file has been uploaded.' => 'Es wurde keine Sicherungsdatei hochgeladen.',
908 912
  'No bins have been added to this warehouse yet.' => 'Es wurden zu diesem Lager noch keine Lagerpl&auml;tze angelegt.',
909 913
  'No customer has been selected yet.' => 'Es wurde noch kein Kunde ausgew?hlt.',
910
  'No data was found.'          => 'Es wurden keine Daten gefunden.',
914
  'No data was found.'          => 'Keine Daten gefunden',
911 915
  'No databases have been found on this server.' => 'Auf diesem Server wurden keine Datenbanken gefunden.',
912 916
  'No datasets have been selected.' => 'Es wurden keine Datenbanken ausgew&auml;hlt.',
913 917
  'No dunnings have been selected for printing.' => 'Es wurden keine Mahnungen zum Drucken ausgew&auml;hlt.',
......
1169 1173
  'SAVED FOR DUNNING'           => 'Gespeichert',
1170 1174
  'SCREENED'                    => 'Angezeigt',
1171 1175
  'SIC'                         => 'SIC',
1176
  'Saldo Credit'                => 'Saldo Haben',
1177
  'Saldo Debit'                 => 'Saldo Soll',
1178
  'Saldo per'                   => 'Saldo per',
1172 1179
  'Sales Invoice'               => 'Rechnung',
1173 1180
  'Sales Invoices'              => 'Kundenrechnung',
1174 1181
  'Sales Order'                 => 'Kundenauftrag',
......
1258 1265
  'Spoolfile'                   => 'Druckdatei',
1259 1266
  'Start Dunning Process'       => 'Mahnprozess starten',
1260 1267
  'Startdate_coa'               => 'G?ltig ab',
1268
  'Starting Balance'            => 'Er?ffnungsbilanzwerte',
1261 1269
  'Statement'                   => 'Sammelrechnung',
1262 1270
  'Statement Balance'           => 'Sammelrechnungsbilanz',
1263 1271
  'Statement sent to'           => 'Sammelrechnung verschickt an',
......
1277 1285
  'Subject'                     => 'Betreff',
1278 1286
  'Subject:'                    => 'Betreff:',
1279 1287
  'Subtotal'                    => 'Zwischensumme',
1288
  'Sum Credit'                  => 'Summe Haben',
1289
  'Sum Debit'                   => 'Summe Soll',
1290
  'Sum for'                     => 'Summe f?r',
1291
  'Sum per'                     => 'Summe per',
1292
  'Summen- und Saldenliste'     => 'Summen- und Saldenliste',
1280 1293
  'Superuser name'              => 'Datenbankadministrator',
1281 1294
  'System'                      => 'System',
1282 1295
  'TODO list'                   => 'Aufgabenliste',
......
1472 1485
  'Transfer out and close'      => 'Auslagern und abschlie?en',
1473 1486
  'Transfer qty'                => 'Umlagermenge',
1474 1487
  'Translation (%s)'            => '&Uuml;bersetzung (%s)',
1475
  'Trial Balance'               => 'Saldenbilanz',
1488
  'Trial Balance'               => 'Summen- u. Saldenliste',
1476 1489
  'Trying to call a sub without a name' => 'Es wurde versucht, eine Unterfunktion ohne Namen aufzurufen.',
1477 1490
  'Type'                        => 'Typ',
1478 1491
  'Type of Business'            => 'Kunden-/Lieferantentyp',
locale/de/am
63 63
  'Add and edit %s'             => '%s hinzuf&uuml;gen und bearbeiten',
64 64
  'Address'                     => 'Adresse',
65 65
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
66
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
66
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
67 67
  'Article Code'                => 'Artikelk?rzel',
68 68
  'Article Code missing!'       => 'Artikelk?rzel fehlt',
69 69
  'Asset'                       => 'Aktiva/Mittelverwendung',
locale/de/amcvar
7 7
  'Add custom variable'         => 'Benutzerdefinierte Variable erfassen',
8 8
  'Address'                     => 'Adresse',
9 9
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
10
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
10
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
11 11
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
12 12
  'Bcc'                         => 'Bcc',
13 13
  'Bin List'                    => 'Lagerliste',
locale/de/amtemplates
6 6
  'AR'                          => 'Verkauf',
7 7
  'Address'                     => 'Adresse',
8 8
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
9
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
9
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
10 10
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
11 11
  'BWA'                         => 'BWA',
12 12
  'Balance Sheet'               => 'Bilanz',
locale/de/ap
12 12
  'Add Accounts Payables Transaction' => 'Kreditorenbuchung erfassen',
13 13
  'Address'                     => 'Adresse',
14 14
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
15
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
15
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
16 16
  'Amount'                      => 'Betrag',
17 17
  'Amount Due'                  => 'Betrag f?llig',
18 18
  'Apr'                         => 'Apr',
locale/de/ar
13 13
  'Add Accounts Receivables Transaction' => 'Debitorenbuchung erfassen',
14 14
  'Address'                     => 'Adresse',
15 15
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
16
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
16
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
17 17
  'Amount'                      => 'Betrag',
18 18
  'Amount Due'                  => 'Betrag f?llig',
19 19
  'Apr'                         => 'Apr',
locale/de/arap
6 6
  'AR'                          => 'Verkauf',
7 7
  'Address'                     => 'Adresse',
8 8
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
9
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
9
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
10 10
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
11 11
  'Bcc'                         => 'Bcc',
12 12
  'Bin List'                    => 'Lagerliste',
locale/de/bp
7 7
  'Account'                     => 'Konto',
8 8
  'Address'                     => 'Adresse',
9 9
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
10
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
10
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
11 11
  'Are you sure you want to remove the marked entries from the queue?' => 'Sind Sie sicher, dass die markierten Eintr?ge von der Warteschlange gel?scht werden sollen?',
12 12
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
13 13
  'Bcc'                         => 'Bcc',
locale/de/ca
6 6
  'AR'                          => 'Verkauf',
7 7
  'Account'                     => 'Konto',
8 8
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
9
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
9
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
10 10
  'Apr'                         => 'Apr',
11 11
  'April'                       => 'April',
12 12
  'Aug'                         => 'Aug',
locale/de/common
6 6
  'AR'                          => 'Verkauf',
7 7
  'Address'                     => 'Adresse',
8 8
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
9
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
9
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
10 10
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
11 11
  'Bcc'                         => 'Bcc',
12 12
  'Bin List'                    => 'Lagerliste',
locale/de/cp
8 8
  'Address'                     => 'Adresse',
9 9
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
10 10
  'All'                         => 'Alle',
11
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
11
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
12 12
  'Amount'                      => 'Betrag',
13 13
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
14 14
  'Bcc'                         => 'Bcc',
locale/de/ct
11 11
  'Address'                     => 'Adresse',
12 12
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
13 13
  'All'                         => 'Alle',
14
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
14
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
15 15
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
16 16
  'Bcc'                         => 'Bcc',
17 17
  'Bin List'                    => 'Lagerliste',
locale/de/datev
7 7
  'Abrechnungsnummer'           => 'Abrechnungsnummer',
8 8
  'Address'                     => 'Adresse',
9 9
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
10
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
10
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
11 11
  'April'                       => 'April',
12 12
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
13 13
  'August'                      => 'August',
locale/de/dn
14 14
  'Add Sales Order'             => 'Auftrag erfassen',
15 15
  'Address'                     => 'Adresse',
16 16
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
17
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
17
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
18 18
  'Amount'                      => 'Betrag',
19 19
  'Apr'                         => 'Apr',
20 20
  'April'                       => 'April',
locale/de/do
19 19
  'Add Vendor Invoice'          => 'Einkaufsrechnung erfassen',
20 20
  'Address'                     => 'Adresse',
21 21
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
22
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
22
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
23 23
  'Apr'                         => 'Apr',
24 24
  'April'                       => 'April',
25 25
  'Attachment'                  => 'als Anhang',
locale/de/drafts
6 6
  'AR'                          => 'Verkauf',
7 7
  'Address'                     => 'Adresse',
8 8
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
9
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
9
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
10 10
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
11 11
  'Bcc'                         => 'Bcc',
12 12
  'Bin List'                    => 'Lagerliste',
locale/de/fu
9 9
  'Add Follow-Up'               => 'Wiedervorlage erstellen',
10 10
  'Add Follow-Up for #1'        => 'Wiedervorlage f&uuml;r #1 erstellen',
11 11
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
12
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
12
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
13 13
  'Bcc'                         => 'Bcc',
14 14
  'Bin List'                    => 'Lagerliste',
15 15
  'Binding to the LDAP server as "#1" failed. Please check config/authentication.pl.' => 'Die Anmeldung am LDAP-Server als "#1" schlug fehl. Bitte &uuml;berpr&uuml;fen Sie die Angaben in config/authentication.pl.',
locale/de/gl
11 11
  'Address'                     => 'Adresse',
12 12
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
13 13
  'All'                         => 'Alle',
14
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
14
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
15 15
  'Apr'                         => 'Apr',
16 16
  'April'                       => 'April',
17 17
  'Are you sure you want to delete Transaction' => 'Buchung wirklich l?schen?',
locale/de/ic
21 21
  'Add Service'                 => 'Dienstleistung erfassen',
22 22
  'Address'                     => 'Adresse',
23 23
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
24
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
24
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
25 25
  'Apr'                         => 'Apr',
26 26
  'April'                       => 'April',
27 27
  'Assemblies'                  => 'Erzeugnisse',
locale/de/io
14 14
  'Add Sales Order'             => 'Auftrag erfassen',
15 15
  'Address'                     => 'Adresse',
16 16
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
17
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
17
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
18 18
  'Apr'                         => 'Apr',
19 19
  'April'                       => 'April',
20 20
  'Attachment'                  => 'als Anhang',
locale/de/ir
16 16
  'Add Vendor Invoice'          => 'Einkaufsrechnung erfassen',
17 17
  'Address'                     => 'Adresse',
18 18
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
19
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
19
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
20 20
  'Amount'                      => 'Betrag',
21 21
  'Apr'                         => 'Apr',
22 22
  'April'                       => 'April',
locale/de/is
18 18
  'Add Storno Credit Note'      => 'Gutschrift Storno hinzuf?gen',
19 19
  'Address'                     => 'Adresse',
20 20
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
21
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
21
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
22 22
  'Amount'                      => 'Betrag',
23 23
  'Apr'                         => 'Apr',
24 24
  'April'                       => 'April',
locale/de/licenses
9 9
  'Address'                     => 'Adresse',
10 10
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
11 11
  'All'                         => 'Alle',
12
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
12
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
13 13
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
14 14
  'Bcc'                         => 'Bcc',
15 15
  'Bin List'                    => 'Lagerliste',
locale/de/login
23 23
  'Add Vendor Invoice'          => 'Einkaufsrechnung erfassen',
24 24
  'Address'                     => 'Adresse',
25 25
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
26
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
26
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
27 27
  'Amount'                      => 'Betrag',
28 28
  'Apr'                         => 'Apr',
29 29
  'April'                       => 'April',
locale/de/menu
41 41
  'Add Warehouse'               => 'Lager erfassen',
42 42
  'Administration area'         => 'Administrationsbereich',
43 43
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
44
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
44
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
45 45
  'Assemblies'                  => 'Erzeugnisse',
46 46
  'Audit Control'               => 'B?cherkontrolle',
47 47
  'BWA'                         => 'BWA',
......
171 171
  'To (email)'                  => 'An',
172 172
  'Transactions, AR transactions, AP transactions' => 'Dialogbuchen, Debitorenrechnungen, Kreditorenrechnungen',
173 173
  'Transfer'                    => 'Umlagern',
174
  'Trial Balance'               => 'Saldenbilanz',
174
  'Trial Balance'               => 'Summen- u. Saldenliste',
175 175
  'Type of Business'            => 'Kunden-/Lieferantentyp',
176 176
  'UStVa'                       => 'UStVa',
177 177
  'UStVa Einstellungen'         => 'UStVa Einstellungen',
locale/de/menuXML
4 4
  'AP'                          => 'Einkauf',
5 5
  'AR'                          => 'Verkauf',
6 6
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
7
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
7
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
8 8
  'Bcc'                         => 'Bcc',
9 9
  'Binding to the LDAP server as "#1" failed. Please check config/authentication.pl.' => 'Die Anmeldung am LDAP-Server als "#1" schlug fehl. Bitte &uuml;berpr&uuml;fen Sie die Angaben in config/authentication.pl.',
10 10
  'Cc'                          => 'Cc',
locale/de/menunew
40 40
  'Add Warehouse'               => 'Lager erfassen',
41 41
  'Administration area'         => 'Administrationsbereich',
42 42
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
43
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
43
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
44 44
  'Assemblies'                  => 'Erzeugnisse',
45 45
  'Audit Control'               => 'B?cherkontrolle',
46 46
  'BWA'                         => 'BWA',
......
170 170
  'To (email)'                  => 'An',
171 171
  'Transactions, AR transactions, AP transactions' => 'Dialogbuchen, Debitorenrechnungen, Kreditorenrechnungen',
172 172
  'Transfer'                    => 'Umlagern',
173
  'Trial Balance'               => 'Saldenbilanz',
173
  'Trial Balance'               => 'Summen- u. Saldenliste',
174 174
  'Type of Business'            => 'Kunden-/Lieferantentyp',
175 175
  'UStVa'                       => 'UStVa',
176 176
  'UStVa Einstellungen'         => 'UStVa Einstellungen',
locale/de/menuv3
4 4
  'AP'                          => 'Einkauf',
5 5
  'AR'                          => 'Verkauf',
6 6
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
7
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
7
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
8 8
  'Bcc'                         => 'Bcc',
9 9
  'Binding to the LDAP server as "#1" failed. Please check config/authentication.pl.' => 'Die Anmeldung am LDAP-Server als "#1" schlug fehl. Bitte &uuml;berpr&uuml;fen Sie die Angaben in config/authentication.pl.',
10 10
  'Cc'                          => 'Cc',
locale/de/oe
20 20
  'Add Vendor Invoice'          => 'Einkaufsrechnung erfassen',
21 21
  'Address'                     => 'Adresse',
22 22
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
23
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
23
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
24 24
  'Amount'                      => 'Betrag',
25 25
  'Apr'                         => 'Apr',
26 26
  'April'                       => 'April',
locale/de/pe
12 12
  'Address'                     => 'Adresse',
13 13
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
14 14
  'All'                         => 'Alle',
15
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
15
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
16 16
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
17 17
  'Bcc'                         => 'Bcc',
18 18
  'Bin List'                    => 'Lagerliste',
locale/de/rc
7 7
  'Account'                     => 'Konto',
8 8
  'Address'                     => 'Adresse',
9 9
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
10
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
10
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
11 11
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
12 12
  'Balance'                     => 'Bilanz',
13 13
  'Bcc'                         => 'Bcc',
locale/de/reportgenerator
5 5
  'AP'                          => 'Einkauf',
6 6
  'AR'                          => 'Verkauf',
7 7
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
8
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
8
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
9 9
  'Bcc'                         => 'Bcc',
10 10
  'Bin List'                    => 'Lagerliste',
11 11
  'Binding to the LDAP server as "#1" failed. Please check config/authentication.pl.' => 'Die Anmeldung am LDAP-Server als "#1" schlug fehl. Bitte &uuml;berpr&uuml;fen Sie die Angaben in config/authentication.pl.',
locale/de/rp
11 11
  'Accrual'                     => 'Bilanzierung',
12 12
  'Address'                     => 'Adresse',
13 13
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
14
  'All Accounts'                => 'Alle Konten',
15
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
14
  'All Accounts'                => 'All Accounts',
15
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
16 16
  'Amount'                      => 'Betrag',
17 17
  'Apr'                         => 'Apr',
18 18
  'April'                       => 'April',
......
53 53
  'Create and edit vendor invoices' => 'Eingangsrechnungen erfassen und bearbeiten',
54 54
  'Credit'                      => 'Haben',
55 55
  'Credit Note'                 => 'Gutschrift',
56
  'Credit Starting Balance'     => 'Er?ffnungsbilanzwert Aktiva',
56 57
  'Current'                     => 'Betrag',
57 58
  'Current Earnings'            => 'Gewinn',
58 59
  'Customer'                    => 'Kunde',
......
67 68
  'Dataset upgrade'             => 'Datenbankaktualisierung',
68 69
  'Date'                        => 'Datum',
69 70
  'Debit'                       => 'Soll',
71
  'Debit Starting Balance'      => 'Er?ffnungsbilanzwert Passiva',
70 72
  'Dec'                         => 'Dez',
71 73
  'December'                    => 'Dezember',
72 74
  'Decimalplaces'               => 'Dezimalstellen',
......
104 106
  'July'                        => 'Juli',
105 107
  'Jun'                         => 'Jun',
106 108
  'June'                        => 'Juni',
109
  'Last Transaction'            => 'Letzte Buchung',
107 110
  'MAILED'                      => 'Gesendet',
108 111
  'Manage license keys'         => 'Lizenzschl&uuml;ssel verwalten',
109 112
  'Mar'                         => 'M?rz',
......
171 174
  'SAVED'                       => 'Gespeichert',
172 175
  'SAVED FOR DUNNING'           => 'Gespeichert',
173 176
  'SCREENED'                    => 'Angezeigt',
177
  'Saldo Credit'                => 'Saldo Haben',
178
  'Saldo Debit'                 => 'Saldo Soll',
174 179
  'Screen'                      => 'Bildschirm',
175 180
  'Select a Customer'           => 'Endkunde ausw?hlen',
176 181
  'Select a customer'           => 'Einen Kunden ausw&auml;hlen',
......
189 194
  'Storno Packing List'         => 'Stornolieferschein',
190 195
  'Subject'                     => 'Betreff',
191 196
  'Subtotal'                    => 'Zwischensumme',
197
  'Sum Credit'                  => 'Summe Haben',
198
  'Sum Debit'                   => 'Summe Soll',
192 199
  'Tax'                         => 'Steuer',
193 200
  'Tax collected'               => 'vereinnahmte Steuer',
194 201
  'Tax paid'                    => 'Vorsteuer',
......
204 211
  'To (email)'                  => 'An',
205 212
  'Total'                       => 'Summe',
206 213
  'Transactions, AR transactions, AP transactions' => 'Dialogbuchen, Debitorenrechnungen, Kreditorenrechnungen',
207
  'Trial Balance'               => 'Saldenbilanz',
214
  'Trial Balance'               => 'Summen- u. Saldenliste',
208 215
  'Trying to call a sub without a name' => 'Es wurde versucht, eine Unterfunktion ohne Namen aufzurufen.',
209 216
  'Unit'                        => 'Einheit',
210 217
  'Unknown dependency \'%s\'.'  => 'Unbekannte Abh&auml;ngigkeit \'%s\'.',
......
268 275
  'cov_selection_internal'      => 'cov_selection_internal',
269 276
  'create_aging_subtotal_row'   => 'create_aging_subtotal_row',
270 277
  'create_list_accounts_subtotal_row' => 'create_list_accounts_subtotal_row',
278
  'create_subtotal_row'         => 'create_subtotal_row',
271 279
  'delivery_customer_selection' => 'delivery_customer_selection',
272 280
  'e_mail'                      => 'e_mail',
273 281
  'format_dates'                => 'format_dates',
locale/de/todo
22 22
  'Add Vendor Invoice'          => 'Einkaufsrechnung erfassen',
23 23
  'Address'                     => 'Adresse',
24 24
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
25
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
25
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
26 26
  'Amount'                      => 'Betrag',
27 27
  'Apr'                         => 'Apr',
28 28
  'April'                       => 'April',
locale/de/ustva
10 10
  'AR'                          => 'Verkauf',
11 11
  'Address'                     => 'Adresse',
12 12
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
13
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
13
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
14 14
  'Amended Advance Turnover Tax Return' => 'Berichtigte Anmeldung',
15 15
  'Amended Advance Turnover Tax Return (Nr. 10)' => 'Ist dies eine berichtigte Anmeldung? (Nr. 10/Zeile 15 Steuererkl?rung)',
16 16
  'Application Error. No Format given' => 'Fehler in der Anwendung. Das Ausgabeformat fehlt.',
locale/de/wh
8 8
  'AR Transaction'              => 'Debitorenbuchung',
9 9
  'Address'                     => 'Adresse',
10 10
  'Advance turnover tax return' => 'Umsatzsteuervoranmeldung',
11
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Saldenbilanz, GuV, BWA, Bilanz, Projektbuchungen)',
11
  'All reports'                 => 'Alle Berichte (Konten&uuml;bersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)',
12 12
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
13 13
  'Bcc'                         => 'Bcc',
14 14
  'Bin'                         => 'Lagerplatz',
templates/webpages/report_generator/html_report_susa_de.html
1
[% USE HTML %]<body>
2

  
3
 <script type="text/javascript">
4
  <!--
5
      function submit_report_generator_form(nextsub) {
6
        document.report_generator_form.report_generator_dispatch_to.value = nextsub;
7
        document.report_generator_form.submit();
8
      }
9

  
10
    -->
11
 </script>
12

  
13
 <style type="text/css">
14
  <!--
15
.top_border {
16
  border-top: solid black;
17
  border-width: 4px;
18
}
19
.bottom_border {
20
  border-bottom: solid black;
21
  border-width: 4px;
22
}
23
    -->
24
 </style>
25

  
26
 [% IF MESSAGE %]
27
  <p>[% MESSAGE %]</p>
28
 [% END %]
29

  
30
 <div class="listtop" width="100%">Summen- und Saldenliste [% template_fromto %]</div>
31

  
32
 [% IF TOP_INFO_TEXT %]
33
  <p>[% TOP_INFO_TEXT %]</p>
34
 [% END %]
35

  
36
 [% RAW_TOP_INFO_TEXT %]
37

  
38
 [% IF DATA_PRESENT %]
39
 <p>
40
  <table width="100%">
41
   <tr>
42
     <th class="listheading" rowspan=2>Kontonummer</th>
43
     <th class="listheading" rowspan=2>Beschreibung</th>
44
     <th class="listheading" rowspan=2>Letzte Buchung</th>
45
     <th class="listheading" colspan=2>Er?ffnungsbilanzwerte</th>
46
     <th class="listheading" colspan=2>Summe f?r [% template_fromto %]</th>
47
     <th class="listheading" colspan=2>Summe per [% template_to %]</th>
48
     <th class="listheading" colspan=2>Saldo per [% template_to %]</th>
49
   </tr>
50
   <tr>
51
    <th class="listheading">Aktiva</th>
52
    <th class="listheading">Passiva</th>
53
    <th class="listheading">Soll</th>
54
    <th class="listheading">Haben</th>
55
    <th class="listheading">Soll</th>
56
    <th class="listheading">Haben</th>
57
    <th class="listheading">Soll</th>
58
    <th class="listheading">Haben</th>
59
  
60
   [% FOREACH row = ROWS %]
61
    [% IF row.IS_CONTROL %]
62
     [% IF row.IS_COLSPAN_DATA %]<tr><td colspan="[% row.NUM_COLUMNS %]">[% row.data %]</td></tr>[% END %]
63
     [% ELSE %]
64
     <tr class="listrow[% row.outer_idx_odd %]">
65
      [%- FOREACH col = row.COLUMNS %]
66
      <td[% IF col.align %] align="[% col.align %]"[% END %]
67
         [%- IF col.valign %] valign="[% col.valign %]"[%- END %]
68
         [%- SET tdclass = '' %]
69
         [%- IF row.BORDER_TOP %][%- SET tdclass = "$tdclass top_border" %][%- END %]
70
         [%- IF row.BORDER_BOTTOM %][%- SET tdclass = "$tdclass bottom_border" %][%- END %]
71
         [%- IF col.class %][%- SET tdclass = "$tdclass $col.class" %][%- END %]
72
         [%- IF tdclass %] class="[% tdclass %]"[%- END %]>
73
       [%- IF col.raw_data %][%- col.raw_data %][%- END %]
74
       [%- USE iterator(col.CELL_ROWS) %][%- FOREACH cell_row = iterator %]
75
        [%- IF cell_row.data != '' %]
76
         [%- IF cell_row.link %]<a href="[% cell_row.link %]">[%- END %]
77
         [%- cell_row.data %]
78
         [%- IF cell_row.link %]</a>[%- END %]
79
        [%- END %]
80
       [%- UNLESS iterator.last %]<br>[%- END %]
81
       [%- END %]
82
      </td>
83
      [%- END %]
84
     </tr>
85
    [% END %]
86
   [% END %]
87

  
88
   <tr><td colspan="[% NUM_COLUMNS %]"><hr size="3" noshade></td></tr>
89

  
90
  </table>
91
 </p>
92
 [% ELSE %]
93
  <p>Keine Daten gefunden</p>
94
 [% END %]
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff