]> wagnertech.de Git - mfinanz.git/blob - templates/webpages/is/form_footer.html
date error in mapping
[mfinanz.git] / templates / webpages / is / form_footer.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE L %][%- USE P -%]
5   <tr>
6    <td>
7     <table width="100%">
8      <tr valign="bottom">
9       <td>
10        <table>
11         <tr>
12          <th align="left">[% 'Notes (will appear on hard copy)' | $T8 %]</th>
13          <th align="left">[% 'Internal Notes' | $T8 %]</th>
14          <th align="right">[% 'Payment / Delivery Options' | $T8 %]</th>
15         </tr>
16         <tr valign="top">
17          <td>
18           [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
19          </td>
20          <td>
21           [% L.textarea_tag("intnotes", intnotes, wrap="soft", style="width: 350px; height: 150px") %]
22          </td>
23          <td>
24            <table>
25              <tr>
26                <th align="right">[% 'Payment Terms' | $T8 %]</th>
27                <td>[% L.select_tag('payment_id', payment_terms, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %]
28                  <script type='text/javascript'>$('#payment_id').change(function(){ kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate"); })</script>
29                </td>
30              </tr>
31              <tr>
32                <th align="right">[% 'Delivery Terms' | $T8 %] </th>
33                <td>
34                  [% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
35                </td>
36              </tr>
37              <tr>
38                <th align="right">[% 'direct debit' | $T8 %]</th>
39                <td>
40                  [%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %]
41                </td>
42              </tr>
43 [%- IF INSTANCE_CONF.get_create_qrbill_invoices > 0 %]
44              <tr>
45                <th align="right">[% 'QR bill without amount' | $T8 %]</th>
46                <td>
47                  [%- L.checkbox_tag('qrbill_without_amount', 'checked', qrbill_without_amount) %]
48                </td>
49              </tr>
50              <tr>
51               <th align="right">[% 'QR bill unstructured message' | $T8 %]</th>
52               <td>
53                 [%- L.input_tag('qr_unstructured_message', qr_unstructured_message) %]
54               </td>
55             </tr>
56 [%- END %]
57            </table>
58          </td>
59         </tr>
60 [%- IF id && follow_ups.size %]
61         <tr>
62           <td colspan="2">
63             [%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
64           <td>
65         </tr>
66 [%- END %]
67        </table>
68       </td>
69 [%- IF show_weight %]
70       <td>
71        <table>
72         <tr>
73          <th  align=left>[% 'Total weight' | $T8 %]</th>
74          <td>
75           [% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
76          </td>
77         </tr>
78        </table>
79       </td>
80 [%- END %]
81       <td>
82        <table>
83         <tr>
84          <th  align=left>[% 'Ertrag' | $T8 %]</th>
85          <td>
86           [% LxERP.format_amount(marge_total, 2, 0) %]
87           <input type=hidden name="marge_total" value="[% marge_total %]">
88          </td>
89         </tr>
90         <tr>
91          <th  align=left>[% 'Ertrag prozentual' | $T8 %]</th>
92          <td>
93           [% LxERP.format_amount(marge_percent, 2, 0) %] %
94           <input type=hidden name="marge_percent" value="[% marge_percent %]">
95          </td>
96         </tr>
97        </table>
98       </td>
99       <td align="right">
100   [%- IF taxaccounts %]
101        <input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
102        <input name="taxincluded" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]>
103        <b>[% 'Tax Included' | $T8 %]</b>
104        <br>
105        <br>
106   [%- END %]
107        <table>
108
109 [%- UNLESS taxincluded %]
110         <tr>
111          <th align="right">[% 'Subtotal' | $T8 %]</th>
112          <td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
113        </tr>
114 [%- END %]
115
116 [%# tax %]
117 [% FOREACH item = taxaccounts_array %]
118 [% SET description_ref = item _ '_description' %]
119 [% SET rate_ref        = item _ '_rate' %]
120 [% SET total_ref       = item _ '_total' %]
121 [% SET netto_ref       = item _ '_netto' %]
122        <tr>
123         <th align="right">[% 'Including' | $T8 %] [% $description_ref | html %]&nbsp;[% $rate_ref * 100 %]%</th>
124         <td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
125        </tr>
126   [%- IF taxincluded %]
127        <tr>
128         <th align="right">[% 'Net amount' | $T8 %]</th>
129         <td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
130        </tr>
131   [%- END %]
132 [%- END %]
133
134 [%- IF rounding %]
135         <tr>
136           <th align='right'>[% 'Rounding' | $T8 %]</th>
137           <td align='right'>[% LxERP.format_amount(rounding, 2) %]</td>
138         </tr>
139 [%- END %]
140
141         <tr>
142          <th align="right">[% 'Total' | $T8 %]</th>
143          <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
144         </tr>
145        </table>
146       </td>
147      </tr>
148     </table>
149    </td>
150   </tr>
151 [% IF is_type_normal_invoice OR  is_type_credit_note %]
152   [% PROCESS 'is/_payments.html' %]
153 [% END %]
154  </table>
155 </div>
156 [% PROCESS 'webdav/_list.html' %]
157 <div id="ui-tabs-1">
158  [% LxERP.t8('Loading...') %]
159 </div>
160 </div>
161
162 <input type="hidden" name="rowcount" value="[% rowcount %]">
163 <input type="hidden" name="callback" value="[% callback | html %]">
164 [% P.hidden_tag('draft_id', draft_id) %]
165 [% P.hidden_tag('draft_description', draft_description) %]
166 <input type="hidden" name="customer_discount" value="[% customer_discount %]">
167 <input type="hidden" name="gldate" value="[% gldate %]">
168
169 [%- IF INSTANCE_CONF.get_create_qrbill_invoices <= 0 %]
170  <input type="hidden" name="qrbill_without_amount" value="[% qrbill_without_amount %]">
171 [%- END %]
172
173 <div id="shipto_inputs" class="hidden">
174  [%- PROCESS 'common/_ship_to_dialog.html' cvars=shipto_cvars %]
175 </div>
176
177 <div id="email_inputs" style="display: none"></div>
178
179 <div id="print_options" style="display: none">
180  [% print_options %]
181 </div>
182 </form>
183 <script type='text/javascript'>
184  $(kivi.SalesPurchase.init_on_submit_checks);
185 </script>
186
187 <div id="shipto_dialog" class="hidden"></div>
188 <div id="print_dialog" class="hidden">
189  [%- PROCESS 'common/_print_dialog.html' %]
190 </div>