my $data = RP->balance_sheet(\%::myconfig, $::form);
- $::form->{asofdate} ||= $::form->current_date;
- $::form->{period} = $::locale->date(\%::myconfig, $::form->current_date, 1);
+ $::form->{asofdate} ||= $::form->current_date;
+ $::form->{report_title} = $::locale->text('Balance Sheet');
+ $::form->{report_date} ||= $::form->current_date;
($::form->{department}) = split /--/, $::form->{department};
$::form->{this_period} = $::locale->date(\%::myconfig, $::form->{asofdate}, 0);
$::form->{last_period} = $::locale->date(\%::myconfig, $::form->{compareasofdate}, 0);
+# balance sheet isn't read from print templates anymore,
+# instead use template in rp
# $::form->{IN} = "balance_sheet.html";
$::form->header;
'Background jobs and task server' => 'Hintergrund-Jobs und Task-Server',
'Balance' => 'Bilanz',
'Balance Sheet' => 'Bilanz',
+ 'Balance sheet date' => 'Bilanzstichtag',
'Balancing' => 'Bilanzierung',
'Bank' => 'Bank',
'Bank Code' => 'BLZ',
'Name and Street' => 'Name und Straße',
'National Expenses' => 'Aufwand Inland',
'National Revenues' => 'Erlöse Inland',
+ 'Net Income Statement' => 'Einnahmenüberschußrechnung',
'Net amount' => 'Nettobetrag',
'Net amount (for verification)' => 'Nettobetrag (zur Überprüfung)',
'Netto Terms' => 'Zahlungsziel netto',
'Report about warehouse contents' => 'Lagerbestand anzeigen',
'Report about warehouse transactions' => 'Lagerbuchungen anzeigen',
'Report and misc. Preferences' => 'Sonstige Einstellungen',
+ 'Report date' => 'Berichtsdatum',
'Report for' => 'Bericht für',
'Reports' => 'Berichte',
'Representative' => 'Vertreter',
+++ /dev/null
-
-<body bgcolor="#ffffff">
-
-<h2 align="center">
-<%company%>
-<br><%address%>
-
-<p>BILANZ
-<br><%period%>
-</h2>
-
-<table border="0">
-<tr>
- <th align="left" width="400" colspan="2">AKTIVA<br><hr align="left" width="250" size="5" noshade></th>
- <th><%this_period%></th>
- <th><%last_period%></th>
-</tr>
-
-<%foreach asset_account%>
-<tr>
- <td> </td>
- <td><%asset_account%></td>
- <td align="right"><%asset_this_period%></td>
- <td align="right"><%asset_last_period%></td>
-</tr>
-<%end asset_account%>
-
-<tr>
- <td colspan="2"> </td>
- <td><hr noshade size="1"></td>
- <td><hr noshade size="1"></td>
-</tr>
-
-<tr valign="top">
- <th align="left" colspan="2">TOTAL</th>
- <td align="right"><%total_assets_this_period%><hr noshade size="2"></td>
- <td align="right"><%total_assets_last_period%><hr noshade size="2"></td>
-</tr>
-
-<tr>
- <th align="left" colspan="4">PASSIVA<b><hr align="left" width="250" size="5" noshade></th>
-</tr>
-
-<%foreach liability_account%>
-<tr>
- <td></td>
- <td><%liability_account%></td>
- <td align="right"><%liability_this_period%></td>
- <td align="right"><%liability_last_period%></td>
-</tr>
-<%end liability_account%>
-
-<tr>
- <td colspan="2"> </td>
- <td><hr noshade size="1"></td>
- <td><hr noshade size="1"></td>
-</tr>
-
-<tr valign="top">
- <td></td>
- <th align="left">TOTAL</th>
- <td align="right"><%total_liabilities_this_period%><br><hr noshade size="2"</td>
- <td align="right"><%total_liabilities_last_period%><br><hr noshade size="2"</td>
-</tr>
-
-<tr>
- <th align="left" colspan="4">EIGENTUM<br><hr align="left" width="250" size="5" noshade></th>
-</tr>
-
-<%foreach equity_account%>
-<tr>
- <td></td>
- <td><%equity_account%></td>
- <td align="right"><%equity_this_period%></td>
- <td align="right"><%equity_last_period%></td>
-</tr>
-<%end equity_account%>
-
-<tr>
- <td colspan="2"> </td>
- <td><hr noshade size="1"></td>
- <td><hr noshade size="1"></td>
-</tr>
-
-<tr valign="top">
- <td></td>
- <th align="left">TOTAL</th>
- <td align="right"><%total_equity_this_period%><br><hr noshade size="2"</td>
- <td align="right"><%total_equity_last_period%><br><hr noshade size="2"</td>
-</tr>
-
-<tr valign="top">
- <th align="left" colspan="2">TOTAL PASSIVA & EIGENTUM</th>
- <td align="right"><%total_this_period%><br><hr noshade size="2"></td>
- <td align="right"><%total_last_period%><br><hr noshade size="2"></td>
-</tr>
-</table>
-
-
-
+++ /dev/null
-
-<body bgcolor="#ffffff">
-
-<h2 align="center">
-<%company%>
-<br><%address%>
-
-<p>BILANZ
-<br><%period%>
-</h2>
-
-<table border="0">
-<tr>
- <th align="left" width="400" colspan="2">AKTIVA<br><hr align="left" width="250" size="5" noshade></th>
- <th><%this_period%></th>
- <th><%last_period%></th>
-</tr>
-
-<%foreach asset_account%>
-<tr>
- <td> </td>
- <td><%asset_account%></td>
- <td align="right"><%asset_this_period%></td>
- <td align="right"><%asset_last_period%></td>
-</tr>
-<%end asset_account%>
-
-<tr>
- <td colspan="2"> </td>
- <td><hr noshade size="1"></td>
- <td><hr noshade size="1"></td>
-</tr>
-
-<tr valign="top">
- <th align="left" colspan="2">TOTAL</th>
- <td align="right"><%total_assets_this_period%><hr noshade size="2"></td>
- <td align="right"><%total_assets_last_period%><hr noshade size="2"></td>
-</tr>
-
-<tr>
- <th align="left" colspan="4">PASSIVA<b><hr align="left" width="250" size="5" noshade></th>
-</tr>
-
-<%foreach liability_account%>
-<tr>
- <td></td>
- <td><%liability_account%></td>
- <td align="right"><%liability_this_period%></td>
- <td align="right"><%liability_last_period%></td>
-</tr>
-<%end liability_account%>
-
-<tr>
- <td colspan="2"> </td>
- <td><hr noshade size="1"></td>
- <td><hr noshade size="1"></td>
-</tr>
-
-<tr valign="top">
- <td></td>
- <th align="left">TOTAL</th>
- <td align="right"><%total_liabilities_this_period%><br><hr noshade size="2"</td>
- <td align="right"><%total_liabilities_last_period%><br><hr noshade size="2"</td>
-</tr>
-
-<tr>
- <th align="left" colspan="4">EIGENTUM<br><hr align="left" width="250" size="5" noshade></th>
-</tr>
-
-<%foreach equity_account%>
-<tr>
- <td></td>
- <td><%equity_account%></td>
- <td align="right"><%equity_this_period%></td>
- <td align="right"><%equity_last_period%></td>
-</tr>
-<%end equity_account%>
-
-<tr>
- <td colspan="2"> </td>
- <td><hr noshade size="1"></td>
- <td><hr noshade size="1"></td>
-</tr>
-
-<tr valign="top">
- <td></td>
- <th align="left">TOTAL</th>
- <td align="right"><%total_equity_this_period%><br><hr noshade size="2"</td>
- <td align="right"><%total_equity_last_period%><br><hr noshade size="2"</td>
-</tr>
-
-<tr valign="top">
- <th align="left" colspan="2">TOTAL PASSIVA & EIGENTUM</th>
- <td align="right"><%total_this_period%><br><hr noshade size="2"></td>
- <td align="right"><%total_last_period%><br><hr noshade size="2"></td>
-</tr>
-</table>
-
-
-
+++ /dev/null
-
-<body bgcolor=ffffff>
-
-<h2 align=center>
-<%company%>
-<br><%address%>
-
-<p>BALANCE SHEET
-<br><%period%>
-</h2>
-
-<table border=0>
-<tr>
- <th align=left width=400 colspan=2>ASSETS<br><hr align=left width=250 size=5 noshade></th>
- <th><%this_period%></th>
- <th><%last_period%></th>
-</tr>
-
-<%foreach asset_account%>
-<tr>
- <td> </td>
- <td><%asset_account%></td>
- <td align=right><%asset_this_period%></td>
- <td align=right><%asset_last_period%></td>
-</tr>
-<%end asset_account%>
-
-<tr>
- <td colspan=2> </td>
- <td><hr noshade size=1></td>
- <td><hr noshade size=1></td>
-</tr>
-
-<tr valign=top>
- <th align=left colspan=2>TOTAL ASSETS</th>
- <td align=right><%total_assets_this_period%><hr noshade size=2></td>
- <td align=right><%total_assets_last_period%><hr noshade size=2></td>
-</tr>
-
-<tr>
- <th align=left colspan=4>LIABILITIES<b><hr align=left width=250 size=5 noshade></th>
-</tr>
-
-<%foreach liability_account%>
-<tr>
- <td></td>
- <td><%liability_account%></td>
- <td align=right><%liability_this_period%></td>
- <td align=right><%liability_last_period%></td>
-</tr>
-<%end liability_account%>
-
-<tr>
- <td colspan=2> </td>
- <td><hr noshade size=1></td>
- <td><hr noshade size=1></td>
-</tr>
-
-<tr valign=top>
- <td></td>
- <th align=left>Total Liabilities</th>
- <td align=right><%total_liabilities_this_period%><br><hr noshade size=2</td>
- <td align=right><%total_liabilities_last_period%><br><hr noshade size=2</td>
-</tr>
-
-<tr>
- <th align=left colspan=4>SHAREHOLDER'S EQUITY<br><hr align=left width=250 size=5 noshade></th>
-</tr>
-
-<%foreach equity_account%>
-<tr>
- <td></td>
- <td><%equity_account%></td>
- <td align=right><%equity_this_period%></td>
- <td align=right><%equity_last_period%></td>
-</tr>
-<%end equity_account%>
-
-<tr>
- <td colspan=2> </td>
- <td><hr noshade size=1></td>
- <td><hr noshade size=1></td>
-</tr>
-
-<tr valign=top>
- <td></td>
- <th align=left>Total Equity</th>
- <td align=right><%total_equity_this_period%><br><hr noshade size=2</td>
- <td align=right><%total_equity_last_period%><br><hr noshade size=2</td>
-</tr>
-
-<tr valign=top>
- <th align=left colspan=2>TOTAL LIABILITIES & EQUITY</th>
- <td align=right><%total_this_period%><br><hr noshade size=2></td>
- <td align=right><%total_last_period%><br><hr noshade size=2></td>
-</tr>
-</table>
-
-
-
[% company %]
<br>[% address %]
<p>[% 'BALANCE SHEET' | $T8 %]
-<br>[% period %]
+<br>[% 'Balance sheet date' | $T8 %]: [% this_period %]
+<br>[% 'Report date' | $T8 %]: [% report_date %]
</h2>
<table border="0">
<tr>
<th align="left" width="400" colspan="2">[% 'ASSETS' | $T8 %]<br><hr align="left" width="250" size="5" noshade></th>
- <th>[% this_period %]</th>
- <th>[% last_period %]</th>
+ <th><b>[% this_period %]<b></th>
+ <th><b>[% last_period %]<b></th>
</tr>
[% FOREACH row = A %]