]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/is/form_footer_master.html
form_footer 2. Version
[mfinanz.git] / templates / webpages / is / form_footer_master.html
index cc1810885100c7881acba34962384da8f0122c46..b7548d7ea0fb0eb0988fd1ca71a6b851a910a22f 100644 (file)
   [%- END %]
        <table>
 
-        $subtotal
+[%#- subtotal %]
+[%- UNLESS taxincluded %]
+        <tr>
+         <th align="right"><translate>Subtotal</translate></th>
+         <td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
+       </tr>
+[%- END %]
 
 [%# tax %]
 [% FOREACH item = taxaccounts_array %]
-[% SET description_ref = item _ 'description' %]
-[% SET rate_ref        = item _ 'rate' %]
-[% SET total_ref       = item _ 'total' %]
-[% SET netto_ref       = item _ 'netto' %]
+[% SET description_ref = item _ '_description' %]
+[% SET rate_ref        = item _ '_rate' %]
+[% SET total_ref       = item _ '_total' %]
+[% SET netto_ref       = item _ '_netto' %]
        <tr>
-        <th align="right">Enthaltene [% $description_ref %]&nbsp;[% $rate_ref * 100 %]%</th>
-        <td align="right">[% $total_ref %]</td>
+        <th align="right">Enthaltene [% $description_ref | html %]&nbsp;[% $rate_ref * 100 %]%</th>
+        <td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
        </tr>
+  [%- IF taxincluded %]
        <tr>
         <th align="right">Nettobetrag</th>
-        <td align="right">[% $netto_ref %]</td>
+        <td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
        </tr>
+  [%- END %]
 [%- END %]
 
         <tr>
@@ -87,6 +95,7 @@
    </td>
   </tr>
 
+[%#--------------------------- WEB DAV BLOCK %]
 [%- IF webdav %]
   <tr>
    <td><hr size="3" noshade></td>
    </table>
   </tr>
 [% END %]
+[%#--------------------------- WEB DAV BLOCK %]
 
 
-  <tr>
-   <td>
-    <table width="100%">
-     <tr class="listheading">
-[% IF is_credit_note %]
-      <th colspan="6" class="listheading"><translate>Payments</translate></th>
-[% ELSE %]
-      <th colspan="6" class="listheading"><translate>Incoming Payments</translate></th>
-[%- END %]
-     </tr>
-
+[% PROCESS 'is/_payments_<translate>master</translate>.html' %]
 
-[%# INCLUDE _payments %]
 
 
-    </td>
-  </tr>
   <tr>
     <td><hr size="3" noshade></td>
   </tr>
   <tr>
     <td>
-  [% print_options %]
+[% print_options %]
     </td>
   </tr>
-</table>
+ </table>
+
+
 
   [% IF id %]
 
     <input class="submit" type="submit" name="action" value="<translate>Delete</translate>">
 [% END %]
 
-  [%- IF invdate > closedto %]
+  [%- UNLESS locked %]
        <input class="submit" type="submit" name="action" value="<translate>Order</translate>">
   [%- END %]
 
     <input type="button" class="submit" onclick="follow_up_window()" value="<translate>Follow-Up</translate>">
 
  [% ELSE # no id %]
-   [% IF invdate > closedto %]
+   [% UNLESS locked %]
       <input class="submit" type="submit" name="action" id="update_button" value="<translate>Update</translate>">
       <input class="submit" type="submit" name="action" value="<translate>Ship to</translate>">
       <input class="submit" type="submit" name="action" value="<translate>Preview</translate>">