Bugfix: subtotal wurde nicht ans template weitergereicht.
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 12 Nov 2008 13:15:59 +0000 (13:15 +0000)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 12 Nov 2008 13:15:59 +0000 (13:15 +0000)
bin/mozilla/oe.pl
templates/webpages/oe/form_footer_de.html
templates/webpages/oe/form_footer_master.html

index 41b290a..421c76e 100644 (file)
@@ -420,7 +420,7 @@ sub form_footer {
       }
     }
 
-    $form->{invsubtotal} = $form->format_amount(\%myconfig, $form->{invsubtotal}, 2, 0);
+#    $form->{invsubtotal} = $form->format_amount(\%myconfig, $form->{invsubtotal}, 2, 0); # template does this
 
   } else {
     foreach $item (split / /, $form->{taxaccounts}) {
index 9785de1..06c0a28 100644 (file)
             <input name="taxincluded" class="checkbox" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b>Steuer im Preis inbegriffen</b><br><br>
 [%- END %]
             <table>
-              [% subtotal %]
+[%- IF NOT taxincluded %]
+              <tr>
+                <th align='right'>Zwischensumme</th>
+                <td align='right'>[% LxERP.format_amount(invsubtotal, 2) %]</td>
+              </tr>
+[%- END %]
               [% tax %]
               <tr>
                 <th align="right">Summe</th>
index e866ff8..603fc93 100644 (file)
             <input name="taxincluded" class="checkbox" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b><translate>Tax Included</translate></b><br><br>
 [%- END %]
             <table>
-              [% subtotal %]
+[%- IF NOT taxincluded %]
+              <tr>
+                <th align='right'><translate>Subtotal</translate></th>
+                <td align='right'>[% LxERP.format_amount(invsubtotal, 2) %]</td>
+              </tr>
+[%- END %]
               [% tax %]
               <tr>
                 <th align="right"><translate>Total</translate></th>