Grundstein für Gewicht in Auftrag/Lieferschein/Rechnung
[kivitendo-erp.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 Terms' | $T8 %]</th>
15         </tr>
16         <tr valign="top">
17          <td>
18           <textarea name="notes" rows="[% rows %]" cols="26">[% notes %]</textarea>
19          </td>
20          <td>
21           <textarea name="intnotes" rows="[% rows %]" cols="35">[% intnotes %]</textarea>
22          </td>
23          <td>
24             [%- INCLUDE 'generic/multibox.html'
25                  name          = 'payment_id',
26                  style         = 'width: 250px',
27                  DATA          = payment_terms,
28                  id_key        = 'id',
29                  label_key     = 'description',
30                  show_empty    = 1
31                  allow_textbox = 0 -%]
32           <script type='text/javascript'>$('#payment_id').change(function(){ if (this.value) set_duedate()})</script>
33           <br>
34           [%- L.checkbox_tag('direct_debit', 'checked', direct_debit, 'label', LxERP.t8('direct debit')) %]
35          </td>
36         </tr>
37 [%- IF id && follow_ups.size %]
38         <tr>
39           <td colspan="2">
40             [%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
41           <td>
42         </tr>
43 [%- END %]
44        </table>
45       </td>
46       <td>
47        <table>
48         <tr>
49          <th  align=left>[% 'Total weight' | $T8 %]</th>
50          <td>
51           [% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
52           <input type=hidden name="totalweight" value="[% marge_total %]">
53          </td>
54         </tr>
55        </table>
56       </td>
57       <td>
58        <table>
59         <tr>
60          <th  align=left>[% 'Ertrag' | $T8 %]</th>
61          <td>
62           [% LxERP.format_amount(marge_total, 2, 0) %]
63           <input type=hidden name="marge_total" value="[% marge_total %]">
64          </td>
65         </tr>
66         <tr>
67          <th  align=left>[% 'Ertrag prozentual' | $T8 %]</th>
68          <td>
69           [% LxERP.format_amount(marge_percent, 2, 0) %] %
70           <input type=hidden name="marge_percent" value="[% marge_percent %]">
71          </td>
72         </tr>
73        </table>
74       </td>
75       <td align="right">
76   [%- IF taxaccounts %]
77        <input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
78        <input name="taxincluded" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]>
79        <b>[% 'Tax Included' | $T8 %]</b>
80        <br>
81        <br>
82   [%- END %]
83        <table>
84
85 [%- UNLESS taxincluded %]
86         <tr>
87          <th align="right">[% 'Subtotal' | $T8 %]</th>
88          <td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
89        </tr>
90 [%- END %]
91
92 [%# tax %]
93 [% FOREACH item = taxaccounts_array %]
94 [% SET description_ref = item _ '_description' %]
95 [% SET rate_ref        = item _ '_rate' %]
96 [% SET total_ref       = item _ '_total' %]
97 [% SET netto_ref       = item _ '_netto' %]
98        <tr>
99         <th align="right">[% 'Including' | $T8 %] [% $description_ref | html %]&nbsp;[% $rate_ref * 100 %]%</th>
100         <td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
101        </tr>
102   [%- IF taxincluded %]
103        <tr>
104         <th align="right">[% 'Net amount' | $T8 %]</th>
105         <td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
106        </tr>
107   [%- END %]
108 [%- END %]
109
110         <tr>
111          <th align="right">[% 'Total' | $T8 %]</th>
112          <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
113         </tr>
114        </table>
115       </td>
116      </tr>
117     </table>
118    </td>
119   </tr>
120
121 [% PROCESS 'is/_payments.html' %]
122  </table>
123 </div>
124 [% PROCESS 'webdav/_list.html' %]
125 <div id="ui-tabs-1">
126  [% LxERP.t8('Loading...') %]
127 </div>
128 </div>
129
130 <hr size="3" noshade>
131
132 <p>[% print_options %]</p>
133
134   [% IF id %]
135
136     <input class="submit" type="submit" accesskey="u" name="action" id="update_button" value="[% 'Update' | $T8 %]">
137     <input class="submit" type="submit" name="action" value="[% 'Ship to' | $T8 %]">
138     <input class="submit" type="submit" name="action" value="[% 'Print' | $T8 %]">
139     <input class="submit" type="submit" name="action" value="[% 'E-mail' | $T8 %]">
140 [% IF  show_storno %]
141     <input class="submit" type="submit" name="action" value="[% 'Storno' | $T8 %]">
142 [% END %]
143     <input class="submit" type="submit" name="action" value="[% 'Post Payment' | $T8 %]">
144     <input class="submit" type="submit" name="action" value="[% 'Use As New' | $T8 %]">
145
146 [% IF id && !is_type_credit_note %]
147     <input class="submit" type="submit" name="action" value="[% 'Credit Note' | $T8 %]">
148 [% END %]
149 [% IF show_delete %]
150     <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
151     <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
152 [% END %]
153     <input class="submit" type="submit" name="action" value="[% 'Order' | $T8 %]">
154     <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
155
156  [% ELSE # no id %]
157    [% UNLESS locked %]
158       <input class="submit" type="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
159       <input class="submit" type="submit" name="action" value="[% 'Ship to' | $T8 %]">
160       <input class="submit" type="submit" name="action" value="[% 'Preview' | $T8 %]">
161       <input class="submit" type="submit" name="action" value="[% 'E-mail' | $T8 %]">
162       <input class="submit" type="submit" name="action" value="[% 'Print and Post' | $T8 %]">
163       <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
164       <input class="submit" type="submit" name="action" value="[% 'Save Draft' | $T8 %]">
165    [%- END %]
166  [% END # id %]
167
168   [% IF id %]
169       [%#- button for saving history %]
170       <input type="button" class="submit" onclick="set_history_window([% id | html %]);" name="history" id="history" value="[% 'history' | $T8 %]">
171       [% IF INSTANCE_CONF.get_is_show_mark_as_paid %]
172           <input type="submit" class="submit" name="action" value="[% 'mark as paid' | $T8 %]">
173       [% END %]
174   [% END %]
175
176 <input type="hidden" name="rowcount" value="[% rowcount %]">
177 <input type="hidden" name="callback" value="[% callback | html %]">
178 <input type="hidden" name="draft_id" value="[% draft_id %]">
179 <input type="hidden" name="draft_description" value="[% draft_description %]">
180 <input type="hidden" name="customer_discount" value="[% customer_discount %]">
181 <input type="hidden" name="gldate" value="[% gldate %]">
182 </form>