Revision 5c2e7eeb
Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt
templates/webpages/is/_payments.html | ||
---|---|---|
1 |
<tr> |
|
2 |
<td> |
|
3 |
<table width="100%"> |
|
4 |
<tr class="listheading"> |
|
5 |
[% IF is_type_credit_note %] |
|
6 |
<th colspan="6" class="listheading">[%- 'Payments' | $T8 %]</th> |
|
7 |
[% ELSE %] |
|
8 |
<th colspan="6" class="listheading">[%- 'Incoming Payments' | $T8 %]</th> |
|
9 |
[%- END %] |
|
10 |
</tr> |
|
11 |
|
|
12 |
|
|
13 |
<tr> |
|
14 |
<th>[%- 'Date' | $T8 %]</th> |
|
15 |
<th>[%- 'Source' | $T8 %]</th> |
|
16 |
<th>[%- 'Memo' | $T8 %]</th> |
|
17 |
<th>[%- 'Amount' | $T8 %]</th> |
|
18 |
<th></th> |
|
19 |
[% IF show_exchangerate %] |
|
20 |
<th>[%- 'Exch' | $T8 %]</th> |
|
21 |
[% END %] |
|
22 |
<th>[%- 'Account' | $T8 %]</th> |
|
23 |
</tr> |
|
24 |
|
|
25 |
|
|
26 |
[% FOREACH i = paid_indices %] |
|
27 |
[% SET changeable = 'changeable_' _ i %] |
|
28 |
[% SET acc_trans_id = 'acc_trans_id_' _ i %] |
|
29 |
[% SET p_gldate = 'gldate_' _ i %] |
|
30 |
[% SET datepaid = 'datepaid_' _ i %] |
|
31 |
[% SET source = 'source_' _ i %] |
|
32 |
[% SET memo = 'memo_' _ i %] |
|
33 |
[% SET paid = 'paid_' _ i %] |
|
34 |
[% SET AR_paid = 'AR_paid_' _ i %] |
|
35 |
[% SET selectAR_paid_ref = 'selectAR_paid_' _ i %] |
|
36 |
<tr style='display:none'> |
|
37 |
<td> |
|
38 |
<input type=hidden name="acc_trans_id_[% i %]" value="[% $acc_trans_id %]"> |
|
39 |
<input type=hidden name="gldate_[% i %]" value="[% $p_gldate %]"> |
|
40 |
</td> |
|
41 |
</tr> |
|
42 |
|
|
43 |
<tr> |
|
44 |
<td align="center"> |
|
45 |
[% IF $changeable %] |
|
46 |
[% IF $datepaid %] |
|
47 |
[% L.date_tag('datepaid_'_ i, $datepaid) %] |
|
48 |
[% ELSE %] |
|
49 |
[% L.date_tag('datepaid_'_ i, today) %] |
|
50 |
[% END %] |
|
51 |
[% ELSE %] |
|
52 |
<input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]"> [% $datepaid %] |
|
53 |
[% END %] |
|
54 |
</td> |
|
55 |
|
|
56 |
<td align=center> |
|
57 |
[% IF $changeable %] |
|
58 |
<input name="source_[% i %]" size="11" value="[% $source %]"> |
|
59 |
[% ELSE %] |
|
60 |
<input type="hidden" name="source_[% i %]" value="[% $source %]">[% $source %] |
|
61 |
[% END %] |
|
62 |
</td> |
|
63 |
<td align="center"> |
|
64 |
[% IF $changeable %] |
|
65 |
<input name="memo_[% i %]" size="11" value="[% $memo %]"> |
|
66 |
[% ELSE %] |
|
67 |
<input type="hidden" name="memo_[% i %]" value="[% $memo %]">[% $memo %] |
|
68 |
[% END %] |
|
69 |
</td> |
|
70 |
<td align="center"> |
|
71 |
[% IF $changeable %] |
|
72 |
<input name="paid_[% i %]" size="11" data-validate="number" class="numeric" value="[% LxERP.format_amount($paid, 2, 1) %]"> |
|
73 |
[% ELSE %] |
|
74 |
<input type="hidden" name="paid_[% i %]" value="[% LxERP.format_amount($paid, 2, 1) %]"> |
|
75 |
[% LxERP.format_amount($paid, 2, 1) %] |
|
76 |
[% END %] |
|
77 |
</td> |
|
78 |
<td> |
|
79 |
[% IF $changeable && loop.last && paid_missing > 0 %] |
|
80 |
<input type='button' id='is_set_to_paid_missing' value='[% 'Set to paid missing' | $T8 %]'> |
|
81 |
[% END %] |
|
82 |
</td> |
|
83 |
|
|
84 |
[% IF show_exchangerate %] |
|
85 |
<td align="center"> |
|
86 |
[% SET forex = 'forex_' _ i %] |
|
87 |
[% SET exchangerate = 'exchangerate_' _ i %] |
|
88 |
[% IF $forex %] |
|
89 |
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5) %]"> |
|
90 |
[% LxERP.format_amount($forex, 5) %] |
|
91 |
[% ELSE %] |
|
92 |
[% IF $changeable %] |
|
93 |
<input name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 5, 1) %]"> |
|
94 |
[% ELSE %] |
|
95 |
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5, 1) %]"> |
|
96 |
[% LxERP.format_amount($exchangerate, 5, 1) %] |
|
97 |
[% END %] |
|
98 |
[% END %] |
|
99 |
<input type="hidden" name="forex_[% i %]" value="[% $forex %]"> |
|
100 |
</td> |
|
101 |
[% END %] |
|
102 |
|
|
103 |
<td align="center"> |
|
104 |
[% IF $changeable %] |
|
105 |
<select name="AR_paid_[% i %]">[% $selectAR_paid_ref %]</select> |
|
106 |
[% ELSE %] |
|
107 |
<input type="hidden" name="AR_paid_[% i %]" value="[% $AR_paid %]">[% $AR_paid %] |
|
108 |
[% END %] |
|
109 |
</td> |
|
110 |
|
|
111 |
</tr> |
|
112 |
[% END # foreach %] |
|
113 | 1 |
[% USE LxERP %] |
114 | 2 |
[% USE T8 %] |
115 | 3 |
[% USE L %] |
116 | 4 |
|
5 |
<table class="tbl-list"> |
|
6 |
<caption> |
|
7 |
[% IF is_type_credit_note %] |
|
8 |
[% 'Payments' | $T8 %] |
|
9 |
[% ELSE %] |
|
10 |
[% 'Incoming Payments' | $T8 %] |
|
11 |
[% END %] |
|
12 |
</caption> |
|
13 |
<thead> |
|
14 |
<tr> |
|
15 |
<th>[% 'Date' | $T8 %]</th> |
|
16 |
<th>[% 'Source' | $T8 %]</th> |
|
17 |
<th>[% 'Memo' | $T8 %]</th> |
|
18 |
<th>[% 'Amount' | $T8 %]</th> |
|
19 |
<th></th> |
|
20 |
[% IF show_exchangerate %] |
|
21 |
<th>[% 'Exch' | $T8 %]</th> |
|
22 |
[% END %] |
|
23 |
<th>[% 'Account' | $T8 %]</th> |
|
24 |
</tr> |
|
25 |
</thead> |
|
26 |
<tbody> |
|
27 |
[% FOREACH i = paid_indices %] |
|
28 |
[% SET changeable = 'changeable_' _ i %] |
|
29 |
[% SET acc_trans_id = 'acc_trans_id_' _ i %] |
|
30 |
[% SET p_gldate = 'gldate_' _ i %] |
|
31 |
[% SET datepaid = 'datepaid_' _ i %] |
|
32 |
[% SET source = 'source_' _ i %] |
|
33 |
[% SET memo = 'memo_' _ i %] |
|
34 |
[% SET paid = 'paid_' _ i %] |
|
35 |
[% SET AR_paid = 'AR_paid_' _ i %] |
|
36 |
[% SET selectAR_paid_ref = 'selectAR_paid_' _ i %] |
|
37 |
<!-- PENDENT: anders lösen --> |
|
38 |
<tr style='display:none'> |
|
39 |
<td> |
|
40 |
<input type=hidden name="acc_trans_id_[% i %]" value="[% $acc_trans_id %]"> |
|
41 |
<input type=hidden name="gldate_[% i %]" value="[% $p_gldate %]"> |
|
42 |
</td> |
|
43 |
</tr> |
|
44 |
<tr> |
|
45 |
<td> |
|
46 |
[% IF $changeable %] |
|
47 |
[% IF $datepaid %] |
|
48 |
[% L.date_tag('datepaid_'_ i, $datepaid) %] |
|
49 |
[% ELSE %] |
|
50 |
[% L.date_tag('datepaid_'_ i, today) %] |
|
51 |
[% END %] |
|
52 |
[% ELSE %] |
|
53 |
<input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]"> [% $datepaid %] |
|
54 |
[% END %] |
|
55 |
</td> |
|
56 |
<td> |
|
57 |
[% IF $changeable %] |
|
58 |
<input type="text" name="source_[% i %]" size="11" value="[% $source %]"> |
|
59 |
[% ELSE %] |
|
60 |
<input type="hidden" name="source_[% i %]" value="[% $source %]">[% $source %] |
|
61 |
[% END %] |
|
62 |
</td> |
|
63 |
<td> |
|
64 |
[% IF $changeable %] |
|
65 |
<input type="text" name="memo_[% i %]" size="11" value="[% $memo %]"> |
|
66 |
[% ELSE %] |
|
67 |
<input type="hidden" name="memo_[% i %]" value="[% $memo %]">[% $memo %] |
|
68 |
[% END %] |
|
69 |
</td> |
|
70 |
<td> |
|
71 |
[% IF $changeable %] |
|
72 |
<input name="paid_[% i %]" size="11" data-validate="number" class="numeric" value="[% LxERP.format_amount($paid, 2, 1) %]"> |
|
73 |
[% ELSE %] |
|
74 |
<input type="hidden" name="paid_[% i %]" value="[% LxERP.format_amount($paid, 2, 1) %]"> |
|
75 |
[% LxERP.format_amount($paid, 2, 1) %] |
|
76 |
[% END %] |
|
77 |
</td> |
|
78 |
<td> |
|
79 |
[% IF $changeable && loop.last && paid_missing > 0 %] |
|
80 |
<input type="button" id="is_set_to_paid_missing" value="[% 'Set to paid missing' | $T8 %]"> |
|
81 |
[% END %] |
|
82 |
</td> |
|
83 |
[% IF show_exchangerate %] |
|
84 |
<td> |
|
85 |
[% SET forex = 'forex_' _ i %] |
|
86 |
[% SET exchangerate = 'exchangerate_' _ i %] |
|
87 |
[% IF $forex %] |
|
88 |
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5) %]"> |
|
89 |
[% LxERP.format_amount($forex, 5) %] |
|
90 |
[% ELSE %] |
|
91 |
[% IF $changeable %] |
|
92 |
<input type="text" name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 5, 1) %]"> |
|
93 |
[% ELSE %] |
|
94 |
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5, 1) %]"> |
|
95 |
[% LxERP.format_amount($exchangerate, 5, 1) %] |
|
96 |
[% END %] |
|
97 |
[% END %] |
|
98 |
<input type="hidden" name="forex_[% i %]" value="[% $forex %]"> |
|
99 |
</td> |
|
100 |
[% END %] |
|
101 |
<td> |
|
102 |
[% IF $changeable %] |
|
103 |
<select name="AR_paid_[% i %]">[% $selectAR_paid_ref %]</select> |
|
104 |
[% ELSE %] |
|
105 |
<input type="hidden" name="AR_paid_[% i %]" value="[% $AR_paid %]">[% $AR_paid %] |
|
106 |
[% END %] |
|
107 |
</td> |
|
108 |
</tr> |
|
109 |
[% END # foreach %] |
|
110 |
</tbody> |
|
111 |
<tfoot> |
|
117 | 112 |
<tr> |
118 |
<td></td> |
|
119 |
<td></td>
|
|
120 |
<td align="center">[%- 'Total' | $T8 %]</td>
|
|
121 |
<td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
|
|
113 |
<td colspan="2"></td>
|
|
114 |
<td class="right">[% 'Total' | $T8 %]</td>
|
|
115 |
<td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
|
|
116 |
<td colspan="2"></td>
|
|
122 | 117 |
</tr> |
123 | 118 |
<tr> |
124 |
<td></td> |
|
125 |
<td></td> |
|
126 |
<td align="center">[%- 'Missing amount' | $T8 %]</td> |
|
127 |
<td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td> |
|
128 |
</tr> |
|
129 |
<tr style='display:none'> |
|
130 |
<td> |
|
131 |
<input type="hidden" name="paidaccounts" value="[% paidaccounts %]"> |
|
132 |
<input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]"> |
|
133 |
<input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]"> |
|
134 |
|
|
135 |
<input type="hidden" name="oldtotalpaid" value="[% totalpaid %]"> |
|
136 |
</td> |
|
119 |
<td colspan="2"></td> |
|
120 |
<td class="right">[% 'Missing amount' | $T8 %]</td> |
|
121 |
<td class="numeric">[% LxERP.format_amount(paid_missing, 2) | html %]</td> |
|
122 |
<td colspan="2"> |
|
123 |
<input type="hidden" name="paidaccounts" value="[% paidaccounts %]"> |
|
124 |
<input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]"> |
|
125 |
<input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]"> |
|
126 |
<input type="hidden" name="oldtotalpaid" value="[% totalpaid %]"> |
|
127 |
</td> |
|
137 | 128 |
</tr> |
138 |
</table> |
|
129 |
</tfoot> |
|
130 |
</table> |
|
139 | 131 |
|
140 |
</td> |
|
141 |
</tr> |
|
142 |
<script type='text/javascript'> |
|
143 |
$('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') }); |
|
144 |
</script> |
|
132 |
<script type='text/javascript'> |
|
133 |
$('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') }); |
|
134 |
</script> |
templates/webpages/is/form_footer.html | ||
---|---|---|
4 | 4 |
[% USE L %] |
5 | 5 |
[% USE P %] |
6 | 6 |
|
7 |
<!-- |
|
8 |
Total-Lines of Invoice Items |
|
9 |
Within the big colspan/rowspan cell there are weight information |
|
10 |
--> |
|
11 |
<table class="tbl-list footer-only full-width"> |
|
12 |
<colgroup> |
|
13 |
<col style="width: 75%;"> |
|
14 |
<col style="width: 15%;"> |
|
15 |
<col style="width: 10%;"> |
|
16 |
</colgroup> |
|
17 |
<tfoot> |
|
18 |
[% UNLESS taxincluded %] |
|
7 | 19 |
<tr> |
8 |
<td> |
|
9 |
<table width="100%"> |
|
10 |
<tr valign="bottom"> |
|
11 |
<td> |
|
12 |
<table> |
|
13 |
<tr> |
|
14 |
<th align="left">[% 'Notes (will appear on hard copy)' | $T8 %]</th> |
|
15 |
<th align="left">[% 'Internal Notes' | $T8 %]</th> |
|
16 |
<th align="right">[% 'Payment / Delivery Options' | $T8 %]</th> |
|
17 |
</tr> |
|
18 |
<tr valign="top"> |
|
19 |
<td> |
|
20 |
[% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %] |
|
21 |
</td> |
|
22 |
<td> |
|
23 |
[% L.textarea_tag("intnotes", intnotes, wrap="soft", style="width: 350px; height: 150px") %] |
|
24 |
</td> |
|
25 |
<td> |
|
26 |
<table> |
|
27 |
<tr> |
|
28 |
<th align="right">[% 'Payment Terms' | $T8 %]</th> |
|
29 |
<td>[% L.select_tag('payment_id', payment_terms, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %] |
|
30 |
<script type='text/javascript'>$('#payment_id').change(function(){ kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate"); })</script> |
|
31 |
</td> |
|
32 |
</tr> |
|
33 |
<tr> |
|
34 |
<th align="right">[% 'Delivery Terms' | $T8 %] </th> |
|
35 |
<td> |
|
36 |
[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %] |
|
37 |
</td> |
|
38 |
</tr> |
|
39 |
<tr> |
|
40 |
<th align="right">[% 'direct debit' | $T8 %]</th> |
|
41 |
<td> |
|
42 |
[%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %] |
|
43 |
</td> |
|
44 |
</tr> |
|
45 |
</table> |
|
46 |
</td> |
|
47 |
</tr> |
|
48 |
[%- IF id && follow_ups.size %] |
|
49 |
<tr> |
|
50 |
<td colspan="2"> |
|
51 |
[%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %] |
|
52 |
<td> |
|
53 |
</tr> |
|
54 |
[%- END %] |
|
55 |
</table> |
|
56 |
</td> |
|
57 |
[%- IF show_weight %] |
|
58 |
<td> |
|
59 |
<table> |
|
60 |
<tr> |
|
61 |
<th align=left>[% 'Total weight' | $T8 %]</th> |
|
62 |
<td> |
|
63 |
[% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %] |
|
64 |
</td> |
|
65 |
</tr> |
|
66 |
</table> |
|
67 |
</td> |
|
68 |
[%- END %] |
|
69 |
<td> |
|
70 |
<table> |
|
71 |
<tr> |
|
72 |
<th align=left>[% 'Ertrag' | $T8 %]</th> |
|
73 |
<td> |
|
74 |
[% LxERP.format_amount(marge_total, 2, 0) %] |
|
75 |
<input type=hidden name="marge_total" value="[% marge_total %]"> |
|
76 |
</td> |
|
77 |
</tr> |
|
78 |
<tr> |
|
79 |
<th align=left>[% 'Ertrag prozentual' | $T8 %]</th> |
|
80 |
<td> |
|
81 |
[% LxERP.format_amount(marge_percent, 2, 0) %] % |
|
82 |
<input type=hidden name="marge_percent" value="[% marge_percent %]"> |
|
83 |
</td> |
|
84 |
</tr> |
|
85 |
</table> |
|
86 |
</td> |
|
87 |
<td align="right"> |
|
88 |
[%- IF taxaccounts %] |
|
89 |
<input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]"> |
|
90 |
<input name="taxincluded" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]> |
|
91 |
<b>[% 'Tax Included' | $T8 %]</b> |
|
92 |
<br> |
|
93 |
<br> |
|
94 |
[%- END %] |
|
95 |
<table> |
|
20 |
<td> |
|
21 |
[% IF show_weight %] |
|
22 |
<div class="info-block"><!-- PENDENT: vereinheitlichen --> |
|
23 |
<span class="info-label">[% 'Total weight' | $T8 %]</span> |
|
24 |
<span class="info-value">[% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]</span> |
|
25 |
</div> |
|
26 |
[% END %] |
|
27 |
</td><!-- <td></td><td></td><td></td><td></td><td></td><td></td><td></td> --> |
|
28 |
<th>[% 'Subtotal' | $T8 %]</th> |
|
29 |
<td class="numeric">[% LxERP.format_amount(invsubtotal, 2) %]</td> |
|
30 |
</tr> |
|
31 |
[% END %] |
|
96 | 32 |
|
97 |
[%- UNLESS taxincluded %] |
|
98 |
<tr> |
|
99 |
<th align="right">[% 'Subtotal' | $T8 %]</th> |
|
100 |
<td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td> |
|
101 |
</tr> |
|
102 |
[%- END %] |
|
33 |
[%# tax %] |
|
34 |
[% FOREACH item = taxaccounts_array %] |
|
35 |
[% SET description_ref = item _ '_description' %] |
|
36 |
[% SET rate_ref = item _ '_rate' %] |
|
37 |
[% SET total_ref = item _ '_total' %] |
|
38 |
[% SET netto_ref = item _ '_netto' %] |
|
39 |
<tr> |
|
40 |
<td></td> |
|
41 |
<th>[% 'Including' | $T8 %] [% $description_ref | html %] [% $rate_ref * 100 %]%</th> |
|
42 |
<td class="numeric">[% LxERP.format_amount($total_ref, 2) %]</td> |
|
43 |
</tr> |
|
44 |
[% IF taxincluded %] |
|
45 |
<tr> |
|
46 |
<td></td> |
|
47 |
<th>[% 'Net amount' | $T8 %]</th> |
|
48 |
<td class="numeric">[% LxERP.format_amount($netto_ref, 2) %]</td> |
|
49 |
</tr> |
|
50 |
[% END %] |
|
51 |
[% END %] |
|
52 |
[% IF rounding %] |
|
53 |
<tr> |
|
54 |
<td></td> |
|
55 |
<th>[% 'Rounding' | $T8 %]</th> |
|
56 |
<td class="numeric">[% LxERP.format_amount(rounding, 2) %]</td> |
|
57 |
</tr> |
|
58 |
[% END %] |
|
59 |
<tr> |
|
60 |
<td></td> |
|
61 |
<th>[% 'Total' | $T8 %]</th> |
|
62 |
<td class="numeric">[% LxERP.format_amount(invtotal, 2) %]</td> |
|
63 |
</tr> |
|
64 |
<tr> |
|
65 |
<td></td> |
|
66 |
<th>[% 'Ertrag' | $T8 %]</th> |
|
67 |
<td class="numeric"> |
|
68 |
[% LxERP.format_amount(marge_total, 2, 0) %] |
|
69 |
<input type=hidden name="marge_total" value="[% marge_total %]" class="numeric"> |
|
70 |
</td> |
|
71 |
</tr> |
|
72 |
<tr> |
|
73 |
<td></td> |
|
74 |
<th>[% 'Ertrag prozentual' | $T8 %]</th> |
|
75 |
<td class="numeric"> |
|
76 |
[% LxERP.format_amount(marge_percent, 2, 0) %] % |
|
77 |
<input type=hidden name="marge_percent" value="[% marge_percent %]" class="numeric"> |
|
78 |
</td> |
|
79 |
</tr> |
|
80 |
</tfoot> |
|
81 |
</table> |
|
103 | 82 |
|
104 |
[%# tax %] |
|
105 |
[% FOREACH item = taxaccounts_array %] |
|
106 |
[% SET description_ref = item _ '_description' %] |
|
107 |
[% SET rate_ref = item _ '_rate' %] |
|
108 |
[% SET total_ref = item _ '_total' %] |
|
109 |
[% SET netto_ref = item _ '_netto' %] |
|
110 |
<tr> |
|
111 |
<th align="right">[% 'Including' | $T8 %] [% $description_ref | html %] [% $rate_ref * 100 %]%</th> |
|
112 |
<td align="right">[% LxERP.format_amount($total_ref, 2) %]</td> |
|
113 |
</tr> |
|
114 |
[%- IF taxincluded %] |
|
115 |
<tr> |
|
116 |
<th align="right">[% 'Net amount' | $T8 %]</th> |
|
117 |
<td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td> |
|
118 |
</tr> |
|
119 |
[%- END %] |
|
120 |
[%- END %] |
|
83 |
[% IF id && follow_ups.size %] |
|
84 |
<div class="message message_hint"> |
|
85 |
[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %] |
|
86 |
</div> |
|
87 |
[% END %] |
|
121 | 88 |
|
122 |
[%- IF rounding %] |
|
123 |
<tr> |
|
124 |
<th align='right'>[% 'Rounding' | $T8 %]</th> |
|
125 |
<td align='right'>[% LxERP.format_amount(rounding, 2) %]</td> |
|
126 |
</tr> |
|
127 |
[%- END %] |
|
89 |
[% PROCESS 'is/_payments.html' %] |
|
128 | 90 |
|
129 |
<tr> |
|
130 |
<th align="right">[% 'Total' | $T8 %]</th> |
|
131 |
<td align="right">[% LxERP.format_amount(invtotal, 2) %]</td> |
|
132 |
</tr> |
|
133 |
</table> |
|
134 |
</td> |
|
135 |
</tr> |
|
136 |
</table> |
|
137 |
</td> |
|
138 |
</tr> |
|
91 |
</div><!-- /.ui-tabs-panel /#ui-tabs-basic-data --> |
|
139 | 92 |
|
140 |
[% PROCESS 'is/_payments.html' %] |
|
141 |
</table> |
|
142 |
</div> |
|
143 | 93 |
[% PROCESS 'webdav/_list.html' %] |
144 |
<div id="ui-tabs-1"> |
|
145 |
[% LxERP.t8('Loading...') %] |
|
146 |
</div> |
|
94 |
|
|
95 |
<div id="ui-tabs-1" class="ui-tabs-panel" style="display:none"> |
|
96 |
<div class="wrapper"> |
|
97 |
[% LxERP.t8('Loading...') %] |
|
98 |
</div> |
|
99 |
</div><!-- /#ui-tabs-1 --> |
|
100 |
|
|
147 | 101 |
</div> |
148 | 102 |
|
149 | 103 |
<input type="hidden" name="rowcount" value="[% rowcount %]"> |
... | ... | |
153 | 107 |
<input type="hidden" name="customer_discount" value="[% customer_discount %]"> |
154 | 108 |
<input type="hidden" name="gldate" value="[% gldate %]"> |
155 | 109 |
|
156 |
<div id="shipto_inputs" class="hidden"> |
|
157 |
[%- PROCESS 'common/_ship_to_dialog.html' cvars=shipto_cvars %] |
|
158 |
</div> |
|
159 |
|
|
110 |
<div id="shipto_inputs" class="hidden">[% PROCESS 'common/_ship_to_dialog.html' cvars=shipto_cvars %]</div> |
|
160 | 111 |
<div id="email_inputs" style="display: none"></div> |
112 |
<div id="print_options" style="display: none">[% print_options %]</div> |
|
161 | 113 |
|
162 |
<div id="print_options" style="display: none"> |
|
163 |
[% print_options %] |
|
164 |
</div> |
|
165 | 114 |
</form> |
166 | 115 |
<script type='text/javascript'> |
167 |
$(kivi.SalesPurchase.init_on_submit_checks); |
|
116 |
$(kivi.SalesPurchase.init_on_submit_checks);
|
|
168 | 117 |
</script> |
169 | 118 |
|
170 | 119 |
<div id="shipto_dialog" class="hidden"></div> |
171 |
<div id="print_dialog" class="hidden"> |
|
172 |
[%- PROCESS 'common/_print_dialog.html' %] |
|
173 |
</div> |
|
120 |
<div id="print_dialog" class="hidden"><form action="#" name="fake-print-dialog" id="fake-print-dialog">[% PROCESS 'common/_print_dialog.html' %]</form></div> |
templates/webpages/is/form_header.html | ||
---|---|---|
9 | 9 |
<script type="text/javascript" src="js/calculate_qty.js"></script> |
10 | 10 |
<script type="text/javascript" src="js/follow_up.js"></script> |
11 | 11 |
|
12 |
<h1>[% title %]</h1> |
|
13 |
|
|
12 | 14 |
<form method="post" id='form' name="invoice" action="[% script %]"> |
13 | 15 |
|
14 |
[%- FOREACH key = HIDDENS %]
|
|
15 |
<input type="hidden" name="[% HTML.escape(key) %]" id="[% HTML.escape(key) %]" value="[% HTML.escape($key) %]"> |
|
16 |
[%- END %]
|
|
16 |
[% FOREACH key = HIDDENS %] |
|
17 |
<input type="hidden" name="[% HTML.escape(key) %]" id="[% HTML.escape(key) %]" value="[% HTML.escape($key) %]">
|
|
18 |
[% END %] |
|
17 | 19 |
<input type="hidden" name="follow_up_trans_id_1" id="follow_up_trans_id_1" value="[% id %]"> |
18 | 20 |
<input type="hidden" name="follow_up_trans_type_1" id="follow_up_trans_type_1" value="sales_invoice"> |
19 | 21 |
<input type="hidden" name="follow_up_trans_info_1" id="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]"> |
20 | 22 |
<input type="hidden" name="follow_up_rowcount" id="follow_up_rowcount" value="1"> |
21 | 23 |
<input type="hidden" name="lastmtime" id="lastmtime" value="[% HTML.escape(lastmtime) %]"> |
22 | 24 |
|
23 |
<h1>[% title %]</h1> |
|
24 | 25 |
|
25 |
<p>[% saved_message %]</p>
|
|
26 |
[% IF saved_message != '' %]<p>[% saved_message %]</p>[% END %]
|
|
26 | 27 |
|
27 |
[%- INCLUDE 'common/flash.html' %]
|
|
28 |
[%- INCLUDE 'generic/set_longdescription.html' %]
|
|
28 |
[% INCLUDE 'common/flash.html' %] |
|
29 |
[% INCLUDE 'generic/set_longdescription.html' %] |
|
29 | 30 |
|
30 | 31 |
<div id="is_tabs" class="tabwidget"> |
31 |
<ul> |
|
32 |
<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li> |
|
33 |
[%- IF INSTANCE_CONF.get_webdav %] |
|
34 |
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li> |
|
35 |
[%- END %] |
|
36 |
[%- IF id %] |
|
37 |
[%- IF INSTANCE_CONF.get_doc_storage %] |
|
38 |
<li><a href="controller.pl?action=File/list&file_type=document&object_type=invoice&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li> |
|
39 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li> |
|
40 |
[%- END %] |
|
41 |
[%- IF AUTH.assert('record_links', 1) %] |
|
42 |
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Invoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li> |
|
43 |
[%- END %] |
|
44 |
[%- IF AUTH.assert('invoice_edit', 1) %] |
|
45 |
<li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li> |
|
46 |
[%- END %] |
|
47 |
[%- END %] |
|
48 |
</ul> |
|
32 |
<ul class="ui-tabs-nav"> |
|
33 |
<li><a href="#ui-tabs-basic-data" class="ui-tabs">[% 'Basic Data' | $T8 %]</a></li> |
|
34 |
[% IF INSTANCE_CONF.get_webdav %] |
|
35 |
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li> |
|
36 |
[% END %] |
|
37 |
[% IF id %] |
|
38 |
[% IF INSTANCE_CONF.get_doc_storage %] |
|
39 |
<li><a href="controller.pl?action=File/list&file_type=document&object_type=invoice&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li> |
|
40 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li> |
|
41 |
[% END %] |
|
42 |
[% IF AUTH.assert('record_links', 1) %] |
|
43 |
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Invoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li> |
|
44 |
[% END %] |
|
45 |
[% IF AUTH.assert('invoice_edit', 1) %] |
|
46 |
<li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li> |
|
47 |
[% END %] |
|
48 |
[% END %] |
|
49 |
</ul> |
|
50 |
|
|
51 |
|
|
52 |
<div id="ui-tabs-basic-data" class="ui-tabs-panel"> |
|
49 | 53 |
|
50 |
<div id="ui-tabs-basic-data">
|
|
51 |
<table width="100%">
|
|
52 |
<tr>
|
|
53 |
<td valign="top">
|
|
54 |
<table>
|
|
55 |
<tr>
|
|
56 |
<th align="right">[% 'Customer' | $T8 %]</th>
|
|
57 |
<td>
|
|
58 |
[% P.customer_vendor.picker("customer_id", customer_id, type="customer", style="width: 250px", class="initial_focus", onchange="\$('#update_button').click()") %]
|
|
59 |
[% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %]
|
|
60 |
[% L.hidden_tag("previous_customer_id", customer_id) %]
|
|
61 |
[% L.hidden_tag("customer_pricegroup_id", customer_pricegroup_id) %]
|
|
62 |
</td>
|
|
63 |
</tr>
|
|
64 |
[%- IF ALL_CONTACTS.size %]
|
|
65 |
<tr>
|
|
66 |
<th align="right">[% 'Contact Person' | $T8 %]</th>
|
|
67 |
<td>
|
|
68 |
[% L.select_tag('cp_id', ALL_CONTACTS, default = cp_id, value_key = 'cp_id', title_key = 'full_name_dep', with_empty = 1, style = 'width: 250px') %]
|
|
69 |
</td>
|
|
70 |
</tr>
|
|
71 |
[%- END %]
|
|
72 |
<tr>
|
|
73 |
<th align="right">[% 'Shipping Address' | $T8 %]</th>
|
|
74 |
<td>
|
|
75 |
[%- IF ALL_SHIPTO.size %]
|
|
76 |
[% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ;
|
|
77 |
L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', style='width: 250px') %]
|
|
78 |
[%- END %]
|
|
79 |
[% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto")) %]
|
|
80 |
</td>
|
|
81 |
</tr>
|
|
82 |
<tr>
|
|
83 |
<td align="right">[% 'Credit Limit' | $T8 %]</td>
|
|
84 |
<td>
|
|
85 |
[% LxERP.format_amount(creditlimit, 0, '0') %]; [% 'Remaining' | $T8 %]
|
|
86 |
<span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span>
|
|
87 |
</td>
|
|
88 |
</tr>
|
|
89 |
[%- IF max_dunning_level || dunning_description %]
|
|
90 |
<tr>
|
|
91 |
<th align="right" valign="top">[% LxERP.t8("Dunning status") %]</th>
|
|
92 |
<td valign="top">
|
|
93 |
[% IF dunning_description %]
|
|
94 |
<span class="dunned_invoice">[% LxERP.t8("This invoice's dunning level: #1", dunning_description) %]</span>
|
|
95 |
[% IF max_dunning_level %]<br>[% END %]
|
|
96 |
[% END %] |
|
97 |
[% IF max_dunning_level %]
|
|
98 |
<span class="customer_dunning_level">
|
|
99 |
[% LxERP.t8("Customer's current maximum dunning level: #1", max_dunning_level) %]
|
|
100 |
<br> |
|
54 |
<div class="wrapper" id="wrapper-1">
|
|
55 |
[% INCLUDE 'generic/toggle_wrapper.html' %]
|
|
56 |
<table class="tbl-horizontal">
|
|
57 |
<caption>[% 'Customer & Order' | $T8 %]</caption>
|
|
58 |
<colgroup><col class="wi-mediumsmall"><col class="wi-wide"></colgroup>
|
|
59 |
<tbody>
|
|
60 |
<tr>
|
|
61 |
<th>[% 'Customer' | $T8 %]</th>
|
|
62 |
<td><!-- PENDENT: Type sollte text und nicht customer sein. Ueberall bei customer_vendor.picker aendern, auf allen Seiten -->
|
|
63 |
[% P.customer_vendor.picker("customer_id", customer_id, type="customer", class="wi-wide initial_focus", size=36, onchange="\$('#update_button').click()") %]
|
|
64 |
[% #L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)'), class='wi-tiny neutral') %]
|
|
65 |
<a href="javascript:show_vc_details('customer')" class="button-image info tooltipster-html" title="[% 'Detail information about this customer' | $T8 %]"><img src="image/detail.png"></a>
|
|
66 |
[% L.hidden_tag("previous_customer_id", customer_id) %]
|
|
67 |
[% L.hidden_tag("customer_pricegroup_id", customer_pricegroup_id) %]
|
|
68 |
</td>
|
|
69 |
</tr>
|
|
70 |
[% IF ALL_CONTACTS.size %]
|
|
71 |
<tr>
|
|
72 |
<th>[% 'Contact Person' | $T8 %]</th>
|
|
73 |
<td>
|
|
74 |
[% L.select_tag('cp_id', ALL_CONTACTS, default = cp_id, value_key = 'cp_id', title_key = 'full_name_dep', with_empty = 1, class="wi-wide") %]
|
|
75 |
</td>
|
|
76 |
</tr>
|
|
77 |
[% END %]
|
|
78 |
<tr>
|
|
79 |
<th>[% 'Shipping Address' | $T8 %]</th>
|
|
80 |
<td>
|
|
81 |
[% IF ALL_SHIPTO.size %]
|
|
82 |
[% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ;
|
|
83 |
L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', class="wi-wide") %]
|
|
84 |
[% END %]
|
|
85 |
[% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto"), class="wi-wide neutral below") %]
|
|
86 |
</td>
|
|
87 |
</tr>
|
|
88 |
<tr>
|
|
89 |
<th>[% 'Credit Limit' | $T8 %]</th>
|
|
90 |
<td>
|
|
91 |
<span class="data wi-wide">[% LxERP.format_amount(creditlimit, 0, '0') %], [% 'Remaining' | $T8 %] <span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span> </span>
|
|
92 |
</td>
|
|
93 |
</tr>
|
|
94 |
[% IF max_dunning_level || dunning_description %]
|
|
95 |
<tr>
|
|
96 |
<th>[% LxERP.t8("Dunning status") %]</th>
|
|
97 |
<td>
|
|
98 |
[% IF dunning_description %]
|
|
99 |
<span class="dunned_invoice data wi-wide">[% LxERP.t8("This invoice's dunning level: #1", dunning_description) %]</span>
|
|
100 |
[% IF max_dunning_level %]<br>[% END %]
|
|
101 |
[% END %]
|
|
102 |
[% IF max_dunning_level %]
|
|
103 |
<span class="customer_dunning_level data wi-wide">
|
|
104 |
[% LxERP.t8("Customer's current maximum dunning level: #1", max_dunning_level) %]<br>
|
|
101 | 105 |
[% LxERP.t8("Dunned open amount: #1", LxERP.format_amount(dunning_amount, 2)) %] |
102 |
</span> |
|
103 |
[% END %] |
|
104 |
</td> |
|
105 |
</tr> |
|
106 |
[%- END %] |
|
107 |
[%- IF invoice_obj.sepa_exports.as_list.size %] |
|
108 |
<tr> |
|
109 |
<th align="right">[% LxERP.t8("SEPA exports") %]</th> |
|
110 |
<td> |
|
111 |
[% FOREACH export = invoice_obj.sepa_exports.as_list %] |
|
112 |
<a href="sepa.pl?action=bank_transfer_edit&vc=customer&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a> |
|
113 |
[% UNLESS loop.last %], [% END %] |
|
114 |
[% END %] |
|
115 |
</td> |
|
116 |
</tr> |
|
117 |
[%- END %] |
|
118 |
[%- IF business %] |
|
119 |
<tr> |
|
120 |
<th align="right">[% 'Customer type' | $T8 %]</th> |
|
121 |
<td>[% business %]; [% 'Trade Discount' | $T8 %] [% LxERP.format_amount(tradediscount * 100) %] %</td> |
|
122 |
</tr> |
|
123 |
[%- END %] |
|
124 |
<tr> |
|
125 |
<th align="right" nowrap>[% 'Record in' | $T8 %]</th> |
|
126 |
<td colspan="3"> |
|
127 |
<select name="AR" style="width:250px;">[% selectAR %]</select> |
|
128 |
<input type="hidden" name="selectAR" value="[% selectAR | html %]"> |
|
129 |
</td> |
|
130 |
</tr> |
|
131 |
<tr> |
|
132 |
<th align="right">[% 'Steuersatz' | $T8 %]</th> |
|
133 |
<td> |
|
134 |
[% L.select_tag('taxzone_id', ( id ? ALL_TAXZONES : ALL_ACTIVE_TAXZONES) , default = taxzone_id, title_key = 'description', disabled = (id ? 1 : 0), style='width: 250px', onchange = "document.getElementById('update_button').click();") %] |
|
135 |
[%- IF id %] |
|
106 |
</span> |
|
107 |
[% END %] |
|
108 |
</td> |
|
109 |
</tr> |
|
110 |
[% END %] |
|
111 |
[% IF invoice_obj.sepa_exports.as_list.size %] |
|
112 |
<tr> |
|
113 |
<th>[% LxERP.t8("SEPA exports") %]</th> |
|
114 |
<td> |
|
115 |
[% FOREACH export = invoice_obj.sepa_exports.as_list %] |
|
116 |
<a href="sepa.pl?action=bank_transfer_edit&vc=customer&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a> |
|
117 |
[% UNLESS loop.last %], [% END %] |
|
118 |
[% END %] |
|
119 |
</td> |
|
120 |
</tr> |
|
121 |
[% END %] |
|
122 |
[% IF business %] |
|
123 |
<tr> |
|
124 |
<th>[% 'Customer type' | $T8 %]</th> |
|
125 |
<td><span class="data wi-wide">[% business %] ([% 'Trade Discount' | $T8 %] [% LxERP.format_amount(tradediscount * 100) %]%)</span></td> |
|
126 |
</tr> |
|
127 |
[% END %] |
|
128 |
<tr> |
|
129 |
<th>[% 'Record in' | $T8 %]</th> |
|
130 |
<td> |
|
131 |
<select name="AR" class="wi-wide">[% selectAR %]</select> |
|
132 |
<input type="hidden" name="selectAR" value="[% selectAR | html %]"> |
|
133 |
</td> |
|
134 |
</tr> |
|
135 |
[% IF currencies %] |
|
136 |
<tr> |
|
137 |
<th>[% 'Currency' | $T8 %]</th> |
|
138 |
<td>[% currencies %]</td> |
|
139 |
</tr> |
|
140 |
[% END %] |
|
141 |
<!--PENDENT: Hardcoded! Ist das korrekt? hps--> |
|
142 |
<tr> |
|
143 |
<th>[% 'Steuersatz' | $T8 %]</th> |
|
144 |
<td> |
|
145 |
[% L.select_tag('taxzone_id', ( id ? ALL_TAXZONES : ALL_ACTIVE_TAXZONES) , default = taxzone_id, title_key = 'description', disabled = (id ? 1 : 0), class='wi-wide', onchange = "document.getElementById('update_button').click();") %] |
|
146 |
[% IF id %] |
|
136 | 147 |
<input type='hidden' name='taxzone_id' value='[% taxzone_id %]'> |
137 |
[%- END %] |
|
138 |
</td> |
|
139 |
</tr> |
|
140 |
[%- IF ALL_LANGUAGES %] |
|
141 |
<tr> |
|
142 |
<th align="right" nowrap>[% 'Language' | $T8 %]</th> |
|
143 |
<td colspan="3"> |
|
144 |
[% L.select_tag('language_id', ALL_LANGUAGES, default = language_id, title_key = 'description', with_empty = 1, style = 'width:250px') %] |
|
145 |
</td> |
|
146 |
</tr> |
|
147 |
[%- END %] |
|
148 |
[%- IF ALL_DEPARTMENTS %] |
|
149 |
<tr> |
|
150 |
<th align="right" nowrap>[% 'Department' | $T8 %]</th> |
|
151 |
<td colspan="3"> |
|
152 |
[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width:250px') %] |
|
153 |
</td> |
|
154 |
</tr> |
|
155 |
[%- END %] |
|
156 |
[%- IF currencies %] |
|
157 |
<tr> |
|
158 |
<th align="right">[% 'Currency' | $T8 %]</th> |
|
159 |
<td>[% currencies %]</td> |
|
160 |
</tr> |
|
161 |
[%- END %] |
|
162 |
<tr style='display:none'> |
|
163 |
<td> |
|
164 |
<input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]"> |
|
165 |
<input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]"> |
|
166 |
<input type="hidden" name="rndgain_accno" value="[% rndgain_accno %]"> |
|
167 |
<input type="hidden" name="rndloss_accno" value="[% rndloss_accno %]"> |
|
168 |
</td> |
|
169 |
</tr> |
|
170 |
[%- IF show_exchangerate %] |
|
171 |
<tr> |
|
172 |
<th align="right">[% 'Exchangerate' | $T8 %]</th> |
|
173 |
<td> |
|
174 |
[%- IF forex %] |
|
148 |
[% END %] |
|
149 |
</td> |
|
150 |
</tr> |
|
151 |
[% IF taxaccounts %] |
|
152 |
<tr> |
|
153 |
<th>[% 'Tax Included' | $T8 %]</th> |
|
154 |
<td> |
|
155 |
<input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]"> |
|
156 |
<input name="taxincluded" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" type="checkbox" [% IF taxincluded %]checked[% END %]> |
|
157 |
</td> |
|
158 |
</tr> |
|
159 |
[% END %] |
|
160 |
[% IF ALL_LANGUAGES %] |
|
161 |
<tr> |
|
162 |
<th>[% 'Language' | $T8 %]</th> |
|
163 |
<td> |
|
164 |
[% L.select_tag('language_id', ALL_LANGUAGES, default = language_id, title_key = 'description', with_empty = 1, style = 'width:250px') %] |
|
165 |
</td> |
|
166 |
</tr> |
|
167 |
[% END %] |
|
168 |
[% IF ALL_DEPARTMENTS %] |
|
169 |
<tr> |
|
170 |
<th>[% 'Department' | $T8 %]</th> |
|
171 |
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class='wi-wide') %]</td> |
|
172 |
</tr> |
|
173 |
[% END %] |
|
174 |
<tr style='display:none'> |
|
175 |
<td> |
|
176 |
<input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]"> |
|
177 |
<input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]"> |
|
178 |
<input type="hidden" name="rndgain_accno" value="[% rndgain_accno %]"> |
|
179 |
<input type="hidden" name="rndloss_accno" value="[% rndloss_accno %]"> |
|
180 |
</td> |
|
181 |
</tr> |
|
182 |
[% IF show_exchangerate %] |
|
183 |
<tr> |
|
184 |
<th>[% 'Exchangerate' | $T8 %]</th> |
|
185 |
<td> |
|
186 |
[% IF forex %] |
|
175 | 187 |
[% LxERP.format_amount(exchangerate, 5) %] |
176 |
[%- ELSE %] |
|
177 |
<input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]"> |
|
178 |
[%- END %] |
|
179 |
</td> |
|
180 |
</tr> |
|
181 |
[%- END %] |
|
182 |
<tr> |
|
183 |
<th align="right" nowrap>[% 'Shipping Point' | $T8 %]</th> |
|
184 |
<td colspan="3"><input size='35' name="shippingpoint" value="[% HTML.escape(shippingpoint) %]"></td> |
|
185 |
</tr> |
|
186 |
<tr> |
|
187 |
<th align="right" nowrap>[% 'Ship via' | $T8 %]</th> |
|
188 |
<td colspan="3"><input size='35' name="shipvia" value="[% HTML.escape(shipvia) %]"></td> |
|
189 |
</tr> |
|
190 |
<tr> |
|
191 |
<th align="right">[% 'Transaction description' | $T8 %]</th> |
|
192 |
<td colspan="3">[% L.input_tag("transaction_description", transaction_description, size=35, "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]</td> |
|
193 |
</tr> |
|
194 |
</table> |
|
195 |
</td> |
|
196 |
<td align="right" valign="top"> |
|
197 |
<table> |
|
198 |
<tr> |
|
199 |
<th align="right">[% 'Employee' | $T8 %]</th> |
|
200 |
<td> |
|
201 |
[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %] |
|
202 |
</td> |
|
203 |
</tr> |
|
204 |
[%- IF ALL_SALESMEN.size %] |
|
205 |
<tr> |
|
206 |
<th align="right">[% 'Salesman' | $T8 %]</th> |
|
207 |
<td> |
|
208 |
[% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name') %] |
|
209 |
</td> |
|
210 |
</tr> |
|
211 |
[%- END %] |
|
188 |
[% ELSE %] |
|
189 |
<input type="text" name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]"> |
|
190 |
[% END %] |
|
191 |
</td> |
|
192 |
</tr> |
|
193 |
[% END %] |
|
194 |
<tr> |
|
195 |
<th>[% 'Shipping Point' | $T8 %]</th> |
|
196 |
<td><input type="text" class="wi-wide" name="shippingpoint" value="[% HTML.escape(shippingpoint) %]"></td> |
|
197 |
</tr> |
|
198 |
<tr> |
|
199 |
<th>[% 'Ship via' | $T8 %]</th> |
|
200 |
<td><input type="text" class="wi-wide" name="shipvia" value="[% HTML.escape(shipvia) %]"></td> |
|
201 |
</tr> |
|
202 |
<tr> |
|
203 |
<th>[% 'Transaction description' | $T8 %]</th> |
|
204 |
<td>[% L.input_tag("transaction_description", transaction_description, class="wi-wide", "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]</td> |
|
205 |
</tr> |
|
206 |
</tbody> |
|
207 |
</table> |
|
212 | 208 |
|
213 |
[%- IF is_type_credit_note %] |
|
214 |
<tr> |
|
215 |
<th align="right" nowrap>[% 'Credit Note Number' | $T8 %]</th> |
|
216 |
<td colspan="3"><input size='11' name="invnumber" id="invnumber" value="[% HTML.escape(invnumber) %]"></td> |
|
217 |
</tr> |
|
218 |
<tr> |
|
219 |
<th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th> |
|
220 |
<td colspan="3"><input size='11' name="invnumber_for_credit_note" id="invnumber_for_credit_note" value="[% HTML.escape(invnumber_for_credit_note) %]"></td> |
|
221 |
</tr> |
|
222 |
<tr> |
|
223 |
<th align="right">[% 'Credit Note Date' | $T8 %]</th> |
|
224 |
<td>[% L.date_tag('invdate', invdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")') %]</td> |
|
225 |
</tr> |
|
226 |
[%- ELSE %] |
|
227 |
<tr> |
|
228 |
<th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th> |
|
229 |
<td colspan="3"><input size='11' name="invnumber" id="invnumber" value="[% HTML.escape(invnumber) %]"></td> |
|
230 |
</tr> |
|
231 |
<tr> |
|
232 |
<th align="right">[% 'Invoice Date' | $T8 %]</th> |
|
233 |
<td>[% L.date_tag('invdate', invdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")') %]</td> |
|
234 |
</tr> |
|
235 |
<tr> |
|
236 |
<th align="right">[% 'Due Date' | $T8 %]</th> |
|
237 |
<td> |
|
238 |
<span id="duedate_container"[% IF payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% L.date_tag('duedate', duedate) %]</span> |
|
239 |
<span id="duedate_fixed"[% IF !payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% HTML.escape(duedate) %]</span> |
|
240 |
</td> |
|
241 |
</tr> |
|
242 |
[%- END %] |
|
243 |
<tr> |
|
244 |
<th align="right" nowrap>[% LxERP.t8('Tax point') %]</th> |
|
245 |
<td nowrap>[% L.date_tag('tax_point', tax_point, id='tax_point') %]</td> |
|
246 |
</tr> |
|
247 |
[%- IF !is_type_credit_note %] |
|
248 |
<tr> |
|
249 |
<th align="right" nowrap>[% 'Delivery Order Number' | $T8 %]</th> |
|
250 |
<td colspan="3"><input size='11' name="donumber" id="donumber" value="[% HTML.escape(donumber) %]"></td> |
|
251 |
</tr> |
|
252 |
[%- END %] |
|
253 |
<tr> |
|
254 |
<th align="right">[% 'Delivery Date' | $T8 %]</th> |
|
255 |
<td>[% L.date_tag('deliverydate', deliverydate) %]</td> |
|
256 |
</tr> |
|
257 |
<tr> |
|
258 |
<th align="right" nowrap>[% 'Order Number' | $T8 %]</th> |
|
259 |
<td colspan="3"><input size='11' name="ordnumber" id="ordnumber" value="[% HTML.escape(ordnumber) %]"></td> |
|
260 |
</tr> |
|
261 |
<tr> |
|
262 |
<th align="right" nowrap>[% 'Order Date' | $T8 %]</th> |
|
263 |
<td>[% L.date_tag('orddate', orddate) %]</td> |
|
264 |
</tr> |
|
265 |
<tr> |
|
266 |
<th align="right" nowrap>[% 'Quotation Number' | $T8 %]</th> |
|
267 |
<td colspan="3"><input size='11' name="quonumber" id="quonumber" value="[% HTML.escape(quonumber) %]"></td> |
|
268 |
</tr> |
|
269 |
<tr> |
|
270 |
<th align="right" nowrap>[% 'Quotation Date' | $T8 %]</th> |
|
271 |
<td>[% L.date_tag('quodate', quodate) %]</td> |
|
272 |
</tr> |
|
273 |
<tr> |
|
274 |
<th align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th> |
|
275 |
<td colspan="3"><input size='11' name="cusordnumber" id="cusordnumber" value="[% HTML.escape(cusordnumber) %]"></td> |
|
276 |
</tr> |
|
277 |
<tr> |
|
278 |
<th align="right" nowrap>[% 'Project Number' | $T8 %]</th> |
|
279 |
<td> |
|
280 |
[%- L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = '1', onChange = "document.getElementById('update_button').click();") %] |
|
281 |
</td> |
|
282 |
</tr> |
|
283 |
</table> |
|
284 |
</td> |
|
285 |
</tr> |
|
286 |
<tr style='display:none'> |
|
287 |
<td> |
|
288 |
<input type="hidden" name="webdav" value="[% webdav %]"> |
|
289 |
</td> |
|
290 |
</tr> |
|
291 |
</table> |
|
209 |
<table class="tbl-horizontal"> |
|
210 |
<caption>[% 'Payment / Delivery Options' | $T8 %]</caption> |
|
211 |
<colgroup> <col class="wi-wide"> </colgroup> |
|
212 |
<tbody> |
|
213 |
<tr> |
|
214 |
<th class="single-col"> |
|
215 |
<span class="label above">[% 'Payment Terms' | $T8 %]</span> |
|
216 |
[% L.select_tag('payment_id', payment_terms, default = payment_id, title_key = 'description', with_empty = 1, class="wi-wide") %] |
|
217 |
<script type='text/javascript'>$('#payment_id').change(function(){ kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate"); })</script> |
|
218 |
</th> |
|
219 |
</tr> |
|
220 |
<tr> |
|
221 |
<th class="single-col"> |
|
222 |
<span class="label above">[% 'Delivery Terms' | $T8 %]</span> |
|
223 |
[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', class="wi-wide") %] |
|
224 |
</th> |
|
225 |
</tr> |
|
226 |
<tr> |
|
227 |
<th>[% 'direct debit' | $T8 %] [% L.checkbox_tag('direct_debit', 'checked', direct_debit) %]</th> |
|
228 |
</tr> |
|
229 |
<tr> |
|
230 |
<th class="caption">[% 'Notes (will appear on hard copy)' | $T8 %]</th> |
|
231 |
</tr> |
|
232 |
<tr> |
|
233 |
<td class="wi-wide"> |
|
234 |
[% L.textarea_tag("notes", notes, wrap="soft", class="wi-wide texteditor", style="height:84px;") %] |
|
235 |
</td> |
|
236 |
</tr> |
|
237 |
<tr> |
|
238 |
<th> |
|
239 |
<span class="label above">[% 'Internal Notes' | $T8 %]</span> |
|
240 |
[% L.textarea_tag("intnotes", intnotes, wrap="soft", class="wi-wide") %] |
|
241 |
</th> |
|
242 |
</tr> |
|
243 |
</tbody> |
|
244 |
</table> |
|
292 | 245 |
|
293 |
<script type="text/javascript" src="js/show_form_details.js"></script> |
|
294 |
<script type="text/javascript" src="js/show_vc_details.js"></script> |
|
295 |
<script type="text/javascript" src="js/show_history.js"></script> |
|
296 |
<script type="text/javascript"> |
|
297 |
<!-- |
|
298 |
$('document').ready(function(){ |
|
299 |
[% IF resubmit && is_format_html %] |
|
300 |
window.open('about:blank','Beleg'); |
|
301 |
document.invoice.target = 'Beleg'; |
|
302 |
kivi.SalesPurchase.show_print_dialog(); |
|
303 |
kivi.SalesPurchase.print_record(); |
|
304 |
[% ELSIF resubmit %] |
|
305 |
kivi.SalesPurchase.show_print_dialog(); |
|
306 |
kivi.SalesPurchase.print_record(); |
|
307 |
[% ELSIF creditwarning != '' %] |
|
308 |
alert('[% 'Credit Limit exceeded!!!' | $T8 %]'); |
|
309 |
[% ELSE %] |
|
310 |
[% END %] |
|
246 |
<table class="tbl-horizontal"> |
|
247 |
<caption>[% 'Dates & Numbers' | $T8 %]</caption> |
|
248 |
<colgroup> <col class="wi-small"><col class="wi-small"><col class="wi-small"> </colgroup> |
|
249 |
<tbody> |
|
250 |
<tr> |
|
251 |
<th>[% 'Employee' | $T8 %]</th> |
|
252 |
<td colspan="2"> |
|
253 |
[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name', class="wi-lightwide") %] |
|
254 |
</td> |
|
255 |
</tr> |
|
256 |
[% IF ALL_SALESMEN.size %] |
|
257 |
<tr> |
|
258 |
<th>[% 'Salesman' | $T8 %]</th> |
|
259 |
<td colspan="2"> |
|
260 |
[% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name', class="wi-lightwide") %] |
|
261 |
</td> |
|
262 |
</tr> |
|
263 |
[% END %] |
|
264 |
<tr> |
|
265 |
<th> </th> |
|
266 |
<th>[% 'Date' | $T8 %]</th> |
|
267 |
<th>[% 'Number' | $T8 %]</th> |
|
268 |
</tr> |
|
269 |
[% IF is_type_credit_note %] |
|
270 |
<tr> |
|
271 |
<th>[% 'Credit Note' | $T8 %]</th> |
|
272 |
<!-- <th>[% 'Credit Note Number' | $T8 %]</th> --> |
|
273 |
<td>[% L.date_tag('invdate', invdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")', class='wi-date') %]</td> |
|
274 |
<td><input type="text" name="invnumber" id="invnumber" value="[% HTML.escape(invnumber) %]" class="wi-small"></td> |
|
275 |
</tr> |
|
276 |
<tr> |
|
277 |
<th>[% 'Invoice' | $T8 %]</th> |
|
278 |
<td> </td> |
|
279 |
<td><input type="text" name="invnumber_for_credit_note" id="invnumber_for_credit_note" value="[% HTML.escape(invnumber_for_credit_note) %]" class="wi-small"></td> |
|
280 |
</tr> |
|
281 |
<tr> |
|
282 |
</tr> |
|
283 |
[% ELSE %] |
|
284 |
<tr> |
|
285 |
<th>[% 'Invoice' | $T8 %]</th> |
|
286 |
<!-- <th>[% 'Invoice Date' | $T8 %]</th> --> |
|
287 |
<td>[% L.date_tag('invdate', invdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")', class='wi-date') %]</td> |
|
288 |
<td><input type="text" name="invnumber" id="invnumber" value="[% HTML.escape(invnumber) %]" class="wi-small"></td> |
|
289 |
</tr> |
|
290 |
<tr> |
|
291 |
<th>[% 'Due Date' | $T8 %]</th> |
|
292 |
<td> |
|
293 |
<span class="condensed" id="duedate_container"[% IF payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% L.date_tag('duedate', duedate, class='wi-date') %]</span> |
|
294 |
<span class="condensed" id="duedate_fixed"[% IF !payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% HTML.escape(duedate, class='wi-date') %]</span> |
|
295 |
</td> |
|
296 |
<td></td> |
|
297 |
</tr> |
|
298 |
[% END %] |
|
299 |
<tr> |
|
300 |
<th>[% 'Tax point' | $T8 %]</th> |
|
301 |
<td>[% L.date_tag('tax_point', tax_point, id='tax_point', class='wi-date') %]</td> |
|
302 |
</tr> |
|
303 |
[% IF !is_type_credit_note %] |
|
304 |
<tr> |
|
305 |
<th>[% 'Delivery Order Number' | $T8 %]</th> |
|
306 |
<td></td> |
|
307 |
<td><input type="text" name="donumber" id="donumber" value="[% HTML.escape(donumber) %]" class="wi-small"></td> |
|
308 |
</tr> |
|
309 |
[% END %] |
|
310 |
<tr> |
|
311 |
<th>[% 'Delivery Date' | $T8 %]</th> |
|
312 |
<td>[% L.date_tag('deliverydate', deliverydate, class='wi-date') %]</td> |
|
313 |
<td></td> |
|
314 |
</tr> |
|
315 |
<tr> |
|
316 |
<th>[% 'Order' | $T8 %]</th> |
|
317 |
<!-- <th>[% 'Order Date' | $T8 %]</th> --> |
|
318 |
<td>[% L.date_tag('orddate', orddate, class='wi-date') %]</td> |
|
319 |
<td><input type="text" name="ordnumber" id="ordnumber" value="[% HTML.escape(ordnumber) %]" class="wi-small"></td> |
|
320 |
</tr> |
|
321 |
<tr> |
|
322 |
</tr> |
|
323 |
<tr> |
|
324 |
<th>[% 'Quotation' | $T8 %]</th> |
|
325 |
<!-- <th>[% 'Quotation Date' | $T8 %]</th> --> |
|
326 |
<td>[% L.date_tag('quodate', quodate, class='wi-date') %]</td> |
|
327 |
<td><input type="text" name="quonumber" id="quonumber" value="[% HTML.escape(quonumber) %]" class="wi-small"></td> |
|
328 |
</tr> |
|
329 |
<tr> |
|
330 |
</tr> |
|
331 |
<tr> |
|
332 |
<th>[% 'Customer Order Number' | $T8 %]</th> |
|
333 |
<td> </td> |
|
334 |
<td><input type="text" name="cusordnumber" id="cusordnumber" value="[% HTML.escape(cusordnumber) %]" class="wi-small"></td> |
|
335 |
</tr> |
|
336 |
<tr> |
|
337 |
<th>[% 'Project' | $T8 %]</th> |
|
338 |
<td colspan="2">[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = '1', onChange = "document.getElementById('update_button').click();", class="wi-lightwide") %]</td> |
|
339 |
</tr> |
|
340 |
</tbody> |
|
341 |
</table> |
|
342 |
|
|
343 |
</div> <!-- /.wrapper --> |
|
344 |
|
|
345 |
<input type="hidden" name="webdav" value="[% webdav %]"> |
|
346 |
|
|
347 |
<script type="text/javascript" src="js/show_form_details.js"></script> |
|
348 |
<script type="text/javascript" src="js/show_vc_details.js"></script> |
|
349 |
<script type="text/javascript" src="js/show_history.js"></script> |
|
350 |
[% IF (resubmit && is_format_html) || resubmit || creditwarning != '' %] |
|
351 |
<script type="text/javascript"><!-- |
|
352 |
$('document').ready(function(){ |
|
353 |
[% IF resubmit && is_format_html %] |
|
354 |
window.open('about:blank','Beleg'); |
|
355 |
document.invoice.target = 'Beleg'; |
|
356 |
kivi.SalesPurchase.show_print_dialog(); |
|
357 |
kivi.SalesPurchase.print_record(); |
|
358 |
[% ELSIF resubmit %] |
|
359 |
kivi.SalesPurchase.show_print_dialog(); |
|
360 |
kivi.SalesPurchase.print_record(); |
|
361 |
[% ELSIF creditwarning != '' %] |
|
362 |
alert('[% 'Credit Limit exceeded!!!' | $T8 %]'); |
|
363 |
[% ELSE %] |
|
364 |
[% END %] |
|
311 | 365 |
}); |
312 |
//--> |
|
313 |
</script> |
|
314 |
<table width="100%"> |
|
366 |
//--></script> |
|
367 |
[% END %] |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/is/