Revision 9bace48d
Von Werner Hahn vor etwa 1 Monat hinzugefügt
- ID 9bace48d098168de022afeb3a5c7767cc712418a
- Vorgänger 6a559670
templates/design40_webpages/pos/form.html | ||
---|---|---|
8 | 8 |
|
9 | 9 |
|
10 | 10 |
<div id="pos_content" class="pos_content"> |
11 |
<div class="container_pos_left"> |
|
12 |
<div> |
|
13 |
<table> |
|
14 |
<tr> |
|
15 |
<th>[% 'Customer' | $T8 %]</th> |
|
16 |
<td> [% P.customer_vendor.picker("customer_id",'',type="customer", show_details="1", label=LxERP.t8('Customer')) %]</td> |
|
17 |
<td>[% L.button_tag("input_delete", LxERP.t8('Input delete') ) %]</td> |
|
18 |
</tr> |
|
19 |
</table> |
|
20 |
</div> |
|
21 |
|
|
22 |
<div class="toggle_panel control-panel toggle_order_info %]"> |
|
23 |
<a href="#" onClick='javascript:$(".toggle_panel_block").toggle()' class="button toggle off neutral">Auftragsdaten</a> |
|
24 |
</div> |
|
25 |
<div class="toggle_panel_block" style="display:none;"> |
|
26 |
<div id="tables_left" style="float:left;"> |
|
27 |
<table style="width:40%"> |
|
28 |
<caption>[% 'Customer & Order Information' | $T8 %]</caption> |
|
29 |
<colgroup><col class="wi-mediumsmall"><col class="wi-lightwide"></colgroup> |
|
30 |
<tbody> |
|
31 |
<tr id='cp_row' [% IF !SELF.order.${SELF.cv}.contacts.size %]style='display:none'[% END %]> |
|
32 |
<th>[% 'Contact Person' | $T8 %]</th> |
|
33 |
<td>[% L.select_tag('order.cp_id', |
|
34 |
SELF.order.${SELF.cv}.contacts, |
|
35 |
default=SELF.order.cp_id, |
|
36 |
title_key='full_name_dep', |
|
37 |
value_key='cp_id', |
|
38 |
with_empty=1, |
|
39 |
class='wi-lightwide') %]</td> |
|
40 |
</tr> |
|
41 |
<tr> |
|
42 |
<th>[% 'Shipping Address' | $T8 %]</th> |
|
43 |
<td> |
|
44 |
<span id='shipto_selection' [% IF !SELF.order.${SELF.cv}.shipto.size %]style='display:none'[% END %]> |
|
45 |
[% shiptos = [ { shipto_id => "", displayable_id => LxERP.t8("No/individual shipping address") } ] ; |
|
46 |
FOREACH s = SELF.order.${SELF.cv}.shipto ; |
|
47 |
shiptos.push(s) ; |
|
48 |
END ; |
|
49 |
L.select_tag('order.shipto_id', |
|
50 |
shiptos, |
|
51 |
default=SELF.order.shipto_id, |
|
11 |
<div class="salesman ">[% "Salesman" | $T8 %]<br> |
|
12 |
[% L.select_tag('order.salesman_id', |
|
13 |
SELF.all_salesmen, |
|
14 |
#[{id=1,name=werner},{id=2,name=Max}], |
|
15 |
default=(SELF.order.salesman_id ? SELF.order.salesman_id : SELF.current_employee_id), |
|
16 |
class='wi-normal', |
|
17 |
title_key='safe_name') %] |
|
18 |
</div> |
|
19 |
<div class="input_cv"> |
|
20 |
<div>[% 'Customer' | $T8 %]</div> |
|
21 |
<div> [% P.customer_vendor.picker("customer_id",'',type="customer", show_details="1", label=LxERP.t8('Customer')) %]</div> |
|
22 |
<div>[% L.button_tag("input_delete", LxERP.t8('Input delete') ) %]</div> |
|
23 |
</div> |
|
24 |
<div class="order"> |
|
25 |
<div class="toggle_panel control-panel toggle_order_info order_data %]"> |
|
26 |
<a href="#" onClick='javascript:$(".toggle_panel_block").toggle()' class="button toggle off neutral">Auftragsdaten</a> |
|
27 |
</div> |
|
28 |
<div class="toggle_panel_block order_data_block" style="display:none;"> |
|
29 |
<table style="width:40%"> |
|
30 |
<caption>[% 'Customer & Order Information' | $T8 %]</caption> |
|
31 |
<colgroup><col class="wi-mediumsmall"><col class="wi-lightwide"></colgroup> |
|
32 |
<tbody> |
|
33 |
<tr id='cp_row' [% IF !SELF.order.${SELF.cv}.contacts.size %]style='display:none'[% END %]> |
|
34 |
<th>[% 'Contact Person' | $T8 %]</th> |
|
35 |
<td>[% L.select_tag('order.cp_id', |
|
36 |
SELF.order.${SELF.cv}.contacts, |
|
37 |
default=SELF.order.cp_id, |
|
38 |
title_key='full_name_dep', |
|
39 |
value_key='cp_id', |
|
40 |
with_empty=1, |
|
41 |
class='wi-lightwide') %]</td> |
|
42 |
</tr> |
|
43 |
<tr> |
|
44 |
<th>[% 'Shipping Address' | $T8 %]</th> |
|
45 |
<td> |
|
46 |
<span id='shipto_selection' [% IF !SELF.order.${SELF.cv}.shipto.size %]style='display:none'[% END %]> |
|
47 |
[% shiptos = [ { shipto_id => "", displayable_id => LxERP.t8("No/individual shipping address") } ] ; |
|
48 |
FOREACH s = SELF.order.${SELF.cv}.shipto ; |
|
49 |
shiptos.push(s) ; |
|
50 |
END ; |
|
51 |
L.select_tag('order.shipto_id', |
|
52 |
shiptos, |
|
53 |
default=SELF.order.shipto_id, |
|
54 |
title_key='displayable_id', |
|
55 |
value_key='shipto_id', |
|
56 |
with_empty=0, |
|
57 |
class='wi-lightwide') %] |
|
58 |
</span> |
|
59 |
[% L.button_tag("kivi.Order.edit_custom_shipto()", |
|
60 |
LxERP.t8("Custom shipto"), |
|
61 |
class='button neutral below wi-lightwide') %] |
|
62 |
</td> |
|
63 |
</tr> |
|
64 |
<tr id="billing_address_row"[% IF !SELF.order.customer.additional_billing_addresses.as_list.size %]style="display:none"[% END %]> |
|
65 |
<th>[% 'Custom Billing Address' | $T8 %]</th> |
|
66 |
<td> |
|
67 |
[% L.select_tag('order.billing_address_id', |
|
68 |
SELF.order.customer.additional_billing_addresses, |
|
69 |
default=SELF.order.billing_address_id, |
|
52 | 70 |
title_key='displayable_id', |
53 |
value_key='shipto_id',
|
|
54 |
with_empty=0,
|
|
71 |
value_key='id', |
|
72 |
with_empty=1,
|
|
55 | 73 |
class='wi-lightwide') %] |
56 |
</span> |
|
57 |
[% L.button_tag("kivi.Order.edit_custom_shipto()", |
|
58 |
LxERP.t8("Custom shipto"), |
|
59 |
class='button neutral below wi-lightwide') %] |
|
60 |
</td> |
|
61 |
</tr> |
|
62 |
<tr id="billing_address_row"[% IF !SELF.order.customer.additional_billing_addresses.as_list.size %]style="display:none"[% END %]> |
|
63 |
<th>[% 'Custom Billing Address' | $T8 %]</th> |
|
64 |
<td> |
|
65 |
[% L.select_tag('order.billing_address_id', |
|
66 |
SELF.order.customer.additional_billing_addresses, |
|
67 |
default=SELF.order.billing_address_id, |
|
68 |
title_key='displayable_id', |
|
69 |
value_key='id', |
|
70 |
with_empty=1, |
|
71 |
class='wi-lightwide') %] |
|
72 |
</td> |
|
73 |
</tr> |
|
74 |
[% PROCESS order/tabs/_business_info_row.html SELF=SELF %] |
|
75 |
<tr> |
|
76 |
<th>[% 'Steuersatz' | $T8 %]</th> |
|
77 |
<td>[% L.select_tag('order.taxzone_id', SELF.all_taxzones, default=SELF.order.taxzone_id, title_key='description', class='recalc wi-lightwide') %]</td> |
|
78 |
</tr> |
|
79 |
<!-- CURRENCY und EXCAHANGERATE rausgenommen --> |
|
80 |
[% IF SELF.all_languages.size %] |
|
74 |
</td> |
|
75 |
</tr> |
|
76 |
[% PROCESS order/tabs/_business_info_row.html SELF=SELF %] |
|
81 | 77 |
<tr> |
82 |
<th>[% 'Language' | $T8 %]</th> |
|
83 |
<td> |
|
84 |
[% L.select_tag('order.language_id', SELF.all_languages, default=SELF.order.language_id, title_key='description', with_empty=1, class='wi-lightwide') %] |
|
78 |
<th>[% 'Steuersatz' | $T8 %]</th> |
|
79 |
<td>[% L.select_tag('order.taxzone_id', SELF.all_taxzones, default=SELF.order.taxzone_id, title_key='description', class='recalc wi-lightwide') %]</td> |
|
80 |
</tr> |
|
81 |
<!-- CURRENCY und EXCAHANGERATE rausgenommen --> |
|
82 |
[% IF SELF.all_languages.size %] |
|
83 |
<tr> |
|
84 |
<th>[% 'Language' | $T8 %]</th> |
|
85 |
<td> |
|
86 |
[% L.select_tag('order.language_id', SELF.all_languages, default=SELF.order.language_id, title_key='description', with_empty=1, class='wi-lightwide') %] |
|
87 |
</td> |
|
88 |
</tr> |
|
89 |
[% END %] |
|
90 |
[% IF SELF.all_departments.size %] |
|
91 |
<tr> |
|
92 |
<th>[% 'Department' | $T8 %]</th> |
|
93 |
<td> |
|
94 |
[% L.select_tag('order.department_id', SELF.all_departments, default=SELF.order.department_id, title_key='description', with_empty=1, class='wi-lightwide') %] |
|
95 |
</td> |
|
96 |
</tr> |
|
97 |
[% END %] |
|
98 |
<tr> |
|
99 |
<th>[% 'Shipping Point' | $T8 %]</th> |
|
100 |
<td>[% L.input_tag('order.shippingpoint', SELF.order.shippingpoint, class='wi-lightwide') %]</td> |
|
101 |
</tr> |
|
102 |
<tr> |
|
103 |
<th>[% 'Ship via' | $T8 %]</th> |
|
104 |
<td>[% L.input_tag('order.shipvia', SELF.order.shipvia, class='wi-lightwide') %]</td> |
|
105 |
</tr> |
|
106 |
<tr> |
|
107 |
<th>[% 'Transaction description' | $T8 %]</th> |
|
108 |
<td>[% L.input_tag('order.transaction_description', SELF.order.transaction_description, 'data-validate'=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '', class='wi-lightwide') %]</td> |
|
109 |
</tr> |
|
110 |
<tr> |
|
111 |
<th>[% 'Project Number' | $T8 %]</th> |
|
112 |
<td>[% P.project.picker('order.globalproject_id', SELF.order.globalproject_id, class='wi-lightwide') %]</td> |
|
113 |
</tr> |
|
114 |
</tbody> |
|
115 |
</table> |
|
116 |
|
|
117 |
<table class="tbl-horizontal col"> |
|
118 |
<caption>[% 'Terms' | $T8 %]</caption> |
|
119 |
<colgroup><col class="wi-mediumsmall"><col class="wi-lightwide"></colgroup> |
|
120 |
<tbody> |
|
121 |
<tr> |
|
122 |
<td colspan="2"> |
|
123 |
<span class="label above">[% 'Payment Terms' | $T8 %]</span> |
|
124 |
[% L.select_tag('order.payment_id', |
|
125 |
SELF.all_payment_terms, |
|
126 |
default = SELF.order.payment_id, |
|
127 |
with_empty = 1, |
|
128 |
title_key = 'description', |
|
129 |
class = 'wi-mediumsmall-lightwide') %] |
|
85 | 130 |
</td> |
86 | 131 |
</tr> |
87 |
[% END %] |
|
88 |
[% IF SELF.all_departments.size %] |
|
89 | 132 |
<tr> |
90 |
<th>[% 'Department' | $T8 %]</th> |
|
91 |
<td> |
|
92 |
[% L.select_tag('order.department_id', SELF.all_departments, default=SELF.order.department_id, title_key='description', with_empty=1, class='wi-lightwide') %] |
|
133 |
<td colspan="2"> |
|
134 |
<span class="label above">[% 'Delivery Terms' | $T8 %]</span> |
|
135 |
[% L.select_tag('order.delivery_term_id', |
|
136 |
SELF.all_delivery_terms, |
|
137 |
default = SELF.order.delivery_term_id, |
|
138 |
with_empty = 1, |
|
139 |
title_key = 'description', |
|
140 |
class = 'wi-mediumsmall-lightwide') %] |
|
93 | 141 |
</td> |
94 | 142 |
</tr> |
95 |
[% END %] |
|
96 |
<tr> |
|
97 |
<th>[% 'Shipping Point' | $T8 %]</th> |
|
98 |
<td>[% L.input_tag('order.shippingpoint', SELF.order.shippingpoint, class='wi-lightwide') %]</td> |
|
99 |
</tr> |
|
100 |
<tr> |
|
101 |
<th>[% 'Ship via' | $T8 %]</th> |
|
102 |
<td>[% L.input_tag('order.shipvia', SELF.order.shipvia, class='wi-lightwide') %]</td> |
|
103 |
</tr> |
|
104 |
<tr> |
|
105 |
<th>[% 'Transaction description' | $T8 %]</th> |
|
106 |
<td>[% L.input_tag('order.transaction_description', SELF.order.transaction_description, 'data-validate'=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '', class='wi-lightwide') %]</td> |
|
107 |
</tr> |
|
108 |
<tr> |
|
109 |
<th>[% 'Project Number' | $T8 %]</th> |
|
110 |
<td>[% P.project.picker('order.globalproject_id', SELF.order.globalproject_id, class='wi-lightwide') %]</td> |
|
111 |
</tr> |
|
112 |
</tbody> |
|
113 |
</table> |
|
114 |
|
|
115 |
<table class="tbl-horizontal col"> |
|
116 |
<caption>[% 'Terms' | $T8 %]</caption> |
|
117 |
<colgroup><col class="wi-mediumsmall"><col class="wi-lightwide"></colgroup> |
|
118 |
<tbody> |
|
119 |
<tr> |
|
120 |
<td colspan="2"> |
|
121 |
<span class="label above">[% 'Payment Terms' | $T8 %]</span> |
|
122 |
[% L.select_tag('order.payment_id', |
|
123 |
SELF.all_payment_terms, |
|
124 |
default = SELF.order.payment_id, |
|
125 |
with_empty = 1, |
|
126 |
title_key = 'description', |
|
127 |
class = 'wi-mediumsmall-lightwide') %] |
|
128 |
</td> |
|
129 |
</tr> |
|
130 |
<tr> |
|
131 |
<td colspan="2"> |
|
132 |
<span class="label above">[% 'Delivery Terms' | $T8 %]</span> |
|
133 |
[% L.select_tag('order.delivery_term_id', |
|
134 |
SELF.all_delivery_terms, |
|
135 |
default = SELF.order.delivery_term_id, |
|
136 |
with_empty = 1, |
|
137 |
title_key = 'description', |
|
138 |
class = 'wi-mediumsmall-lightwide') %] |
|
139 |
</td> |
|
140 |
</tr> |
|
141 |
<tr id="taxincluded_row_id"> |
|
142 |
<th>[% IF !SELF.taxes.size %]<label for="order.taxincluded">[% 'Tax Included' | $T8 %]</label> [% END %]</th> |
|
143 |
<td>[% IF !SELF.taxes.size %][% L.yes_no_tag('order.taxincluded', SELF.order.taxincluded, class='recalc') %][% END %]</td> |
|
144 |
</tr> |
|
145 |
</tbody> |
|
146 |
</table> |
|
147 |
</div> <!-- end table_left --> |
|
148 |
<div id="tables_right" style="float:left;"> |
|
149 |
<table class="tbl-horizontal col"> |
|
150 |
<caption>[% 'Notes' | $T8 %]</caption> |
|
151 |
<colgroup><col class="wi-wide"></colgroup> |
|
152 |
<tbody> |
|
153 |
<tr> |
|
154 |
<td class="wi-wide">[% L.textarea_tag('order.notes', SELF.order.notes, wrap="soft",rows=7, class="texteditor wi-wide") %]</td> |
|
155 |
</tr> |
|
156 |
<tr> |
|
157 |
<td><span class="label above">[% 'Internal Notes' | $T8 %]</span>[% L.textarea_tag('order.intnotes', SELF.order.intnotes, wrap="soft", style="height: 150px", class="wi-wide") %]</td> |
|
158 |
</tr> |
|
159 |
</tbody> |
|
160 |
</table> |
|
161 |
</div> <!-- end table_left --> |
|
162 |
</div><!-- /.filter_toggle --> |
|
163 |
<div> |
|
164 |
[% PROCESS pos/tabs/_item_input.html SELF=SELF %] |
|
165 |
</div> |
|
166 |
<div> |
|
167 |
[% PROCESS pos/tabs/_rows_tmp.html %] |
|
168 |
</div> |
|
169 |
</div> <!-- Ende pos_left --> |
|
170 |
<div class="container_pos_right"> |
|
171 |
<div class="pos_button control-panel" onclick="alert('Funktion')">Funktion*</div> |
|
172 |
<div class="pos_button control-panel">Funktion</div> |
|
173 |
<div class="pos_button control-panel">[% "Salesman" | $T8 %]<br> |
|
174 |
[% L.select_tag('order.salesman_id', |
|
175 |
SELF.all_salesmen, |
|
176 |
#[{id=1,name=werner},{id=2,name=Max}], |
|
177 |
default=(SELF.order.salesman_id ? SELF.order.salesman_id : SELF.current_employee_id), |
|
178 |
class='wi-normal', |
|
179 |
title_key='safe_name') %] |
|
180 |
</div> |
|
181 |
<div class="pos_button control-panel">Auswahl bezahlen/zurücknehmen</div> |
|
182 |
<div class="pos_button control-panel">Nachlass gewähren</div> |
|
183 |
<div class="pos_button control-panel">Nachdruck Quittung</div> |
|
184 |
<div class="pos_button control-panel">Auf Rechnung</div> |
|
185 |
<div class="pos_button control-panel">Entnahme erfassen</div> |
|
186 |
<div class="pos_button control-panel">Auf Lieferschein</div> |
|
187 |
<div class="pos_button control-panel">Quittung parken</div> |
|
188 |
<div class="pos_button control-panel">geparkte Quittung</div> |
|
189 |
<div class="pos_button control-panel">Bezahlen</div> |
|
190 |
<div class="pos_button control-panel">Abbrechen</div> |
|
191 |
</div> <!-- Ende pos_right --> |
|
143 |
<tr id="taxincluded_row_id"> |
|
144 |
<th>[% IF !SELF.taxes.size %]<label for="order.taxincluded">[% 'Tax Included' | $T8 %]</label> [% END %]</th> |
|
145 |
<td>[% IF !SELF.taxes.size %][% L.yes_no_tag('order.taxincluded', SELF.order.taxincluded, class='recalc') %][% END %]</td> |
|
146 |
</tr> |
|
147 |
</tbody> |
|
148 |
</table> |
|
149 |
<table class="tbl-horizontal col"> |
|
150 |
<caption>[% 'Notes' | $T8 %]</caption> |
|
151 |
<colgroup><col class="wi-wide"></colgroup> |
|
152 |
<tbody> |
|
153 |
<tr> |
|
154 |
<td class="wi-wide">[% L.textarea_tag('order.notes', SELF.order.notes, wrap="soft",rows=7, class="texteditor wi-wide") %]</td> |
|
155 |
</tr> |
|
156 |
<tr> |
|
157 |
<td><span class="label above">[% 'Internal Notes' | $T8 %]</span>[% L.textarea_tag('order.intnotes', SELF.order.intnotes, wrap="soft", style="height: 150px", class="wi-wide") %]</td> |
|
158 |
</tr> |
|
159 |
</tbody> |
|
160 |
</table> |
|
161 |
</div> |
|
162 |
</div> |
|
163 |
<div class="item_input"> |
|
164 |
[% PROCESS pos/tabs/_item_input.html SELF=SELF %] |
|
165 |
</div> |
|
166 |
[%- IF SELF.positions_scrollbar_height -%] |
|
167 |
[%- SET scroll_style = 'style="overflow-y: auto; height:' _ SELF.positions_scrollbar_height _ 'vh;"' -%] |
|
168 |
[%- ELSE -%] |
|
169 |
[%- SET scroll_style = '' -%] |
|
170 |
[%- END -%] |
|
171 |
<div id="row_table_scroll_id" class="show_rows" [%- scroll_style -%]> |
|
172 |
|
|
173 |
<table id="row_table_id" class="tbl-list"> |
|
174 |
<caption>[% 'Articles' | $T8 %]</caption> |
|
175 |
<thead> |
|
176 |
<tr> |
|
177 |
<th class="center"> |
|
178 |
[% IF MYCONFIG.show_form_details %] |
|
179 |
[% L.img_tag(src="image/collapse.svg", alt=LxERP.t8('Hide all details'), title=LxERP.t8('Hide all details'), id='expand_all', "data-expanded"="1") %] |
|
180 |
[% ELSE %] |
|
181 |
[% L.img_tag(src="image/expand.svg", alt=LxERP.t8('Show all details'), title=LxERP.t8('Show all details'), id='expand_all') %] |
|
182 |
[% END %] |
|
183 |
</th> |
|
184 |
<th>[% 'position' | $T8 %] </th> |
|
185 |
<th style='text-align:center'><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]"></th> |
|
186 |
<th style='text-align:center'><img src="image/close.png" alt="[% LxERP.t8('delete item') %]"></th> |
|
187 |
[%- IF SELF.show_update_button -%] |
|
188 |
<th class="listheading" style='text-align:center' nowrap width="1"> |
|
189 |
[%- L.img_tag(src="image/rotate_cw.svg", |
|
190 |
alt=LxERP.t8('Update from master data'), |
|
191 |
title= LxERP.t8('Update from master data'), |
|
192 |
onclick="if (!confirm('" _ LxERP.t8("Are you sure to update all positions from master data?") _ "')) return false; kivi.Order.update_all_rows_from_master_data();", |
|
193 |
id='update_from_master', |
|
194 |
class='expand') %] |
|
195 |
</th> |
|
196 |
[%- END %] |
|
197 |
<th id="partnumber_header_id"><a href='#' onClick='javascript:kivi.Order.reorder_items("partnumber")'> [% 'Partnumber' | $T8 %]</a></th> |
|
198 |
[%- IF SELF.search_cvpartnumber -%] |
|
199 |
<th id="cvpartnumber_header_id"><a href='#' onClick='javascript:kivi.Order.reorder_items("cvpartnumber")'>[%- SELF.cv == "customer" ? LxERP.t8('Customer Part Number') : LxERP.t8('Model') %]</a></th> |
|
200 |
[%- END -%] |
|
201 |
<th id="partclass_header_id">[% 'Type' | $T8 %]</th> |
|
202 |
<th id="description_header_id"><a href='#' onClick='javascript:kivi.Order.reorder_items("description")'>[% 'Description' | $T8 %]</a></th> |
|
203 |
[%- IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "purchase_order" || SELF.type == "purchase_order_confirmation") -%] |
|
204 |
<th id="shipped_qty_header_id"><a href='#' onClick='javascript:kivi.Order.reorder_items("shipped_qty")'>[% 'Delivered' | $T8 %]</a></th> |
|
205 |
[%- END -%] |
|
206 |
<th id="qty_header_id"><a href='#' onClick='javascript:kivi.Order.reorder_items("qty")'> [% 'Qty' | $T8 %]</a></th> |
|
207 |
<th >[% 'Price Factor' | $T8 %]</th> |
|
208 |
<th >[% 'Unit' | $T8 %]</th> |
|
209 |
<th >[% 'Price Source' | $T8 %]</th> |
|
210 |
<th id="sellprice_header_id"><a href='#' onClick='javascript:kivi.Order.reorder_items("sellprice")'> [% 'Price' | $T8 %]</a></th> |
|
211 |
<th id="discount_header_id" ><a href='#' onClick='javascript:kivi.Order.reorder_items("discount")'> [% 'Discount' | $T8 %]</a></th> |
|
212 |
<th>[% 'Extended' | $T8 %]</th> |
|
213 |
</tr> |
|
214 |
</thead> |
|
215 |
[% FOREACH item = SELF.order.items_sorted %] |
|
216 |
[% PROCESS order/tabs/_row.html ITEM=item ID=(item.id||item.new_fake_id) %] |
|
217 |
[% END %] |
|
218 |
<tfoot> |
|
219 |
[% IF (SELF.type == "sales_quotation") || (SELF.type == "request_quotation") || (SELF.type == "purchase_quotation_intake") %] |
|
220 |
[% SET add_col = 0 %] |
|
221 |
[% ELSE %] |
|
222 |
[% SET add_col = 1 %] |
|
223 |
[% END %] |
|
224 |
[% IF SELF.search_cvpartnumber %] |
|
225 |
[% SET add_col = add_col + 1 %] |
|
226 |
[% END %] |
|
227 |
<tr id="subtotal_row_id"> |
|
228 |
<td colspan="[%- 10 + add_col %]"></td> |
|
229 |
[%- IF SELF.show_update_button -%] |
|
230 |
<td></td> |
|
231 |
[%- END -%] |
|
232 |
<th colspan="3">[% IF !SELF.order.taxincluded %][% 'Subtotal' | $T8 %][% END %]</th> |
|
233 |
<td class="numeric">[% IF !SELF.order.taxincluded %][% L.div_tag(SELF.order.netamount_as_number, id='netamount_id') %][% END %]</td> |
|
234 |
</tr> |
|
235 |
[% FOREACH tax = SELF.taxes %] |
|
236 |
[% PROCESS order/tabs/_tax_row.html TAX=tax TAXINCLUDED=SELF.order.taxincluded QUOTATION=SELF.order.quotation %] |
|
237 |
[% END %] |
|
238 |
<tr id="amount_row_id"> |
|
239 |
[%- IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "sales_quotation") -%] |
|
240 |
[%- SET marge_class = ((SELF.order.marge_total || 0) < 0) ? 'plus0' : '' -%] |
|
241 |
<th colspan="2">[% 'Ertrag' | $T8 %]</th> |
|
242 |
<td colspan="2" class="numeric">[%- L.div_tag(SELF.order.marge_total_as_number, id='marge_total_id', class=marge_class) %]</td> |
|
243 |
<th colspan="2">[% 'Ertrag prozentual' | $T8 %]</th> |
|
244 |
<td class="numeric">[%- LxERP.format_amount(SELF.order.marge_percent, 2) %] %</td> |
|
245 |
[%- ELSE -%] |
|
246 |
<td colspan="7"></td> |
|
247 |
[%- END -%] |
|
248 |
[%- IF SELF.show_update_button -%] |
|
249 |
<td></td> |
|
250 |
[%- END -%] |
|
251 |
<td colspan="[%- 3 + add_col %]"></td> |
|
252 |
<th colspan="3">[% 'Total' | $T8 %]</th> |
|
253 |
<td class="numeric">[% L.div_tag(SELF.order.amount_as_number, id='amount_id') %]</td> |
|
254 |
</tr> |
|
255 |
</tfoot> |
|
256 |
</table> |
|
257 |
|
|
258 |
</div><!-- /#row_table_scroll_id /.wrapper --> |
|
259 |
</div><!-- /#row_table_scroll_id /.wrapper --> |
|
260 |
<div class="pos_button1 control-panel" onclick="alert('Funktion')">Funktion*</div> |
|
261 |
<div class="pos_button2 control-panel">Funktion</div> |
|
262 |
<div class="pos_button3 control-panel">Auswahl bezahlen/zurücknehmen</div> |
|
263 |
<div class="pos_button4 control-panel">Nachlass gewähren</div> |
|
264 |
<div class="pos_button5 control-panel">Nachdruck Quittung</div> |
|
265 |
<div class="pos_button6 control-panel">Auf Rechnung</div> |
|
266 |
<div class="pos_button7 control-panel">Entnahme erfassen</div> |
|
267 |
<div class="pos_button8 control-panel">Auf Lieferschein</div> |
|
268 |
<div class="pos_button9 control-panel">Quittung parken</div> |
|
269 |
<div class="pos_button10 control-panel">geparkte Quittung</div> |
|
270 |
<div class="pos_button11 control-panel">Bezahlen</div> |
|
271 |
<div class="pos_button12 control-panel">Abbrechen</div> |
|
192 | 272 |
</div> |
193 | 273 |
|
194 | 274 |
|
Auch abrufbar als: Unified diff
POS WIP