From: Sven Schöling Date: Mon, 6 Apr 2009 15:19:11 +0000 (+0000) Subject: Bilanzfunktion: X-Git-Tag: release-2.6.0beta2~117 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fdee0091f00479361820f0f98fe896a14e605b18;p=kivitendo-erp.git Bilanzfunktion: - Kontonummern - korrekte Formatierungen --- diff --git a/SL/RP.pm b/SL/RP.pm index 87dda3df9..d9902050b 100644 --- a/SL/RP.pm +++ b/SL/RP.pm @@ -66,9 +66,6 @@ sub balance_sheet { $form->{period} = $form->{this_period} = conv_dateq($form->{asofdate}); } - $form->{decimalplaces} *= 1; - my $dec = $form->{decimalplaces}; - get_accounts($dbh, $last_period, "", $form->{asofdate}, $form, \@categories); # if there are any compare dates diff --git a/templates/webpages/rp/balance_sheet_de.html b/templates/webpages/rp/balance_sheet_de.html index 8ee0dca29..7dd49e064 100644 --- a/templates/webpages/rp/balance_sheet_de.html +++ b/templates/webpages/rp/balance_sheet_de.html @@ -19,9 +19,11 @@ [% FOREACH row = A %] - [% row.description %] - [% row.this %] - [% row.last %] + [% row.accno _ ' - ' IF l_accno %][% row.description %] + [% LxERP.format_amount(row.this,2) %] + [%- IF last_period %] + [% LxERP.format_amount(row.last,2) %] + [%- END %] [% END %] @@ -34,8 +36,10 @@ TOTAL - [% total.A.this %]
- [% total.A.last %]
+ [% LxERP.format_amount(total.A.this,2) %]
+ [%- IF last_period %] + [% LxERP.format_amount(total.A.last,2) %]
+ [%- END %] [% END %] @@ -46,9 +50,11 @@ [% FOREACH row = L %] - [% row.description %] - [% row.this %] - [% row.last %] + [% row.accno _ ' - ' IF l_accno %][% row.description %] + [% LxERP.format_amount(row.this,2) %] + [%- IF last_period %] + [% LxERP.format_amount(row.last,2) %] + [%- END %] [% END %] @@ -62,8 +68,10 @@ TOTAL - [% total.L.this %]

- [% total.L.last %]

+ [% LxERP.format_amount(total.L.this,2) %]

+ [%- IF last_period %] + [% LxERP.format_amount(total.L.last,2) %]

+ [%- END %] [% END %] @@ -74,9 +82,11 @@ [% FOREACH row = Q %] - [% row.description %] - [% row.this %] - [% row.last %] + [% row.accno _ ' - ' IF l_accno %][% row.description %] + [% LxERP.format_amount(row.this,2) %] + [%- IF last_period %] + [% LxERP.format_amount(row.last,2) %] + [%- END %] [% END %] @@ -90,14 +100,18 @@ TOTAL - [% total.Q.this %]

- [% total.Q.last %]

+ [% LxERP.format_amount(total.Q.this,2) %]

+ [%- IF last_period %] + [% LxERP.format_amount(total.Q.last,2) %]

+ [%- END %] [% END %] TOTAL PASSIVA & EIGENTUM - [% total.this %]

- [% total.last %]

+ [% LxERP.format_amount(total.this,2) %]

+ [%- IF last_period %] + [% LxERP.format_amount(total.last,2) %]

+ [%- END %] diff --git a/templates/webpages/rp/balance_sheet_master.html b/templates/webpages/rp/balance_sheet_master.html index a89b01d16..5890987d1 100644 --- a/templates/webpages/rp/balance_sheet_master.html +++ b/templates/webpages/rp/balance_sheet_master.html @@ -19,9 +19,11 @@ [% FOREACH row = A %] - [% row.description %] - [% row.this %] - [% row.last %] + [% row.accno _ ' - ' IF l_accno %][% row.description %] + [% LxERP.format_amount(row.this,2) %] + [%- IF last_period %] + [% LxERP.format_amount(row.last,2) %] + [%- END %] [% END %] @@ -34,8 +36,10 @@ TOTAL - [% total.A.this %]
- [% total.A.last %]
+ [% LxERP.format_amount(total.A.this,2) %]
+ [%- IF last_period %] + [% LxERP.format_amount(total.A.last,2) %]
+ [%- END %] [% END %] @@ -46,9 +50,11 @@ [% FOREACH row = L %] - [% row.description %] - [% row.this %] - [% row.last %] + [% row.accno _ ' - ' IF l_accno %][% row.description %] + [% LxERP.format_amount(row.this,2) %] + [%- IF last_period %] + [% LxERP.format_amount(row.last,2) %] + [%- END %] [% END %] @@ -62,8 +68,10 @@ TOTAL - [% total.L.this %]

- [% total.L.last %]

+ [% LxERP.format_amount(total.L.this,2) %]

+ [%- IF last_period %] + [% LxERP.format_amount(total.L.last,2) %]

+ [%- END %] [% END %] @@ -75,8 +83,10 @@ [% row.description %] - [% row.this %] - [% row.last %] + [% LxERP.format_amount(row.this,2) %] + [%- IF last_period %] + [% LxERP.format_amount(row.last,2) %] + [%- END %] [% END %] @@ -90,14 +100,18 @@ TOTAL - [% total.Q.this %]

- [% total.Q.last %]

+ [% LxERP.format_amount(total.Q.this,2) %]

+ [%- IF last_period %] + [% LxERP.format_amount(total.Q.last,2) %]

+ [%- END %] [% END %] TOTAL LIABILITIES & EQUITY - [% total.this %]

- [% total.last %]

+ [% LxERP.format_amount(total.this,2) %]

+ [%- IF last_period %] + [% LxERP.format_amount(total.last,2) %]

+ [%- END %]