From cb0dfa9a11519db929421ddc704a1f25b6a50668 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 27 Oct 2009 13:22:13 +0100 Subject: [PATCH] is form_footer: Fixes, Hooks und hiddens. --- bin/mozilla/is.pl | 6 --- templates/webpages/is/_payments_de.html | 47 +++++++++++---------- templates/webpages/is/_payments_master.html | 47 +++++++++++---------- 3 files changed, 50 insertions(+), 50 deletions(-) diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 5dc3b1a1f..5708ac407 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -437,14 +437,8 @@ sub form_footer { # format amounts $totalpaid += $form->{"paid_$i"}; - if ($form->{"paid_$i"}) { - $form->{"paid_$i"} = $form->format_amount(\%myconfig, $form->{"paid_$i"}, 2); - } - $form->{"exchangerate_$i"} = $form->format_amount(\%myconfig, $form->{"exchangerate_$i"}); - $form->{"exchangerate_$i"} ||= ""; } - $form->{print_options} = print_options(inline => 1); print $form->parse_html_template('is/form_footer'); diff --git a/templates/webpages/is/_payments_de.html b/templates/webpages/is/_payments_de.html index 048569fd8..0c5b764dd 100644 --- a/templates/webpages/is/_payments_de.html +++ b/templates/webpages/is/_payments_de.html @@ -23,41 +23,44 @@ -[% paidaccounts %] - [% FOREACH i = paid_indices %] -[% SET row = {} %] - [% SET row.datepaid = 'datepaid_' _ i %] - [% SET row.source = 'source_' _ i %] - [% SET row.memo = 'memo_' _ i %] - [% SET row.paid = 'paid_' _ i %] + [% SET datepaid = 'datepaid_' _ i %] + [% SET source = 'source_' _ i %] + [% SET memo = 'memo_' _ i %] + [% SET paid = 'paid_' _ i %] + [% SET selectAR_paid_ref = 'selectAR_paid_' _ i %] - + - |; - |; - |; - + + + [% IF show_exchangerate %] + [% SET row.forex = 'forex_' _ i %] [% SET row.exchangerate = 'exchangerate_' _ i %] [% IF row.forex %] - - [% row.exchangerate | html %] + + [% LxERP.format_amount(row.exchangerate, 2) %] [% ELSE %] - + [% END %] - ; -[% END %] + ; - |; +[% END %] + [%# push(@triggers, "datepaid_$i", "BL", "trigger_datepaid_$i"); %] + [% END # foreach %] @@ -74,11 +77,11 @@ [% LxERP.format_amount(paid_missing, 2) | html %] - - - + + + - + diff --git a/templates/webpages/is/_payments_master.html b/templates/webpages/is/_payments_master.html index 0549e2805..ff60265cc 100644 --- a/templates/webpages/is/_payments_master.html +++ b/templates/webpages/is/_payments_master.html @@ -23,41 +23,44 @@ -[% paidaccounts %] - [% FOREACH i = paid_indices %] -[% SET row = {} %] - [% SET row.datepaid = 'datepaid_' _ i %] - [% SET row.source = 'source_' _ i %] - [% SET row.memo = 'memo_' _ i %] - [% SET row.paid = 'paid_' _ i %] + [% SET datepaid = 'datepaid_' _ i %] + [% SET source = 'source_' _ i %] + [% SET memo = 'memo_' _ i %] + [% SET paid = 'paid_' _ i %] + [% SET selectAR_paid_ref = 'selectAR_paid_' _ i %] - + - |; - |; - |; - + + + [% IF show_exchangerate %] + [% SET row.forex = 'forex_' _ i %] [% SET row.exchangerate = 'exchangerate_' _ i %] [% IF row.forex %] - - [% row.exchangerate | html %] + + [% LxERP.format_amount(row.exchangerate, 2) %] [% ELSE %] - + [% END %] - ; -[% END %] + ; - |; +[% END %] + [%# push(@triggers, "datepaid_$i", "BL", "trigger_datepaid_$i"); %] + [% END # foreach %] @@ -74,11 +77,11 @@ [% LxERP.format_amount(paid_missing, 2) | html %] - - - + + + - + -- 2.20.1