Revision 11972cbb
Von Hans P. Schlaepfer vor fast 5 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, 2) %]"> |
|
90 |
[% LxERP.format_amount($forex, 2) %] |
|
91 |
[% ELSE %] |
|
92 |
[% IF $changeable %] |
|
93 |
<input name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 2, 1) %]"> |
|
94 |
[% ELSE %] |
|
95 |
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2, 1) %]"> |
|
96 |
[% LxERP.format_amount($exchangerate, 2, 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, 2) %]"> |
|
89 |
[% LxERP.format_amount($forex, 2) %] |
|
90 |
[% ELSE %] |
|
91 |
[% IF $changeable %] |
|
92 |
<input type="text" name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 2, 1) %]"> |
|
93 |
[% ELSE %] |
|
94 |
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2, 1) %]"> |
|
95 |
[% LxERP.format_amount($exchangerate, 2, 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_DEPARTMENTS %] |
|
141 |
<tr> |
|
142 |
<th align="right" nowrap>[% 'Department' | $T8 %]</th> |
|
143 |
<td colspan="3"> |
|
144 |
[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width:250px') %] |
|
145 |
</td> |
|
146 |
</tr> |
|
147 |
[%- END %] |
|
148 |
[%- IF currencies %] |
|
149 |
<tr> |
|
150 |
<th align="right">[% 'Currency' | $T8 %]</th> |
|
151 |
<td>[% currencies %]</td> |
|
152 |
</tr> |
|
153 |
[%- END %] |
|
154 |
<tr style='display:none'> |
|
155 |
<td> |
|
156 |
<input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]"> |
|
157 |
<input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]"> |
|
158 |
<input type="hidden" name="rndgain_accno" value="[% rndgain_accno %]"> |
|
159 |
<input type="hidden" name="rndloss_accno" value="[% rndloss_accno %]"> |
|
160 |
</td> |
|
161 |
</tr> |
|
162 |
[%- IF show_exchangerate %] |
|
163 |
<tr> |
|
164 |
<th align="right">[% 'Exchangerate' | $T8 %]</th> |
|
165 |
<td> |
|
166 |
[%- 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_DEPARTMENTS %] |
|
161 |
<tr> |
|
162 |
<th>[% 'Department' | $T8 %]</th> |
|
163 |
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class='wi-wide') %]</td> |
|
164 |
</tr> |
|
165 |
[% END %] |
|
166 |
<tr style='display:none'> |
|
167 |
<td> |
|
168 |
<input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]"> |
|
169 |
<input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]"> |
|
170 |
<input type="hidden" name="rndgain_accno" value="[% rndgain_accno %]"> |
|
171 |
<input type="hidden" name="rndloss_accno" value="[% rndloss_accno %]"> |
|
172 |
</td> |
|
173 |
</tr> |
|
174 |
[% IF show_exchangerate %] |
|
175 |
<tr> |
|
176 |
<th>[% 'Exchangerate' | $T8 %]</th> |
|
177 |
<td> |
|
178 |
[% IF forex %] |
|
167 | 179 |
[% LxERP.format_amount(exchangerate, 2) %] |
168 |
[%- ELSE %] |
|
169 |
<input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]"> |
|
170 |
[%- END %] |
|
171 |
</td> |
|
172 |
</tr> |
|
173 |
[%- END %] |
|
174 |
<tr> |
|
175 |
<th align="right" nowrap>[% 'Shipping Point' | $T8 %]</th> |
|
176 |
<td colspan="3"><input size='35' name="shippingpoint" value="[% HTML.escape(shippingpoint) %]"></td> |
|
177 |
</tr> |
|
178 |
<tr> |
|
179 |
<th align="right" nowrap>[% 'Ship via' | $T8 %]</th> |
|
180 |
<td colspan="3"><input size='35' name="shipvia" value="[% HTML.escape(shipvia) %]"></td> |
|
181 |
</tr> |
|
182 |
<tr> |
|
183 |
<th align="right">[% 'Transaction description' | $T8 %]</th> |
|
184 |
<td colspan="3">[% L.input_tag("transaction_description", transaction_description, size=35, "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]</td> |
|
185 |
</tr> |
|
186 |
</table> |
|
187 |
</td> |
|
188 |
<td align="right" valign="top"> |
|
189 |
<table> |
|
190 |
<tr> |
|
191 |
<th align="right">[% 'Employee' | $T8 %]</th> |
|
192 |
<td> |
|
193 |
[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %] |
|
194 |
</td> |
|
195 |
</tr> |
|
196 |
[%- IF ALL_SALESMEN.size %] |
|
197 |
<tr> |
|
198 |
<th align="right">[% 'Salesman' | $T8 %]</th> |
|
199 |
<td> |
|
200 |
[% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name') %] |
|
201 |
</td> |
|
202 |
</tr> |
|
203 |
[%- END %] |
|
180 |
[% ELSE %] |
|
181 |
<input type="text" name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]"> |
|
182 |
[% END %] |
|
183 |
</td> |
|
184 |
</tr> |
|
185 |
[% END %] |
|
186 |
<tr> |
|
187 |
<th>[% 'Shipping Point' | $T8 %]</th> |
|
188 |
<td><input type="text" class="wi-wide" name="shippingpoint" value="[% HTML.escape(shippingpoint) %]"></td> |
|
189 |
</tr> |
|
190 |
<tr> |
|
191 |
<th>[% 'Ship via' | $T8 %]</th> |
|
192 |
<td><input type="text" class="wi-wide" name="shipvia" value="[% HTML.escape(shipvia) %]"></td> |
|
193 |
</tr> |
|
194 |
<tr> |
|
195 |
<th>[% 'Transaction description' | $T8 %]</th> |
|
196 |
<td>[% L.input_tag("transaction_description", transaction_description, class="wi-wide", "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]</td> |
|
197 |
</tr> |
|
198 |
</tbody> |
|
199 |
</table> |
|
204 | 200 |
|
205 |
[%- IF is_type_credit_note %] |
|
206 |
<tr> |
|
207 |
<th align="right" nowrap>[% 'Credit Note Number' | $T8 %]</th> |
|
208 |
<td colspan="3"><input size='11' name="invnumber" id="invnumber" value="[% HTML.escape(invnumber) %]"></td> |
|
209 |
</tr> |
|
210 |
<tr> |
|
211 |
<th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th> |
|
212 |
<td colspan="3"><input size='11' name="invnumber_for_credit_note" id="invnumber_for_credit_note" value="[% HTML.escape(invnumber_for_credit_note) %]"></td> |
|
213 |
</tr> |
|
214 |
<tr> |
|
215 |
<th align="right">[% 'Credit Note Date' | $T8 %]</th> |
|
216 |
<td>[% L.date_tag('invdate', invdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")') %]</td> |
|
217 |
</tr> |
|
218 |
[%- ELSE %] |
|
219 |
<tr> |
|
220 |
<th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th> |
|
221 |
<td colspan="3"><input size='11' name="invnumber" id="invnumber" value="[% HTML.escape(invnumber) %]"></td> |
|
222 |
</tr> |
|
223 |
<tr> |
|
224 |
<th align="right">[% 'Invoice Date' | $T8 %]</th> |
|
225 |
<td>[% L.date_tag('invdate', invdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")') %]</td> |
|
226 |
</tr> |
|
227 |
<tr> |
|
228 |
<th align="right">[% 'Due Date' | $T8 %]</th> |
|
229 |
<td> |
|
230 |
<span id="duedate_container"[% IF payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% L.date_tag('duedate', duedate) %]</span> |
|
231 |
<span id="duedate_fixed"[% IF !payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% HTML.escape(duedate) %]</span> |
|
232 |
</td> |
|
233 |
</tr> |
|
234 |
<tr> |
|
235 |
<th align="right" nowrap>[% 'Delivery Order Number' | $T8 %]</th> |
|
236 |
<td colspan="3"><input size='11' name="donumber" id="donumber" value="[% HTML.escape(donumber) %]"></td> |
|
237 |
</tr> |
|
238 |
[%- END %] |
|
239 |
<tr> |
|
240 |
<th align="right">[% 'Delivery Date' | $T8 %]</th> |
|
241 |
<td>[% L.date_tag('deliverydate', deliverydate) %]</td> |
|
242 |
</tr> |
|
243 |
<tr> |
|
244 |
<th align="right" nowrap>[% 'Order Number' | $T8 %]</th> |
|
245 |
<td colspan="3"><input size='11' name="ordnumber" id="ordnumber" value="[% HTML.escape(ordnumber) %]"></td> |
|
246 |
</tr> |
|
247 |
<tr> |
|
248 |
<th align="right" nowrap>[% 'Order Date' | $T8 %]</th> |
|
249 |
<td>[% L.date_tag('orddate', orddate) %]</td> |
|
250 |
</tr> |
|
251 |
<tr> |
|
252 |
<th align="right" nowrap>[% 'Quotation Number' | $T8 %]</th> |
|
253 |
<td colspan="3"><input size='11' name="quonumber" id="quonumber" value="[% HTML.escape(quonumber) %]"></td> |
|
254 |
</tr> |
|
255 |
<tr> |
|
256 |
<th align="right" nowrap>[% 'Quotation Date' | $T8 %]</th> |
|
257 |
<td>[% L.date_tag('quodate', quodate) %]</td> |
|
258 |
</tr> |
|
259 |
<tr> |
|
260 |
<th align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th> |
|
261 |
<td colspan="3"><input size='11' name="cusordnumber" id="cusordnumber" value="[% HTML.escape(cusordnumber) %]"></td> |
|
262 |
</tr> |
|
263 |
<tr> |
|
264 |
<th align="right" nowrap>[% 'Project Number' | $T8 %]</th> |
|
265 |
<td> |
|
266 |
[%- L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = '1', onChange = "document.getElementById('update_button').click();") %] |
|
267 |
</td> |
|
268 |
</tr> |
|
269 |
</table> |
|
270 |
</td> |
|
271 |
</tr> |
|
272 |
<tr style='display:none'> |
|
273 |
<td> |
|
274 |
<input type="hidden" name="webdav" value="[% webdav %]"> |
|
275 |
</td> |
|
276 |
</tr> |
|
277 |
</table> |
|
201 |
<table class="tbl-horizontal"> |
|
202 |
<caption>[% 'Payment / Delivery Options' | $T8 %]</caption> |
|
203 |
<colgroup> <col class="wi-wide"> </colgroup> |
|
204 |
<tbody> |
|
205 |
<tr> |
|
206 |
<th class="single-col"> |
|
207 |
<span class="label above">[% 'Payment Terms' | $T8 %]</span> |
|
208 |
[% L.select_tag('payment_id', payment_terms, default = payment_id, title_key = 'description', with_empty = 1, class="wi-wide") %] |
|
209 |
<script type='text/javascript'>$('#payment_id').change(function(){ kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate"); })</script> |
|
210 |
</th> |
|
211 |
</tr> |
|
212 |
<tr> |
|
213 |
<th class="single-col"> |
|
214 |
<span class="label above">[% 'Delivery Terms' | $T8 %]</span> |
|
215 |
[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', class="wi-wide") %] |
|
216 |
</th> |
|
217 |
</tr> |
|
218 |
<tr> |
|
219 |
<th>[% 'direct debit' | $T8 %] [% L.checkbox_tag('direct_debit', 'checked', direct_debit) %]</th> |
|
220 |
</tr> |
|
221 |
<tr> |
|
222 |
<th class="caption">[% 'Notes (will appear on hard copy)' | $T8 %]</th> |
|
223 |
</tr> |
|
224 |
<tr> |
|
225 |
<td class="wi-wide"> |
|
226 |
[% L.textarea_tag("notes", notes, wrap="soft", class="wi-wide texteditor", style="height:84px;") %] |
|
227 |
</td> |
|
228 |
</tr> |
|
229 |
<tr> |
|
230 |
<th> |
|
231 |
<span class="label above">[% 'Internal Notes' | $T8 %]</span> |
|
232 |
[% L.textarea_tag("intnotes", intnotes, wrap="soft", class="wi-wide") %] |
|
233 |
</th> |
|
234 |
</tr> |
|
235 |
</tbody> |
|
236 |
</table> |
|
278 | 237 |
|
279 |
<script type="text/javascript" src="js/show_form_details.js"></script> |
|
280 |
<script type="text/javascript" src="js/show_vc_details.js"></script> |
|
281 |
<script type="text/javascript" src="js/show_history.js"></script> |
|
282 |
<script type="text/javascript"> |
|
283 |
<!-- |
|
284 |
$('document').ready(function(){ |
|
285 |
[% IF resubmit && is_format_html %] |
|
286 |
window.open('about:blank','Beleg'); |
|
287 |
document.invoice.target = 'Beleg'; |
|
288 |
kivi.SalesPurchase.show_print_dialog(); |
|
289 |
kivi.SalesPurchase.print_record(); |
|
290 |
[% ELSIF resubmit %] |
|
291 |
kivi.SalesPurchase.show_print_dialog(); |
|
292 |
kivi.SalesPurchase.print_record(); |
|
293 |
[% ELSIF creditwarning != '' %] |
|
294 |
alert('[% 'Credit Limit exceeded!!!' | $T8 %]'); |
|
295 |
[% ELSE %] |
|
296 |
[% END %] |
|
238 |
<table class="tbl-horizontal"> |
|
239 |
<caption>[% 'Dates & Numbers' | $T8 %]</caption> |
|
240 |
<colgroup> <col class="wi-small"><col class="wi-small"><col class="wi-small"> </colgroup> |
|
241 |
<tbody> |
|
242 |
<tr> |
|
243 |
<th>[% 'Employee' | $T8 %]</th> |
|
244 |
<td colspan="2"> |
|
245 |
[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name', class="wi-lightwide") %] |
|
246 |
</td> |
|
247 |
</tr> |
|
248 |
[% IF ALL_SALESMEN.size %] |
|
249 |
<tr> |
|
250 |
<th>[% 'Salesman' | $T8 %]</th> |
|
251 |
<td colspan="2"> |
|
252 |
[% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name', class="wi-lightwide") %] |
|
253 |
</td> |
|
254 |
</tr> |
|
255 |
[% END %] |
|
256 |
<tr> |
|
257 |
<th> </th> |
|
258 |
<th>[% 'Date' | $T8 %]</th> |
|
259 |
<th>[% 'Number' | $T8 %]</th> |
|
260 |
</tr> |
|
261 |
[% IF is_type_credit_note %] |
|
262 |
<tr> |
|
263 |
<th>[% 'Credit Note' | $T8 %]</th> |
|
264 |
<!-- <th>[% 'Credit Note Number' | $T8 %]</th> --> |
|
265 |
<td>[% L.date_tag('invdate', invdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")', class='wi-date') %]</td> |
|
266 |
<td><input type="text" name="invnumber" id="invnumber" value="[% HTML.escape(invnumber) %]" class="wi-small"></td> |
|
267 |
</tr> |
|
268 |
<tr> |
|
269 |
<th>[% 'Invoice' | $T8 %]</th> |
|
270 |
<td> </td> |
|
271 |
<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> |
|
272 |
</tr> |
|
273 |
<tr> |
|
274 |
</tr> |
|
275 |
[% ELSE %] |
|
276 |
<tr> |
|
277 |
<th>[% 'Invoice' | $T8 %]</th> |
|
278 |
<!-- <th>[% 'Invoice Date' | $T8 %]</th> --> |
|
279 |
<td>[% L.date_tag('invdate', invdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")', class='wi-date') %]</td> |
|
280 |
<td><input type="text" name="invnumber" id="invnumber" value="[% HTML.escape(invnumber) %]" class="wi-small"></td> |
|
281 |
</tr> |
|
282 |
<tr> |
|
283 |
<th>[% 'Due Date' | $T8 %]</th> |
|
284 |
<td> |
|
285 |
<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> |
|
286 |
<span class="condensed" id="duedate_fixed"[% IF !payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% HTML.escape(duedate, class='wi-date') %]</span> |
|
287 |
</td> |
|
288 |
<td></td> |
|
289 |
</tr> |
|
290 |
<tr> |
|
291 |
<th>[% 'Delivery Order Number' | $T8 %]</th> |
|
292 |
<td></td> |
|
293 |
<td><input type="text" name="donumber" id="donumber" value="[% HTML.escape(donumber) %]" class="wi-small"></td> |
|
294 |
</tr> |
|
295 |
[% END %] |
|
296 |
<tr> |
|
297 |
<th>[% 'Delivery Date' | $T8 %]</th> |
|
298 |
<td>[% L.date_tag('deliverydate', deliverydate, class='wi-date') %]</td> |
|
299 |
<td></td> |
|
300 |
</tr> |
|
301 |
<tr> |
|
302 |
<th>[% 'Order' | $T8 %]</th> |
|
303 |
<!-- <th>[% 'Order Date' | $T8 %]</th> --> |
|
304 |
<td>[% L.date_tag('orddate', orddate, class='wi-date') %]</td> |
|
305 |
<td><input type="text" name="ordnumber" id="ordnumber" value="[% HTML.escape(ordnumber) %]" class="wi-small"></td> |
|
306 |
</tr> |
|
307 |
<tr> |
|
308 |
</tr> |
|
309 |
<tr> |
|
310 |
<th>[% 'Quotation' | $T8 %]</th> |
|
311 |
<!-- <th>[% 'Quotation Date' | $T8 %]</th> --> |
|
312 |
<td>[% L.date_tag('quodate', quodate, class='wi-date') %]</td> |
|
313 |
<td><input type="text" name="quonumber" id="quonumber" value="[% HTML.escape(quonumber) %]" class="wi-small"></td> |
|
314 |
</tr> |
|
315 |
<tr> |
|
316 |
</tr> |
|
317 |
<tr> |
|
318 |
<th>[% 'Customer Order Number' | $T8 %]</th> |
|
319 |
<td> </td> |
|
320 |
<td><input type="text" name="cusordnumber" id="cusordnumber" value="[% HTML.escape(cusordnumber) %]" class="wi-small"></td> |
|
321 |
</tr> |
|
322 |
<tr> |
|
323 |
<th>[% 'Project' | $T8 %]</th> |
|
324 |
<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> |
|
325 |
</tr> |
|
326 |
</tbody> |
|
327 |
</table> |
|
328 |
|
|
329 |
</div> <!-- /.wrapper --> |
|
330 |
|
|
331 |
<input type="hidden" name="webdav" value="[% webdav %]"> |
|
332 |
|
|
333 |
<script type="text/javascript" src="js/show_form_details.js"></script> |
|
334 |
<script type="text/javascript" src="js/show_vc_details.js"></script> |
|
335 |
<script type="text/javascript" src="js/show_history.js"></script> |
|
336 |
[% IF (resubmit && is_format_html) || resubmit || creditwarning != '' %] |
|
337 |
<script type="text/javascript"><!-- |
|
338 |
$('document').ready(function(){ |
|
339 |
[% IF resubmit && is_format_html %] |
|
340 |
window.open('about:blank','Beleg'); |
|
341 |
document.invoice.target = 'Beleg'; |
|
342 |
kivi.SalesPurchase.show_print_dialog(); |
|
343 |
kivi.SalesPurchase.print_record(); |
|
344 |
[% ELSIF resubmit %] |
|
345 |
kivi.SalesPurchase.show_print_dialog(); |
|
346 |
kivi.SalesPurchase.print_record(); |
|
347 |
[% ELSIF creditwarning != '' %] |
|
348 |
alert('[% 'Credit Limit exceeded!!!' | $T8 %]'); |
|
349 |
[% ELSE %] |
|
350 |
[% END %] |
|
297 | 351 |
}); |
298 |
//--> |
|
299 |
</script> |
|
300 |
<table width="100%"> |
|
352 |
//--></script> |
|
353 |
[% END %] |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/is/