Revision 3fb30e00
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/do/form_footer.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[% USE HTML %][% USE LxERP %][%- USE L -%][%- USE P -%] |
|
3 |
[%- IF delivered %] |
|
4 |
[%- SET RO = ' readonly' %] |
|
5 |
[%- END %] |
|
6 |
|
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE L %] |
|
5 |
[% USE P %] |
|
6 |
|
|
7 |
[% IF show_weight %] |
|
8 |
<table class="tbl-horizontal"> |
|
9 |
<tbody> |
|
7 | 10 |
<tr> |
8 |
<td>
|
|
9 |
<table>
|
|
10 |
<tr valign="bottom">
|
|
11 |
<th align="left">[% 'Notes' | $T8 %]</th>
|
|
12 |
<th align="left">[% 'Internal Notes' | $T8 %]</th>
|
|
13 |
</tr>
|
|
11 |
<th>[% 'Total weight' | $T8 %]</th>
|
|
12 |
<td>[% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]</td>
|
|
13 |
</tr>
|
|
14 |
</tbody>
|
|
15 |
</table>
|
|
16 |
[% END %]
|
|
14 | 17 |
|
15 |
<tr valign="top"> |
|
16 |
<td> |
|
17 |
[% IF delivered %] |
|
18 |
[% L.hidden_tag("notes", notes) %] |
|
19 |
<div style="width: 350px; height: 150px; border: 1px solid black">[% P.restricted_html(notes) %]</div> |
|
20 |
[% ELSE %] |
|
21 |
[% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %] |
|
22 |
[% END %] |
|
23 |
</td> |
|
24 |
<td><textarea name="intnotes" rows="[% LxERP.numtextrows(intnotes, 35, 8, 2) %]" cols="35" wrap="soft"[% RO %]>[% HTML.escape(intnotes) %]</textarea></td> |
|
25 |
</tr> |
|
18 |
</div> |
|
26 | 19 |
|
27 |
<tr> |
|
28 |
<th align="right">[% 'Delivery Terms' | $T8 %]</th> |
|
29 |
<td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description') %]</td> |
|
30 |
</tr> |
|
31 |
</table> |
|
32 | 20 |
|
33 |
</td> |
|
34 |
</tr> |
|
35 |
[%- IF show_weight %] |
|
36 |
<tr> |
|
37 |
<td> |
|
38 |
<table width="100%"> |
|
39 |
<tr valign="bottom"> |
|
40 |
<td align="right"> |
|
41 |
<table> |
|
42 |
<tr> |
|
43 |
<th align="left">[% 'Total weight' | $T8 %]</th> |
|
44 |
<td align="right"> |
|
45 |
[% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %] |
|
46 |
</td> |
|
47 |
</tr> |
|
48 |
</table> |
|
49 |
</td> |
|
50 |
</tr> |
|
51 |
</table> |
|
52 |
</td> |
|
53 |
</tr> |
|
54 |
[%- END %] |
|
55 |
</table> |
|
56 |
</p> |
|
57 | 21 |
|
58 |
</div> |
|
59 | 22 |
[% PROCESS 'webdav/_list.html' %] |
60 | 23 |
<div id="ui-tabs-1"> |
61 |
[%- LxERP.t8("Loading...") %]
|
|
24 |
[% LxERP.t8("Loading...") %] |
|
62 | 25 |
</div> |
63 | 26 |
</div> |
64 | 27 |
|
65 |
<input type="hidden" id="rowcount" name="rowcount" value="[% HTML.escape(rowcount) %]">
|
|
66 |
<input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
|
|
28 |
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
|
|
29 |
<input name="callback" type="hidden" value="[% HTML.escape(callback) %]"> |
|
67 | 30 |
|
68 |
[%- IF !delivered %]
|
|
31 |
[% IF !delivered %]
|
|
69 | 32 |
<div id="shipto_inputs" class="hidden"> |
70 |
[%- PROCESS 'common/_ship_to_dialog.html' vc_obj=VC_OBJ %]
|
|
33 |
[% PROCESS 'common/_ship_to_dialog.html' vc_obj=VC_OBJ %]
|
|
71 | 34 |
</div> |
72 |
[%- END %]
|
|
35 |
[% END %]
|
|
73 | 36 |
|
74 |
<div id="email_inputs" class="hidden"></div> |
|
37 |
<div id="email_inputs" class="hidden"></div> |
|
38 |
|
|
39 |
<div id="print_options" class="hidden"> |
|
40 |
[% PRINT_OPTIONS %] |
|
41 |
</div> |
|
42 |
</form> |
|
75 | 43 |
|
76 |
<div id="print_options" class="hidden"> |
|
77 |
[% PRINT_OPTIONS %] |
|
78 |
</div> |
|
79 |
</form> |
|
80 | 44 |
<script type='text/javascript'> |
81 | 45 |
$(kivi.SalesPurchase.init_on_submit_checks); |
82 | 46 |
</script> |
83 | 47 |
|
84 |
[%- IF !delivered %] |
|
85 |
<div id="shipto_dialog" class="hidden"></div> |
|
86 |
[%- END %] |
|
48 |
[% IF !delivered %] |
|
49 |
<div id="shipto_dialog" class="hidden"></div> |
|
50 |
[% END %] |
|
51 |
|
|
87 | 52 |
<div id="print_dialog" class="hidden"> |
88 |
[%- PROCESS 'common/_print_dialog.html' %]
|
|
53 |
[% PROCESS 'common/_print_dialog.html' %]
|
|
89 | 54 |
</div> |
templates/webpages/do/form_header.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
[%- USE LxERP %] |
|
4 |
[%- USE L %][%- USE P -%] |
|
5 |
|
|
6 |
[%# Determine which shipping address to show if the delivery order has been shipped already. %] |
|
7 |
[%- IF delivered; |
|
8 |
SET shipto_label = []; |
|
9 |
IF shipto_id; |
|
10 |
FOREACH row = ALL_SHIPTO ; |
|
11 |
IF row.shipto_id == shipto_id ; |
|
12 |
SET shipto_label = [ row.shiptoname, row.shiptodepartment_1, row.shiptostreet, row.shiptocity ] ; |
|
13 |
END ; |
|
14 |
END ; |
|
15 |
ELSE ; |
|
16 |
SET shipto_label = [ shiptoname, shiptodepartment_1, shiptostreet, shiptocity ] ; |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE L %] |
|
5 |
[% USE P %] |
|
6 |
|
|
7 |
[% # Determine which shipping address to show if the delivery order has been shipped already. %] |
|
8 |
[% IF delivered; |
|
9 |
SET shipto_label = []; |
|
10 |
IF shipto_id; |
|
11 |
FOREACH row = ALL_SHIPTO ; |
|
12 |
IF row.shipto_id == shipto_id ; |
|
13 |
SET shipto_label = [ row.shiptoname, row.shiptodepartment_1, row.shiptostreet, row.shiptocity ] ; |
|
17 | 14 |
END ; |
15 |
END ; |
|
16 |
ELSE ; |
|
17 |
SET shipto_label = [ shiptoname, shiptodepartment_1, shiptostreet, shiptocity ] ; |
|
18 |
END ; |
|
18 | 19 |
|
19 |
SET shipto_label = shipto_label.grep('.') ;
|
|
20 |
IF !shipto_label.size ;
|
|
21 |
shipto_label = [ LxERP.t8('no shipping address') ] ;
|
|
22 |
END ;
|
|
23 |
END ; %]
|
|
20 |
SET shipto_label = shipto_label.grep('.') ; |
|
21 |
IF !shipto_label.size ; |
|
22 |
shipto_label = [ LxERP.t8('no shipping address') ] ; |
|
23 |
END ; |
|
24 |
END ; %] |
|
24 | 25 |
|
25 | 26 |
<h1>[% title %]</h1> |
26 | 27 |
|
27 |
<script type="text/javascript" src="js/show_form_details.js"></script> |
|
28 |
<script type="text/javascript" src="js/show_history.js"></script> |
|
29 |
<script type="text/javascript" src="js/show_vc_details.js"></script> |
|
30 |
<script type="text/javascript" src="js/delivery_customer_selection.js"></script> |
|
31 |
<script type="text/javascript" src="js/calculate_qty.js"></script> |
|
32 |
<script type="text/javascript" src="js/stock_in_out.js"></script> |
|
33 |
<script type="text/javascript" src="js/follow_up.js"></script> |
|
34 |
<script type="text/javascript" src="js/kivi.SalesPurchase.js"></script> |
|
35 |
|
|
36 |
<style type="text/css"> |
|
37 |
.fixed_width { |
|
38 |
width: 250px; |
|
39 |
} |
|
40 |
</style> |
|
41 |
|
|
42 |
[%- IF vc == 'customer' %] |
|
43 |
[%- SET is_customer = '1' %] |
|
44 |
[%- ELSE %] |
|
45 |
[%- SET vc = 'vendor' %] |
|
46 |
[%- SET is_customer = '0' %] |
|
47 |
[%- END %] |
|
48 |
[%- SET vc_id = vc _ "_id" %] |
|
49 |
[%- IF delivered %] |
|
50 |
[%- SET DISABLED = ' disabled' %] |
|
51 |
[%- END %] |
|
52 |
|
|
53 |
[%- INCLUDE 'common/flash.html' %] |
|
54 |
[%- INCLUDE 'generic/set_longdescription.html' %] |
|
55 |
|
|
56 |
[%- IF ERRORS && ERRORS.size %] |
|
57 |
<p><font color="#ff0000">[% ERRORS.join('<br>') %]</font></p> |
|
58 |
[%- END %] |
|
59 |
|
|
60 |
<form id="form" method="post" name="do" action="do.pl"> |
|
61 |
|
|
62 |
<div id="do_tabs" class="tabwidget"> |
|
28 |
<script type="text/javascript" src="js/show_form_details.js"></script> |
|
29 |
<script type="text/javascript" src="js/show_history.js"></script> |
|
30 |
<script type="text/javascript" src="js/show_vc_details.js"></script> |
|
31 |
<script type="text/javascript" src="js/delivery_customer_selection.js"></script> |
|
32 |
<script type="text/javascript" src="js/calculate_qty.js"></script> |
|
33 |
<script type="text/javascript" src="js/stock_in_out.js"></script> |
|
34 |
<script type="text/javascript" src="js/follow_up.js"></script> |
|
35 |
<script type="text/javascript" src="js/kivi.SalesPurchase.js"></script> |
|
36 |
|
|
37 |
|
|
38 |
[% IF vc == 'customer' %] |
|
39 |
[% SET is_customer = '1' %] |
|
40 |
[% ELSE %] |
|
41 |
[% SET vc = 'vendor' %] |
|
42 |
[% SET is_customer = '0' %] |
|
43 |
[% END %] |
|
44 |
[% SET vc_id = vc _ "_id" %] |
|
45 |
[% IF delivered %] |
|
46 |
[% SET DISABLED = ' disabled' %] |
|
47 |
[% END %] |
|
48 |
|
|
49 |
[% INCLUDE 'common/flash.html' %] |
|
50 |
[% INCLUDE 'generic/set_longdescription.html' %] |
|
51 |
|
|
52 |
[% IF ERRORS && ERRORS.size %] |
|
53 |
<p class="message message_error">[% ERRORS.join('<br>') %]</p> |
|
54 |
[% END %] |
|
55 |
|
|
56 |
<form id="form" method="post" name="do" action="do.pl"> |
|
57 |
|
|
58 |
<div id="do_tabs" class="tabwidget"> |
|
63 | 59 |
<ul> |
64 |
<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li> |
|
65 |
[%- IF INSTANCE_CONF.get_webdav %]
|
|
66 |
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li> |
|
67 |
[%- END %]
|
|
68 |
[%- IF id AND INSTANCE_CONF.get_doc_storage %]
|
|
60 |
<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
|
|
61 |
[% IF INSTANCE_CONF.get_webdav %]
|
|
62 |
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
|
|
63 |
[% END %]
|
|
64 |
[% IF id AND INSTANCE_CONF.get_doc_storage %]
|
|
69 | 65 |
<li><a href="controller.pl?action=File/list&file_type=document&object_type=[% HTML.escape(type) %]&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li> |
70 | 66 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% HTML.escape(type) %]&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li> |
71 |
[%- END %]
|
|
72 |
[%- IF id AND AUTH.assert('record_links', 1) %]
|
|
73 |
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=DeliveryOrder&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li> |
|
74 |
[%- END %]
|
|
67 |
[% END %]
|
|
68 |
[% IF id AND AUTH.assert('record_links', 1) %]
|
|
69 |
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=DeliveryOrder&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
|
|
70 |
[% END %]
|
|
75 | 71 |
</ul> |
76 | 72 |
|
77 |
<div id="ui-tabs-basic-data"> |
|
78 |
|
|
79 |
<input type="hidden" name="follow_up_trans_id_1" id="follow_up_trans_id_1" value="[% HTML.escape(id) %]"> |
|
80 |
<input type="hidden" name="follow_up_trans_type_1" id="follow_up_trans_type_1" value="[% HTML.escape(type) %]"> |
|
81 |
<input type="hidden" name="follow_up_trans_info_1" id="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]"> |
|
82 |
<input type="hidden" name="follow_up_rowcount" id="follow_up_rowcount" value="1"> |
|
83 |
|
|
84 |
|
|
85 |
<input type="hidden" name="business" id="business" value="[% HTML.escape(business) %]"> |
|
86 |
<input type="hidden" name="closed" id="closed" value="[% HTML.escape(closed) %]"> |
|
87 |
<input type="hidden" name="convert_from_oe_ids" id="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]"> |
|
88 |
<input type="hidden" name="currency" id="currency" value="[% HTML.escape(currency) %]"> |
|
89 |
<input type="hidden" name="customer_pricegroup_id" id="customer_pricegroup_id" value="[% HTML.escape(customer_pricegroup_id) %]"> |
|
90 |
<input type="hidden" name="discount" id="discount" value="[% HTML.escape(discount) %]"> |
|
91 |
<input type="hidden" name="dunning_amount" id="dunning_amount" value="[% HTML.escape(dunning_amount) %]"> |
|
92 |
<input type="hidden" name="emailed" id="emailed" value="[% HTML.escape(emailed) %]"> |
|
93 |
<input type="hidden" name="id" id="id" value="[% HTML.escape(id) %]"> |
|
94 |
<input type="hidden" name="max_dunning_level" id="max_dunning_level" value="[% HTML.escape(max_dunning_level) %]"> |
|
95 |
<input type="hidden" name="printed" id="printed" value="[% HTML.escape(printed) %]"> |
|
96 |
<input type="hidden" name="proforma" id="proforma" value="[% HTML.escape(proforma) %]"> |
|
97 |
<input type="hidden" name="queued" id="queued" value="[% HTML.escape(queued) %]"> |
|
98 |
<input type="hidden" name="saved_donumber" id="saved_donumber" value="[% HTML.escape(saved_donumber) %]"> |
|
99 |
[%- IF delivered %] |
|
73 |
<div id="ui-tabs-basic-data"> |
|
74 |
<div class="wrapper" id="wrapper-1"> |
|
75 |
[% INCLUDE 'generic/toggle_wrapper.html' %] |
|
76 |
|
|
77 |
<input type="hidden" name="follow_up_trans_id_1" id="follow_up_trans_id_1" value="[% HTML.escape(id) %]"> |
|
78 |
<input type="hidden" name="follow_up_trans_type_1" id="follow_up_trans_type_1" value="[% HTML.escape(type) %]"> |
|
79 |
<input type="hidden" name="follow_up_trans_info_1" id="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]"> |
|
80 |
<input type="hidden" name="follow_up_rowcount" id="follow_up_rowcount" value="1"> |
|
81 |
|
|
82 |
<input type="hidden" name="business" id="business" value="[% HTML.escape(business) %]"> |
|
83 |
<input type="hidden" name="closed" id="closed" value="[% HTML.escape(closed) %]"> |
|
84 |
<input type="hidden" name="convert_from_oe_ids" id="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]"> |
|
85 |
<input type="hidden" name="currency" id="currency" value="[% HTML.escape(currency) %]"> |
|
86 |
<input type="hidden" name="customer_pricegroup_id" id="customer_pricegroup_id" value="[% HTML.escape(customer_pricegroup_id) %]"> |
|
87 |
<input type="hidden" name="discount" id="discount" value="[% HTML.escape(discount) %]"> |
|
88 |
<input type="hidden" name="dunning_amount" id="dunning_amount" value="[% HTML.escape(dunning_amount) %]"> |
|
89 |
<input type="hidden" name="emailed" id="emailed" value="[% HTML.escape(emailed) %]"> |
|
90 |
<input type="hidden" name="id" id="id" value="[% HTML.escape(id) %]"> |
|
91 |
<input type="hidden" name="max_dunning_level" id="max_dunning_level" value="[% HTML.escape(max_dunning_level) %]"> |
|
92 |
<input type="hidden" name="printed" id="printed" value="[% HTML.escape(printed) %]"> |
|
93 |
<input type="hidden" name="proforma" id="proforma" value="[% HTML.escape(proforma) %]"> |
|
94 |
<input type="hidden" name="queued" id="queued" value="[% HTML.escape(queued) %]"> |
|
95 |
<input type="hidden" name="saved_donumber" id="saved_donumber" value="[% HTML.escape(saved_donumber) %]"> |
|
96 |
[% IF delivered %] |
|
100 | 97 |
<input type="hidden" name="shipto_id" id="shipto_id" value="[% HTML.escape(shipto_id) %]"> |
101 | 98 |
<input type="hidden" name="shiptocity" id="shiptocity" value="[% HTML.escape(shiptocity) %]"> |
102 | 99 |
<input type="hidden" name="shiptocontact" id="shiptocontact" value="[% HTML.escape(shiptocontact) %]"> |
... | ... | |
112 | 109 |
<input type="hidden" name="shiptostreet" id="shiptostreet" value="[% HTML.escape(shiptostreet) %]"> |
113 | 110 |
<input type="hidden" name="shiptozipcode" id="shiptozipcode" value="[% HTML.escape(shiptozipcode) %]"> |
114 | 111 |
<input type="hidden" name="shiptocp_gender" id="shiptocp_gender" value="[% HTML.escape(shiptocp_gender) %]"> |
115 |
[%- END %] |
|
116 |
<input type="hidden" name="show_details" id="show_details" value="[% HTML.escape(show_details) %]"> |
|
117 |
<input type="hidden" name="taxincluded" id="taxincluded" value="[% HTML.escape(taxincluded) %]"> |
|
118 |
<input type="hidden" name="taxzone_id" id="taxzone_id" value="[% HTML.escape(taxzone_id) %]"> |
|
119 |
<input type="hidden" name="title" id="title" value="[% HTML.escape(title) %]"> |
|
120 |
<input type="hidden" name="type" id="type" value="[% HTML.escape(type) %]"> |
|
121 |
<input type="hidden" name="vc" id="vc" value="[% HTML.escape(vc) %]"> |
|
122 |
<input type="hidden" name="lastmtime" id="lastmtime" value="[% HTML.escape(lastmtime) %]"> |
|
123 |
[%- FOREACH row = HIDDENS %] |
|
124 |
[% L.hidden_tag(row.name, row.value) %] |
|
125 |
[%- END %] |
|
126 |
|
|
127 |
<p> |
|
128 |
<table width="100%"> |
|
129 |
<tr valign="top"> |
|
130 |
<td> |
|
131 |
<table width="100%"> |
|
132 |
<tr> |
|
133 |
<th align="right">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th> |
|
134 |
<td> |
|
135 |
[% IF RO %] |
|
112 |
[% END %] |
|
113 |
<input type="hidden" name="show_details" id="show_details" value="[% HTML.escape(show_details) %]"> |
|
114 |
<input type="hidden" name="taxincluded" id="taxincluded" value="[% HTML.escape(taxincluded) %]"> |
|
115 |
<input type="hidden" name="taxzone_id" id="taxzone_id" value="[% HTML.escape(taxzone_id) %]"> |
|
116 |
<input type="hidden" name="title" id="title" value="[% HTML.escape(title) %]"> |
|
117 |
<input type="hidden" name="type" id="type" value="[% HTML.escape(type) %]"> |
|
118 |
<input type="hidden" name="vc" id="vc" value="[% HTML.escape(vc) %]"> |
|
119 |
<input type="hidden" name="lastmtime" id="lastmtime" value="[% HTML.escape(lastmtime) %]"> |
|
120 |
[% FOREACH row = HIDDENS %] |
|
121 |
[% L.hidden_tag(row.name, row.value) %] |
|
122 |
[% END %] |
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
|
|
127 |
<table class="tbl-horizontal col"> |
|
128 |
<caption>[% 'Customer & Order Information' | $T8 %]</caption> |
|
129 |
<colgroup><col class="wi-mediumsmall"><col class="wi-wide"></colgroup> |
|
130 |
<tbody> |
|
131 |
<tr> |
|
132 |
<th>[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th> |
|
133 |
<td class="wi-wide"> |
|
134 |
[% IF RO %] |
|
136 | 135 |
[% P.hidden_tag(vc_id, $vc_id) %] |
137 | 136 |
[% HTML.escape(VC_OBJ.name) %] |
138 |
[% ELSE %] |
|
139 |
[% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="fixed_width", onchange="\$('#update_button').click()") %] |
|
140 |
[% END %] |
|
141 |
[% P.hidden_tag("previous_" _ vc_id, $vc_id) %] |
|
142 |
[% P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)")) %] |
|
143 |
</td> |
|
144 |
|
|
145 |
[%- IF ALL_CONTACTS.size %] |
|
146 |
<tr> |
|
147 |
<th align="right">[% 'Contact Person' | $T8 %]</th> |
|
148 |
<td> |
|
149 |
[%- IF delivered %] |
|
150 |
[% L.hidden_tag("cp_id", cp_id) %] |
|
151 |
[% HTML.escape(CONTACT_OBJ.full_name) %][% IF CONTACT_OBJ.cp_abteilung %] ([% HTML.escape(CONTACT_OBJ.cp_abteilung) %])[% END %] |
|
152 |
[%- ELSE %] |
|
153 |
[% 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') %] |
|
154 |
[%- END %] |
|
155 |
</td> |
|
156 |
</tr> |
|
157 |
[%- END %] |
|
158 |
|
|
159 |
<tr> |
|
160 |
<th align="right">[% 'Shipping Address' | $T8 %]</th> |
|
161 |
<td> |
|
162 |
[%- IF delivered %] |
|
163 |
[% HTML.escape(shipto_label.join('; ')) %] |
|
164 |
[%- ELSE %] |
|
165 |
[%- IF ALL_SHIPTO.size %] |
|
137 |
[% ELSE %] |
|
138 |
[% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="wi-wide tooltipstered", onchange="\$('#update_button').click()", title=VC_OBJ.name ) %] |
|
139 |
[% END %] |
|
140 |
[% #P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)"), class="wi-tiny neutral", title=LxERP.t8('Detailed information about this contact') ) %] |
|
141 |
<a href="javascript:show_vc_details('[% HTML.escape(vc) %]');" title="[% 'Show detail informationen' | $T8 %]" class="button-image info"><img src="image/detail.png"></a> |
|
142 |
[% P.hidden_tag("previous_" _ vc_id, $vc_id) %] |
|
143 |
</td> |
|
144 |
</tr> |
|
145 |
[% IF ALL_CONTACTS.size %] |
|
146 |
<tr> |
|
147 |
<th>[% 'Contact Person' | $T8 %]</th> |
|
148 |
<td> |
|
149 |
[% IF delivered %] |
|
150 |
<input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]"> |
|
151 |
[% IF cp_id == row.cp_id %] |
|
152 |
<span class="data wi-wide">[% HTML.escape(row.cp_name) %][% IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%]</span> |
|
153 |
[% END %] |
|
154 |
[% ELSE %] |
|
155 |
[% 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') %] |
|
156 |
[% END %] |
|
157 |
</td> |
|
158 |
</tr> |
|
159 |
[% END %] |
|
160 |
<tr> |
|
161 |
<th>[% 'Shipping Address' | $T8 %]</th> |
|
162 |
<td> |
|
163 |
[% IF delivered %] |
|
164 |
<span class="data wi-wide">[% HTML.escape(shipto_label.join('; ')) %]</span> |
|
165 |
[% ELSE %] |
|
166 |
[% IF ALL_SHIPTO.size %] |
|
166 | 167 |
[% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ; |
167 |
L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', style='width: 250px') %] |
|
168 |
[%- END %] |
|
169 |
[% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto")) %] |
|
170 |
[%- END %] |
|
171 |
</td> |
|
172 |
</tr> |
|
173 |
|
|
174 |
[%- IF business %] |
|
175 |
<tr> |
|
176 |
<th align="right">[% IF is_customer %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th> |
|
177 |
<td>[% HTML.escape(business) %]</td> |
|
178 |
</tr> |
|
179 |
[%- END %] |
|
180 |
|
|
181 |
[%- IF max_dunning_level %] |
|
182 |
<tr> |
|
183 |
<th align="right">[% 'Max. Dunning Level' | $T8 %]</th> |
|
184 |
<td> |
|
185 |
<b>[% HTML.escape(max_dunning_level) %]</b>; [% 'Dunning Amount' | $T8 %]: |
|
168 |
L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', class='wi-wide') %] |
|
169 |
[% END %] |
|
170 |
[% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto"), class='button neutral below wi-wide') %] |
|
171 |
[% END %] |
|
172 |
</td> |
|
173 |
</tr> |
|
174 |
[% IF business %] |
|
175 |
<tr> |
|
176 |
<th>[% IF is_customer %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th> |
|
177 |
<td><span class="data wi-wide">[% HTML.escape(business) %]</span><!-- PENDENT: Behandlung von Text in Formular-Tabellen --> </td> |
|
178 |
</tr> |
|
179 |
[% END %] |
|
180 |
[% IF max_dunning_level %] |
|
181 |
<tr> |
|
182 |
<th>[% 'Max. Dunning Level' | $T8 %]</th> |
|
183 |
<td> |
|
184 |
<b>[% HTML.escape(max_dunning_level) %]</b>, [% 'Dunning Amount' | $T8 %]: |
|
186 | 185 |
<b>[% HTML.escape(LxERP.format_amount(dunning_amount, 2)) %]</b> |
187 |
</td> |
|
188 |
</tr> |
|
189 |
[%- END %] |
|
190 |
</tr> |
|
191 |
|
|
192 |
[%- IF ALL_DEPARTMENTS.size %] |
|
193 |
<tr> |
|
194 |
<th align="right" nowrap>[% 'Department' | $T8 %]</th> |
|
195 |
<td colspan="3"> |
|
186 |
</td> |
|
187 |
</tr> |
|
188 |
[% END %] |
|
189 |
[% IF ALL_DEPARTMENTS.size %] |
|
190 |
<tr> |
|
191 |
<th>[% 'Department' | $T8 %]</th> |
|
192 |
<td> |
|
196 | 193 |
[% IF ( delivered ) %] |
197 | 194 |
[% L.hidden_tag('department_id', department_id) %] |
198 | 195 |
[% ELSE %] |
199 |
[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width: 250px', disabled = delivered )%]
|
|
196 |
[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class='wi-wide', disabled = delivered )%]
|
|
200 | 197 |
[% END %] |
201 |
</td> |
|
202 |
</tr> |
|
203 |
[%- END %] |
|
204 |
|
|
205 |
<tr> |
|
206 |
<th align="right">[% 'Shipping Point' | $T8 %]</th> |
|
207 |
<td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"[% RO %]></td> |
|
208 |
</tr> |
|
209 |
|
|
210 |
<tr> |
|
211 |
<th align="right">[% 'Ship via' | $T8 %]</th> |
|
212 |
<td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"[% RO %]></td> |
|
213 |
</tr> |
|
214 |
|
|
215 |
<tr> |
|
216 |
<th align="right">[% 'Transaction description' | $T8 %]</th> |
|
217 |
<td colspan="3">[% L.input_tag("transaction_description", transaction_description, size=35, "data-validate"=(INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : ''), readonly=delivered) %]</td> |
|
218 |
</tr> |
|
219 |
|
|
220 |
</table> |
|
221 |
</td> |
|
222 |
|
|
223 |
<td align="right"> |
|
224 |
<table> |
|
225 |
|
|
226 |
<tr> |
|
227 |
<td colspan="2" align="center"> |
|
228 |
[%- IF delivered %] |
|
229 |
[%- IF is_customer %] |
|
230 |
[% 'transferred out' | $T8 %] |
|
231 |
[%- ELSE %] |
|
232 |
[% 'transferred in' | $T8 %] |
|
233 |
[%- END %] |
|
234 |
[%- ELSE %] |
|
235 |
[%- IF is_customer %] |
|
236 |
[% 'not transferred out yet' | $T8 %] |
|
237 |
[%- ELSE %] |
|
238 |
[% 'not transferred in yet' | $T8 %] |
|
239 |
[%- END %] |
|
240 |
[%- END %] |
|
241 |
; |
|
242 |
[%- IF closed %] |
|
243 |
[% 'Closed' | $T8 %] |
|
244 |
[%- ELSE %] |
|
245 |
[% 'Open' | $T8 %] |
|
246 |
[%- END %] |
|
247 | 198 |
</td> |
248 |
</tr> |
|
199 |
</tr> |
|
200 |
[% END %] |
|
201 |
<tr> |
|
202 |
<th>[% 'Shipping Point' | $T8 %]</th> |
|
203 |
<td><input type="text" name="shippingpoint" class="wi-wide" value="[% HTML.escape(shippingpoint) %]"[% RO %]></td> |
|
204 |
</tr> |
|
205 |
<tr> |
|
206 |
<th>[% 'Ship via' | $T8 %]</th> |
|
207 |
<td><input type="text" name="shipvia" class="wi-wide" value="[% HTML.escape(shipvia) %]"[% RO %]></td> |
|
208 |
</tr> |
|
209 |
<tr> |
|
210 |
<th>[% 'Transaction description' | $T8 %]</th> |
|
211 |
<td>[% L.input_tag("transaction_description", transaction_description, class="wi-wide tooltipstered", "data-validate"=(INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : ''), readonly=delivered, title=transaction_description) %]</td> |
|
212 |
</tr> |
|
213 |
<tr> |
|
214 |
<td colspan="2"> |
|
215 |
<span class="label above">[% 'Internal Notes' | $T8 %]</span> |
|
216 |
[% IF delivered %][% SET RO=' readonly' %][% END %] |
|
217 |
<textarea name="intnotes" rows="[% LxERP.numtextrows(intnotes, 35, 8, 2) %]" class="wi-mediumsmall-wide" wrap="soft"[% RO %]>[% HTML.escape(intnotes) %]</textarea> |
|
218 |
</td> |
|
219 |
</tr> |
|
220 |
</tbody> |
|
221 |
</table> |
|
249 | 222 |
|
250 |
<input type="hidden" name="delivered" value="[% HTML.escape(delivered) %]"> |
|
251 | 223 |
|
252 |
<tr> |
|
253 |
<th align="right">[% 'Employee' | $T8 %]</th> |
|
254 |
<td> |
|
255 |
[%- IF delivered %] |
|
256 |
<input type="hidden" name="employee_id" value="[% HTML.escape(employee_id) %]"> |
|
257 |
[%- FOREACH row = ALL_EMPLOYEES %] |
|
258 |
[% IF row.id == employee_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %] |
|
259 |
[%- END %] |
|
260 |
[%- ELSE %] |
|
261 |
[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %] |
|
262 |
[%- END %] |
|
263 |
</td> |
|
264 |
</tr> |
|
265 | 224 |
|
266 |
[%- IF is_customer %] |
|
267 |
[%- IF salesman_id %] |
|
268 |
[%- SET the_salesman_id = salesman_id %] |
|
269 |
[%- ELSE %] |
|
270 |
[%- SET the_salesman_id = employee_id %] |
|
271 |
[%- END %] |
|
272 |
<tr> |
|
273 |
<th align="right">[% 'Salesman' | $T8 %]</th> |
|
225 |
<table class="tbl-horizontal col"> |
|
226 |
<caption>[% 'Delivery Terms' | $T8 %]</caption> |
|
227 |
<colgroup><col class="wi-wide"></colgroup> |
|
228 |
<tbody> |
|
229 |
<tr> |
|
230 |
<td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default=delivery_term_id, with_empty=1, title_key='description', class='wi-wide') %]</td> |
|
231 |
</tr> |
|
232 |
<tr> |
|
233 |
<th class="caption"> [% 'Notes' | $T8 %] </th> |
|
234 |
</tr> |
|
235 |
<tr> |
|
236 |
<td class="wi-wide"> |
|
237 |
[% IF delivered %] |
|
238 |
[% L.hidden_tag("notes", notes) %] |
|
239 |
<div class="fake-textarea fake-wi-wide">[% P.restricted_html(notes) %]</div> |
|
240 |
[% ELSE %] |
|
241 |
[% L.textarea_tag("notes", notes, wrap="soft", rows=3, cols=10, class="texteditor wi-wide") %] |
|
242 |
[% END %] |
|
243 |
</td> |
|
244 |
</tr> |
|
245 |
</tbody> |
|
246 |
</table> |
|
247 |
|
|
248 |
|
|
249 |
<table class="tbl-horizontal"> |
|
250 |
<caption>[% 'Status & Handling' | $T8 %]</caption> |
|
251 |
<tbody> |
|
252 |
<tr> |
|
253 |
<th>[% 'Transfer Status' | $T8 %]</th> |
|
254 |
<td> |
|
255 |
<span class="data wi-normal">[% IF delivered %] |
|
256 |
[% IF is_customer %] |
|
257 |
[% 'transferred out' | $T8 %] |
|
258 |
[% ELSE %] |
|
259 |
[% 'transferred in' | $T8 %] |
|
260 |
[% END %] |
|
261 |
[% ELSE %] |
|
262 |
[% IF is_customer %] |
|
263 |
[% 'not transferred out yet' | $T8 %] |
|
264 |
[% ELSE %] |
|
265 |
[% 'not transferred in yet' | $T8 %] |
|
266 |
[% END %] |
|
267 |
[% END %]</span> |
|
268 |
</td> |
|
269 |
</tr> |
|
270 |
<tr> |
|
271 |
<th>[% 'Status' | $T8 %]</th> |
|
272 |
<td> |
|
273 |
<span class="data wi-normal">[% IF closed %][% 'Closed' | $T8 %][% ELSE %][% 'Open' | $T8 %][% END %]</span> |
|
274 |
<input type="hidden" name="delivered" value="[% HTML.escape(delivered) %]"> |
|
275 |
</td> |
|
276 |
</tr> |
|
277 |
<tr> |
|
278 |
<th>[% 'Employee' | $T8 %]</th> |
|
279 |
<td> |
|
280 |
[% IF delivered %] |
|
281 |
<input type="hidden" name="employee_id" value="[% HTML.escape(employee_id) %]"> |
|
282 |
[% FOREACH row = ALL_EMPLOYEES %] |
|
283 |
[% IF row.id == employee_id %] |
|
284 |
[% IF row.name %] |
|
285 |
<span class="data wi-normal">[% HTML.escape(row.name) %]</span> |
|
286 |
[% ELSE %] |
|
287 |
<span class="data wi-normal">[% HTML.escape(row.login) %]</span> |
|
288 |
[% END %] |
|
289 |
[% END %] |
|
290 |
[% END %] |
|
291 |
[% ELSE %] |
|
292 |
[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name', class='wi-normal') %] |
|
293 |
[% END %] |
|
294 |
</td> |
|
295 |
</tr> |
|
296 |
[% IF is_customer %] |
|
297 |
[% IF salesman_id %] |
|
298 |
[% SET the_salesman_id = salesman_id %] |
|
299 |
[% ELSE %] |
|
300 |
[% SET the_salesman_id = employee_id %] |
|
301 |
[% END %] |
|
302 |
<tr> |
|
303 |
<th>[% 'Salesman' | $T8 %]</th> |
|
274 | 304 |
<td> |
275 |
[%- IF delivered %] |
|
276 |
<input type="hidden" name="salesman_id" value="[% HTML.escape(salesman_id) %]"> |
|
277 |
[%- FOREACH row = ALL_SALESMEN %] |
|
278 |
[% IF row.id == the_salesman_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %] |
|
279 |
[%- END %] |
|
280 |
[%- ELSE %] |
|
281 |
[% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name') %] |
|
282 |
[%- END %] |
|
283 |
</td> |
|
284 |
</tr> |
|
285 |
[%- END %] |
|
286 |
|
|
287 |
<tr> |
|
288 |
<th width="70%" align="right" nowrap>[% 'Delivery Order Number' | $T8 %]</th> |
|
289 |
<td><input name="donumber" id="donumber" size="11" value="[% HTML.escape(donumber) %]"[% RO %]></td> |
|
290 |
</tr> |
|
291 |
|
|
292 |
<tr> |
|
293 |
<th width="70%" align="right" nowrap>[% 'Order Number' | $T8 %]</th> |
|
294 |
<td><input name="ordnumber" id="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"[% RO %]></td> |
|
295 |
</tr> |
|
296 |
|
|
297 |
<tr> |
|
298 |
<th width="70%" align="right" nowrap>[% IF is_customer %][% 'Customer Order Number' | $T8 %][% ELSE %][% 'Vendor Order Number' | $T8 %][% END %]</th> |
|
299 |
<td><input name="cusordnumber" id="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"[% RO %]></td> |
|
300 |
</tr> |
|
301 |
|
|
302 |
<tr> |
|
303 |
<th align="right" nowrap>[% 'Delivery Order Date' | $T8 %]</th> |
|
304 |
<td nowrap> |
|
305 |
[% L.date_tag('transdate', transdate, readonly => delivered) %] |
|
306 |
</td> |
|
307 |
</tr> |
|
308 |
|
|
309 |
<tr> |
|
310 |
<th align="right" nowrap>[% 'Reqdate' | $T8 %]</th> |
|
311 |
<td nowrap> |
|
312 |
[% L.date_tag('reqdate', reqdate, readonly => delivered) %] |
|
305 |
[% IF delivered %] |
|
306 |
<input type="hidden" name="salesman_id" value="[% HTML.escape(salesman_id) %]"> |
|
307 |
[% FOREACH row = ALL_SALESMEN %] |
|
308 |
[% IF row.id == the_salesman_id %] |
|
309 |
[% IF row.name %] |
|
310 |
<span class="data wi-normal">[% HTML.escape(row.name) %][% ELSE %][% HTML.escape(row.login) %]</span> |
|
311 |
[% END %] |
|
312 |
[% END %] |
|
313 |
[% END %] |
|
314 |
[% ELSE %] |
|
315 |
[% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name', class='wi-normal') %] |
|
316 |
[% END %] |
|
313 | 317 |
</td> |
314 |
</tr> |
|
318 |
</tr> |
|
319 |
[% END %] |
|
320 |
<tr> |
|
321 |
<th class="caption" colspan="2">[% 'IDs & Dates' | $T8 %]</th> |
|
322 |
</tr> |
|
323 |
<tr> |
|
324 |
<th>[% 'Delivery Order Number' | $T8 %]</th> |
|
325 |
<td><input type="text" name="donumber" id="donumber" class="wi-mediumsmall" value="[% HTML.escape(donumber) %]"[% RO %]></td> |
|
326 |
</tr> |
|
327 |
<tr> |
|
328 |
<th>[% 'Order Number' | $T8 %]</th> |
|
329 |
<td><input type="text" name="ordnumber" id="ordnumber" class="wi-mediumsmall" value="[% HTML.escape(ordnumber) %]"[% RO %]></td> |
|
330 |
</tr> |
|
331 |
<tr> |
|
332 |
<th>[% IF is_customer %][% 'Customer Order Number' | $T8 %][% ELSE %][% 'Vendor Order Number' | $T8 %][% END %]</th> |
|
333 |
<td><input type="text" name="cusordnumber" id="cusordnumber" class="wi-mediumsmall" value="[% HTML.escape(cusordnumber) %]"[% RO %]></td> |
|
334 |
</tr> |
|
335 |
<tr> |
|
336 |
<th>[% 'Project Number' | $T8 %]</th> |
|
337 |
<td> |
|
338 |
[% IF delivered %] |
|
339 |
<input type="hidden" name="globalproject_id" value="[% HTML.escape(globalproject_id) %]"> |
|
340 |
[% FOREACH row = ALL_PROJECTS %] |
|
341 |
[% IF globalproject_id == row.id %][% HTML.escape(row.projectnumber) %][% END %] |
|
342 |
[% END %] |
|
343 |
[% ELSE %] |
|
344 |
<select name="globalproject_id" class="wi-mediumsmall"> |
|
345 |
<option></option> |
|
346 |
[% FOREACH row = ALL_PROJECTS %] |
|
347 |
<option value="[% HTML.escape(row.id) %]"[% IF globalproject_id == row.id %] selected[% END %]>[% HTML.escape(row.projectnumber) %]</option> |
|
348 |
[% END %] |
|
349 |
</select> |
|
350 |
[% END %] |
|
351 |
</td> |
|
352 |
</tr> |
|
353 |
<tr> |
|
354 |
<th>[% 'Delivery Order Date' | $T8 %]</th> |
|
355 |
<td> [% L.date_tag('transdate', transdate, readonly => delivered, class='wi-small') %] </td> |
|
356 |
</tr> |
|
357 |
<tr> |
|
358 |
<th>[% 'Reqdate' | $T8 %]</th> |
|
359 |
<td> [% L.date_tag('reqdate', reqdate, readonly => delivered, class='wi-small') %] </td> |
|
360 |
</tr> |
|
361 |
[% IF is_customer %] |
|
362 |
<tr> |
|
363 |
<th>[% 'Insert Date' | $T8 %]</th> |
|
364 |
<td><span class="data wi-small">[% insertdate %]</span></td> |
|
365 |
</tr> |
|
366 |
[% END %] |
|
367 |
</tbody> |
|
368 |
</table> |
|
315 | 369 |
|
316 |
[%- IF is_customer %] |
|
317 |
<tr> |
|
318 |
<th align="right" nowrap>[% 'Insert Date' | $T8 %]</th> |
|
319 |
<td>[% insertdate %]</td> |
|
320 |
</tr> |
|
321 |
[%- END %] |
|
370 |
</div><!-- /.wrapper --> |
|
322 | 371 |
|
323 |
<tr> |
|
324 |
<th width="70%" align="right" nowrap>[% 'Project Number' | $T8 %]</th> |
|
325 |
<td> |
|
326 |
[%- IF delivered %] |
|
327 |
<input type="hidden" name="globalproject_id" value="[% HTML.escape(globalproject_id) %]"> |
|
328 |
[%- FOREACH row = ALL_PROJECTS %] |
|
329 |
[% IF globalproject_id == row.id %][% HTML.escape(row.projectnumber) %][% END %] |
|
330 |
[%- END %] |
|
331 |
[%- ELSE %] |
|
332 |
<select name="globalproject_id"> |
|
333 |
<option></option> |
|
334 |
[%- FOREACH row = ALL_PROJECTS %] |
|
335 |
<option value="[% HTML.escape(row.id) %]"[% IF globalproject_id == row.id %] selected[% END %]>[% HTML.escape(row.projectnumber) %]</option> |
|
336 |
[%- END %] |
|
337 |
</select> |
|
338 |
[%- END %] |
|
339 |
</td> |
|
340 |
</tr> |
|
341 |
</table> |
|
342 |
</td> |
|
343 |
</tr> |
|
344 |
</table> |
templates/webpages/do/orders_bottom.html | ||
---|---|---|
1 |
[% USE HTML %][%- USE T8 -%][%- USE LxERP -%][%- USE P -%] |
|
2 |
[% P.hidden_tag("type", type) %] |
|
3 |
[% P.hidden_tag("vc", vc) %] |
|
4 |
[% P.hidden_tag("rowcount", rowcount) %] |
|
5 |
[% P.hidden_tag("callback", callback) %] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE T8 %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE P %] |
|
6 | 5 |
|
7 |
<div id="print_options" class="hidden"> |
|
6 |
[% P.hidden_tag("type", type) %] |
|
7 |
[% P.hidden_tag("vc", vc) %] |
|
8 |
[% P.hidden_tag("rowcount", rowcount) %] |
|
9 |
[% P.hidden_tag("callback", callback) %] |
|
10 |
|
|
11 |
<div id="print_options" class="hidden"> |
|
8 | 12 |
[% print_options %] |
9 |
</div> |
|
13 |
</div> |
|
14 |
|
|
10 | 15 |
</form> |
11 | 16 |
|
12 | 17 |
<div id="print_dialog" class="hidden"> |
13 |
[%- PROCESS 'common/_print_dialog.html' %]
|
|
18 |
[% PROCESS 'common/_print_dialog.html' %]
|
|
14 | 19 |
</div> |
15 | 20 |
<div id="mass_print_dialog" style="display: none"></div> |
templates/webpages/do/orders_top.html | ||
---|---|---|
1 |
[%- INCLUDE 'common/flash.html' %]
|
|
1 |
[% INCLUDE 'common/flash.html' %] |
|
2 | 2 |
<form method="post" action="do.pl" id="form"> |
templates/webpages/do/search.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %] |
|
3 |
[%- USE HTML %][%- USE LxERP %][%- USE P -%] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE HTML %] |
|
4 |
[% USE LxERP %] |
|
5 |
[% USE P %] |
|
4 | 6 |
<h1>[% title %]</h1> |
5 | 7 |
|
6 |
[%- IF vc == 'customer' %]
|
|
7 |
[%- SET is_customer = '1' %]
|
|
8 |
[%- ELSE %]
|
|
9 |
[%- SET is_customer = '0' %]
|
|
10 |
[%- END %]
|
|
8 |
[% IF vc == 'customer' %]
|
|
9 |
[% SET is_customer = '1' %]
|
|
10 |
[% ELSE %]
|
|
11 |
[% SET is_customer = '0' %]
|
|
12 |
[% END %]
|
|
11 | 13 |
|
12 |
[%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
|
|
14 |
[% SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
|
|
13 | 15 |
|
14 |
<style type="text/css"> |
|
15 |
.fixed_width { |
|
16 |
width: 250px; |
|
17 |
} |
|
18 |
</style> |
|
16 |
<form method="post" action="do.pl" name="Form" id="form"> |
|
19 | 17 |
|
20 |
<form method="post" action="do.pl" name="Form" id="form">
|
|
18 |
<div class="wrapper">
|
|
21 | 19 |
|
22 |
<p> |
|
23 |
<table> |
|
20 |
<table class="tbl-horizontal"> |
|
21 |
<caption>[% 'Customer' | $T8 %]</caption> |
|
22 |
<colgroup> <col class="wi-mediumsmall"><col class="wi-wide"> </colgroup> |
|
23 |
<tbody> |
|
24 | 24 |
<tr> |
25 |
<th align="right">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
|
|
26 |
<td colspan="3">[% P.input_tag(vc, "", class="fixed_width initial_focus") %]</td>
|
|
25 |
<th>[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
|
|
26 |
<td>[% P.input_tag(vc, "", class="fixed_width initial_focus wi-normal") %]</td>
|
|
27 | 27 |
</tr> |
28 |
|
|
28 |
[% IF ALL_BUSINESS_TYPES.size %] |
|
29 | 29 |
<tr> |
30 |
<th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
|
|
31 |
<td colspan="3">[% L.input_tag("cp_name", '', class="fixed_width") %]</td>
|
|
30 |
<th>[% vctypelabel %]</th>
|
|
31 |
<td> [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key='description', with_empty=1, class='wi-normal') %] </td>
|
|
32 | 32 |
</tr> |
33 |
|
|
33 |
[% END %] |
|
34 | 34 |
<tr> |
35 |
<th align="right">[% 'Delivery Order Number' | $T8 %]</th>
|
|
36 |
<td colspan="3"><input name="donumber" class="fixed_width"></td>
|
|
35 |
<th>[% 'Contact Person' | $T8 %]</th>
|
|
36 |
<td>[% L.input_tag("cp_name", '', class="fixed_width wi-normal") %]</td>
|
|
37 | 37 |
</tr> |
38 |
|
|
39 | 38 |
<tr> |
40 |
<th align="right">[% 'Order Number' | $T8 %]</th> |
|
41 |
<td colspan="3"><input name="ordnumber" class="fixed_width"></td> |
|
39 |
<th class="caption" colspan="2">[% 'Handling' | $T8 %]</th> |
|
42 | 40 |
</tr> |
43 |
|
|
44 | 41 |
<tr> |
45 |
<th align="right">[% 'Customer Order Number' | $T8 %]</th>
|
|
46 |
<td colspan="3"><input name="cusordnumber" class="fixed_width"></td>
|
|
42 |
<th>[% 'Employee' | $T8 %]</th>
|
|
43 |
<td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]</td>
|
|
47 | 44 |
</tr> |
48 |
|
|
49 |
[%- IF ALL_DEPARTMENTS.size %] |
|
45 |
[% IF is_customer %] |
|
50 | 46 |
<tr> |
51 |
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
|
|
52 |
<td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class="fixed_width") %]</td>
|
|
47 |
<th>[% 'Salesman' | $T8 %]</th>
|
|
48 |
<td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]</td>
|
|
53 | 49 |
</tr> |
54 |
[%- END %] |
|
55 |
|
|
50 |
[% END %] [% IF ALL_DEPARTMENTS.size %] |
|
56 | 51 |
<tr> |
57 |
<th align="right">[% 'Employee' | $T8 %]</th>
|
|
58 |
<td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
|
|
52 |
<th>[% 'Department' | $T8 %]</th>
|
|
53 |
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key='description', with_empty=1, class="fixed_width wi-normal") %]</td>
|
|
59 | 54 |
</tr> |
60 |
|
|
61 |
[%- IF is_customer %] |
|
55 |
[% END %] |
|
62 | 56 |
<tr> |
63 |
<th align="right">[% 'Salesman' | $T8 %]</th>
|
|
64 |
<td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
|
|
57 |
<th>[% 'Delivery Order Date' | $T8 %] [% #'From' | $T8 %]</th>
|
|
58 |
<td><span class="wi-date">[% L.date_tag('transdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto') %]</span></td>
|
|
65 | 59 |
</tr> |
66 |
[%- END %] |
|
67 |
|
|
68 | 60 |
<tr> |
69 |
<th align="right">[% 'Transaction description' | $T8 %]</th> |
|
70 |
<td><input name="transaction_description" class="fixed_width"></td> |
|
71 |
<th align="right">[% 'Part Description' | $T8 %]</th> |
|
72 |
<td><input name="parts_description" size="20" class="fixed_width"></td> |
|
61 |
<th>[% 'Reqdate' | $T8 %] [% #'From' | $T8 %]</th> |
|
62 |
<td><span class="wi-date">[% L.date_tag('reqdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('reqdateto') %]</span></td> |
|
73 | 63 |
</tr> |
74 |
|
|
75 | 64 |
<tr> |
76 |
<th align="right">[% 'Project Number' | $T8 %]</th> |
|
77 |
<td> |
|
78 |
<select name="project_id" class="fixed_width"> |
|
79 |
<option></option> |
|
80 |
[%- FOREACH row = ALL_PROJECTS %] |
|
81 |
<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option> |
|
82 |
[%- END %] |
|
83 |
</select> |
|
84 |
</td> |
|
85 |
<th align="right">[% 'Part Number' | $T8 %]</th> |
|
86 |
<td><input name="parts_partnumber" size="20", class="fixed_width"></td> |
|
65 |
<th>[% 'Insert Date' | $T8 %] [% #'From' | $T8 %]</th> |
|
66 |
<td><span class="wi-date">[% L.date_tag('insertdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto') %]</span></td> |
|
87 | 67 |
</tr> |
68 |
</tbody> |
|
69 |
</table> |
|
88 | 70 |
|
71 |
<table class="tbl-horizontal"> |
|
72 |
<caption>[% 'Order & Numbers' | $T8 %]</caption> |
|
73 |
<colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup> |
|
74 |
<tbody> |
|
89 | 75 |
<tr> |
90 |
<th align="right">[% 'Serial Number' | $T8 %]</th> |
|
91 |
<td colspan="3"><input name="serialnumber" class="fixed_width"></td> |
|
76 |
<th>[% 'Delivery Order Number' | $T8 %]</th> |
|
77 |
<td> <input type="text" name="donumber" class="fixed_width wi-mediumsmall"> |
|
78 |
</td> |
|
92 | 79 |
</tr> |
93 |
|
|
94 |
[%- IF ALL_BUSINESS_TYPES.size %] |
|
95 | 80 |
<tr> |
96 |
<th align="right" nowrap>[% vctypelabel %]</th> |
|
97 |
<td colspan="3"> |
|
98 |
[% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %] |
|
99 |
</td> |
|
81 |
<th>[% 'Order Number' | $T8 %]</th> |
|
82 |
<td> <input type="text" name="ordnumber" class="fixed_width wi-mediumsmall"> |
|
83 |
</td> |
|
100 | 84 |
</tr> |
101 |
[%- END %] |
|
102 |
|
|
103 |
<tr> |
|
104 |
<th align="right">[% 'Delivery Order Date' | $T8 %] [% 'From' | $T8 %]</th> |
|
105 |
<td> |
|
106 |
[% L.date_tag('transdatefrom') %] |
|
107 |
[% 'Bis' | $T8 %] |
|
108 |
[% L.date_tag('transdateto') %] |
|
109 |
</td> |
|
110 |
</tr> |
|
111 |
|
|
112 | 85 |
<tr> |
113 |
<th align="right">[% 'Reqdate' | $T8 %] [% 'From' | $T8 %]</th> |
|
114 |
<td> |
|
115 |
[% L.date_tag('reqdatefrom') %] |
|
116 |
[% 'Bis' | $T8 %] |
|
117 |
[% L.date_tag('reqdateto') %] |
|
118 |
</td> |
|
86 |
<th>[% 'Customer Order Number' | $T8 %]</th> |
|
87 |
<td> <input type="text" name="cusordnumber" class="fixed_width wi-mediumsmall"> |
|
88 |
</td> |
|
119 | 89 |
</tr> |
120 |
|
|
121 |
<tr> |
|
122 |
<th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th> |
|
123 |
<td> |
|
124 |
[% L.date_tag('insertdatefrom') %] |
|
125 |
[% 'Bis' | $T8 %] |
|
126 |
[% L.date_tag('insertdateto') %] |
|
127 |
</td> |
|
128 |
</tr> |
|
129 |
|
|
130 | 90 |
<tr> |
131 |
<th align="right">[% 'Include in Report' | $T8 %]</th> |
|
132 |
<td colspan="5"> |
|
133 |
<table> |
|
134 |
<tr> |
|
135 |
<td> |
|
136 |
<input type="checkbox" name="open" value="1" id="open" checked> |
|
137 |
<label for="open">[% 'Open' | $T8 %]</label> |
|
138 |
</td> |
|
139 |
<td> |
|
140 |
<input type="checkbox" name="closed" value="1" id="closed"> |
|
141 |
<label for="closed">[% 'Closed' | $T8 %]</label> |
|
142 |
</td> |
|
143 |
</tr> |
|
144 |
|
|
145 |
<tr> |
|
146 |
<td> |
|
147 |
<input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked> |
|
148 |
<label for="notdelivered">[% 'Not delivered' | $T8 %]</label> |
|
149 |
</td> |
|
150 |
<td> |
|
151 |
<input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked> |
|
152 |
<label for="delivered">[% 'Delivered' | $T8 %]</label></td> |
|
153 |
</tr> |
|
154 |
|
|
155 |
<tr> |
|
156 |
<td> |
|
157 |
<input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y"> |
|
158 |
<label for="l_id">[% 'ID' | $T8 %]</label> |
|
159 |
</td> |
|
160 |
|
|
161 |
<td> |
|
162 |
<input name="l_donumber" id="l_donumber" class="checkbox" type="checkbox" value="Y" checked> |
|
163 |
<label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label> |
|
164 |
</td> |
|
165 |
</tr> |
|
166 |
|
|
167 |
<tr> |
|
168 |
<td> |
|
169 |
<input name="l_ordnumber" id="l_ordnumber" class="checkbox" type="checkbox" value="Y" checked> |
|
170 |
<label for="l_ordnumber">[% 'Order Number' | $T8 %]</label> |
|
171 |
</td> |
|
172 |
|
|
173 |
<td> |
|
174 |
<input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked> |
|
175 |
<label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label> |
|
176 |
</td> |
|
177 |
</tr> |
|
178 |
|
|
179 |
<tr> |
|
180 |
<td> |
|
181 |
<input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked> |
|
182 |
<label for="l_transdate">[% 'Delivery Order Date' | $T8 %]</label> |
|
183 |
</td> |
|
184 |
<td> |
|
185 |
<input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked> |
|
186 |
<label for="l_reqdate">[% 'Reqdate' | $T8 %]</label> |
|
187 |
</td> |
|
188 |
[% IF is_customer %] |
|
189 |
<td> |
|
190 |
<input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y"> |
|
191 |
<label for="l_insertdate">[% 'Insert Date' | $T8 %]</label> |
|
192 |
</td> |
|
193 |
[%- END %] |
|
194 |
</tr> |
|
195 |
|
|
196 |
<tr> |
|
197 |
<td> |
|
198 |
<input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked> |
|
199 |
<label for="l_name">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</label> |
|
200 |
</td> |
|
201 |
|
|
202 |
[% IF is_customer %] |
|
203 |
<td> |
|
204 |
<input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y"> |
|
205 |
<label for="l_customernumber">[% 'Customer Number' | $T8 %]</label> |
|
206 |
</td> |
|
91 |
<th>[% 'Project Number' | $T8 %]</th> |
|
92 |
<td> |
|
93 |
<select name="project_id" class="fixed_width wi-mediumsmall"> |
|
94 |
<option></option> |
|
95 |
[% FOREACH row = ALL_PROJECTS %] |
|
96 |
<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option> |
|
207 | 97 |
[% END %] |
208 |
</tr> |
|
209 |
|
|
210 |
<tr> |
|
211 |
<td> |
|
212 |
<input name="l_department" id="l_department" class="checkbox" type="checkbox" value="Y"> |
|
213 |
<label for="l_department">[% "Department" | $T8 %]</label> |
|
214 |
</td> |
|
215 |
|
|
216 |
<td> |
|
217 |
<input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y"> |
|
218 |
<label for="l_shipvia">[% 'Ship via' | $T8 %]</label> |
|
219 |
</td> |
|
220 |
</tr> |
|
221 |
|
|
222 |
<tr> |
|
223 |
<td> |
|
224 |
<input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked> |
|
225 |
<label for="l_employee">[% 'Employee' | $T8 %]</label> |
|
226 |
</td> |
|
227 |
|
|
228 |
<td> |
|
229 |
<input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y"> |
|
230 |
<label for="l_salesman">[% 'Salesman' | $T8 %]</label> |
|
231 |
</td> |
|
232 |
</tr> |
|
233 |
|
|
234 |
<tr> |
|
235 |
<td> |
|
236 |
<input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y"> |
|
237 |
<label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label> |
|
238 |
</td> |
|
239 |
|
|
240 |
<td> |
|
241 |
<input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y"[% IF INSTANCE_CONF.get_require_transaction_description_ps %] checked[% END %]> |
|
242 |
<label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label> |
|
243 |
</td> |
|
244 |
</tr> |
|
245 |
|
|
246 |
</table> |
|
247 |
</td> |
|
248 |
</tr> |
|
249 |
</table> |
|
250 |
</p> |
|
251 |
|
|
252 |
<input type="hidden" name="action" value="orders"> |
|
253 |
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]"> |
|
254 |
<input type="hidden" name="type" value="[% HTML.escape(type) %]"> |
|
255 |
</form> |
|
98 |
</select> |
|
99 |
</td> |
|
100 |
</tr> |
|
101 |
<tr> |
|
102 |
<th>[% 'Transaction description' | $T8 %]</th> |
|
103 |
<td> <input type="text" name="transaction_description" class="fixed_width wi-mediumsmall"> |
|
104 |
</td> |
|
105 |
</tr> |
|
106 |
<tr> |
|
107 |
<th class="caption" colspan="2">[% 'Article data' | $T8 %]</th> |
|
108 |
</tr> |
|
109 |
<tr> |
|
110 |
<th>[% 'Part Description' | $T8 %]</th> |
|
111 |
<td> <input type="text" name="parts_description" class="fixed_width wi-mediumsmall"> |
|
112 |
</td> |
|
113 |
</tr> |
|
114 |
<tr> |
|
115 |
<th>[% 'Part Number' | $T8 %]</th> |
|
116 |
<td> <input type="text" name="parts_partnumber" class="fixed_width wi-mediumsmall"> |
|
117 |
</td> |
|
118 |
</tr> |
|
119 |
<tr> |
|
120 |
<th>[% 'Serial Number' | $T8 %]</th> |
|
121 |
<td> <input type="text" name="serialnumber" class="fixed_width wi-mediumsmall"> |
|
122 |
</td> |
|
123 |
</tr> |
|
124 |
</tbody> |
|
125 |
</table> |
|
126 |
|
|
127 |
|
|
128 |
</div><!-- ./wrapper --> |
|
129 |
|
|
130 |
<div class="form-addition control-panel wrapper"> |
|
131 |
<h3>[% 'Include in Report' | $T8 %]</h3> |
|
132 |
<div class="list col wi-small"> |
|
133 |
<h4>[% 'Status' | $T8 %]</h4> |
|
134 |
<div> |
|
135 |
<input type="checkbox" name="open" value="1" id="open" checked> |
|
136 |
<label for="open">[% 'Open' | $T8 %]</label> |
|
137 |
</div> |
|
138 |
<div> |
|
139 |
<input type="checkbox" name="closed" value="1" id="closed"> |
|
140 |
<label for="closed">[% 'Closed' | $T8 %]</label> |
|
141 |
</div> |
|
142 |
<div> |
|
143 |
<input name="notdelivered" id="notdelivered" type="checkbox" value="1" checked> |
|
144 |
<label for="notdelivered">[% 'Not delivered' | $T8 %]</label> |
|
145 |
</div> |
|
146 |
<div> |
|
147 |
<input name="delivered" id="delivered" type="checkbox" value="1" checked> |
|
148 |
<label for="delivered">[% 'Delivered' | $T8 %]</label> |
|
149 |
</div> |
|
150 |
</div> |
|
151 |
<div class="list col"> |
|
152 |
<h4>[% 'IDs & Numbers' | $T8 %]</h4> |
|
153 |
<div> |
|
154 |
<input name="l_id" id="l_id" type="checkbox" value="Y"> |
|
155 |
<label for="l_id">[% 'ID' | $T8 %]</label> |
|
156 |
</div> |
|
157 |
<div> |
|
158 |
<input name="l_donumber" id="l_donumber" type="checkbox" value="Y" checked> |
|
159 |
<label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label> |
|
160 |
</div> |
|
161 |
<div> |
|
162 |
<input name="l_ordnumber" id="l_ordnumber" type="checkbox" value="Y" checked> |
|
163 |
<label for="l_ordnumber">[% 'Order Number' | $T8 %]</label> |
|
164 |
</div> |
|
165 |
<div> |
|
166 |
<input name="l_cusordnumber" id="l_cusordnumber" type="checkbox" value="Y" checked> |
|
167 |
<label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label> |
|
168 |
</div> |
|
169 |
[% IF is_customer %] |
|
170 |
<div> |
|
171 |
<input name="l_customernumber" id="l_customernumber" type="checkbox" value="Y"> |
|
172 |
<label for="l_customernumber">[% 'Customer Number' | $T8 %]</label> |
|
173 |
</div> |
|
174 |
[% END %] |
|
175 |
<div> |
|
176 |
<input name="l_globalprojectnumber" id="l_globalprojectnumber" type="checkbox" value="Y"> |
|
177 |
<label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label> |
|
178 |
</div> |
|
179 |
</div> |
|
180 |
<div class="list col"> |
|
181 |
<h4>[% 'Dates' | $T8 %]</h4> |
|
182 |
<div> |
|
183 |
<input name="l_transdate" id="l_transdate" type="checkbox" value="Y" checked> |
|
184 |
<label for="l_transdate">[% 'Delivery Order Date' | $T8 %]</label> |
|
185 |
</div> |
|
186 |
<div> |
|
187 |
<input name="l_reqdate" id="l_reqdate" type="checkbox" value="Y" checked> |
|
188 |
<label for="l_reqdate">[% 'Reqdate' | $T8 %]</label> |
|
189 |
</div> |
|
190 |
[% IF is_customer %] |
|
191 |
<div> |
|
192 |
<input name="l_insertdate" id="l_insertdate" type="checkbox" value="Y"> |
|
193 |
<label for="l_insertdate">[% 'Insert Date' | $T8 %]</label> |
|
194 |
</div> |
|
195 |
[% END %] |
|
196 |
</div> |
|
197 |
<div class="list col"> |
|
198 |
<h4>[% 'Order data' | $T8 %]</h4> |
|
199 |
<div> |
|
200 |
<input name="l_name" id="l_name" type="checkbox" value="Y" checked> |
|
201 |
<label for="l_name">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</label> |
|
202 |
</div> |
|
203 |
<div> |
|
204 |
<input name="l_transaction_description" id="l_transaction_description" type="checkbox" value="Y" [% IF (instance_conf.get_require_transaction_description_ps) %] checked[% END %]> |
|
205 |
<label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label> |
|
206 |
</div> |
|
207 |
</div> |
|
208 |
<div class="list col"> |
|
209 |
<h4>[% 'Handling' | $T8 %]</h4> |
|
210 |
<div> |
|
211 |
<input name="l_employee" id="l_employee" type="checkbox" value="Y" checked> |
|
212 |
<label for="l_employee">[% 'Employee' | $T8 %]</label> |
|
213 |
</div> |
|
214 |
<div> |
|
215 |
<input name="l_salesman" id="l_salesman" type="checkbox" value="Y"> |
|
216 |
<label for="l_salesman">[% 'Salesman' | $T8 %]</label> |
|
217 |
</div> |
|
218 |
<div> |
|
219 |
<input name="l_department" id="l_department" type="checkbox" value="Y"> |
|
220 |
<label for="l_department">[% "Department" | $T8 %]</label> |
|
221 |
</div> |
|
222 |
<div> |
|
223 |
<input name="l_shipvia" id="l_shipvia" type="checkbox" value="Y"> |
|
224 |
<label for="l_shipvia">[% 'Ship via' | $T8 %]</label> |
|
225 |
</div> |
|
226 |
</div> |
|
227 |
</div><!-- /.form-addition /.wrapper --> |
|
228 |
|
|
229 |
|
|
230 |
|
|
231 |
<input type="hidden" name="action" value="orders"> |
|
232 |
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]"> |
|
233 |
<input type="hidden" name="type" value="[% HTML.escape(type) %]"> |
|
234 |
|
|
235 |
</form> |
templates/webpages/do/set_stock_in_out.html | ||
---|---|---|
1 | 1 |
[% USE HTML %] |
2 | 2 |
[% USE L %] |
3 |
<script type="text/javascript"> |
|
4 |
<!-- |
|
5 |
$(function(){ |
|
6 |
var row = $('#row').val(); |
|
7 |
$(window.opener.document.getElementsByName("stock_" + $('#in_out').prop('value') + "_" + row)).val($('#stock').val()); |
|
8 |
$(window.opener.document.getElementById("stock_in_out_qty_display_" + row)).html($('#qty_display').val()); |
|
9 |
$(window.opener.document.getElementById("stock_in_out_qty_matches_" + row)).val([% qty_matches %]); |
|
10 | 3 |
|
11 |
window.close(); |
|
12 |
}); |
|
13 |
--> |
|
14 |
</script> |
|
4 |
<script type="text/javascript"><!-- |
|
5 |
$(function(){ |
|
6 |
var row = $('#row').val(); |
|
7 |
$(window.opener.document.getElementsByName("stock_" + $('#in_out').prop('value') + "_" + row)).val($('#stock').val()); |
|
8 |
$(window.opener.document.getElementById("stock_in_out_qty_display_" + row)).html($('#qty_display').val()); |
|
9 |
$(window.opener.document.getElementById("stock_in_out_qty_matches_" + row)).val([% qty_matches %]); |
|
10 |
window.close(); |
|
11 |
}); |
|
12 |
--></script> |
|
15 | 13 |
|
16 |
<form name="data">
|
|
14 |
<form name="data"> |
|
17 | 15 |
<input type="hidden" name="row" id="row" value="[% HTML.escape(row) %]"> |
18 | 16 |
<input type="hidden" name="stock" id="stock" value="[% HTML.escape(stock) %]"> |
19 | 17 |
<input type="hidden" name="in_out" id="in_out" value="[% HTML.escape(in_out) %]"> |
20 | 18 |
<input type="hidden" name="qty_display" id="qty_display" value="[% HTML.escape(qty_display) %]"> |
21 |
</form> |
|
19 |
</form> |
templates/webpages/do/stock_in_form.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %] |
|
3 |
[%- USE HTML %][%- USE LxERP %][%- USE JavaScript %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE HTML %] |
|
4 |
[% USE LxERP %] |
|
5 |
[% USE JavaScript %] |
|
4 | 6 |
<h1>[% title %]</h1> |
5 | 7 |
|
6 |
[%- UNLESS delivered %] |
|
7 |
<script type="text/javascript"> |
|
8 |
<!-- |
|
9 |
warehouses = new Array(); |
|
10 |
[% USE WAREHOUSES_it = Iterator(WAREHOUSES) %][% FOREACH wh = WAREHOUSES_it %] |
|
11 |
warehouses[[% WAREHOUSES_it.count - 1 %]] = new Array(); |
|
12 |
[% USE BINS_it = Iterator(wh.BINS) %][% FOREACH bin = BINS_it %]warehouses[[% WAREHOUSES_it.count - 1 %]][[% BINS_it.count - 1 %]] = ["[% JavaScript.escape(bin.description) %]", "[% JavaScript.escape(bin.id) %]"]; |
|
8 |
[% UNLESS delivered %] |
|
9 |
<script type="text/javascript"><!-- |
|
10 |
|
|
11 |
warehouses = new Array(); |
|
12 |
[% USE WAREHOUSES_it = Iterator(WAREHOUSES) %] |
|
13 |
[% FOREACH wh = WAREHOUSES_it %] |
|
14 |
warehouses[[% WAREHOUSES_it.count - 1 %]] = new Array(); |
|
15 |
[% USE BINS_it = Iterator(wh.BINS) %] |
|
16 |
[% FOREACH bin = BINS_it %] |
|
17 |
warehouses[[% WAREHOUSES_it.count - 1 %]][[% BINS_it.count - 1 %]] = ["[% JavaScript.escape(bin.description) %]", "[% JavaScript.escape(bin.id) %]"]; |
|
18 |
[% END %] |
|
19 |
[% END %] |
|
20 |
|
|
21 |
function warehouse_selected(row, index, initial_bin_index) { |
|
22 |
var cname = "bin_id_" + row; |
|
23 |
var control = document.getElementById(cname); |
|
24 |
for (var i = control.options.length - 1; i >= 0; i--) { |
|
25 |
control.options[i] = null; |
|
26 |
} |
|
27 |
for (i = 0; i < warehouses[index].length; i++) { |
|
28 |
control.options[i] = new Option(warehouses[index][i][0], warehouses[index][i][1]); |
|
29 |
} |
|
30 |
if (!initial_bin_index) |
|
31 |
initial_bin_index = 0; |
|
32 |
control.options[initial_bin_index].selected = true; |
|
33 |
} |
|
34 |
|
|
35 |
$(function(){ |
|
36 |
var bin_id_index = 0; |
|
37 |
var warehouse_id_index = 0; |
|
38 |
[% USE STOCK_INFO_it = Iterator(STOCK_INFO) %][% FOREACH si = STOCK_INFO_it %] |
|
39 |
// new si for wh [% si.warehouse_id %] bin [% si.bin_id %] |
|
40 |
[% SET warehouse_selected = '0' %] |
|
41 |
[% USE WAREHOUSES_it = Iterator(WAREHOUSES) %][% FOREACH wh = WAREHOUSES_it %] |
|
42 |
// wh [% wh.id %] |
|
43 |
[% IF HTML.escape(PART_INFO.warehouse_id) == wh.id %] |
|
44 |
warehouse_id_index = [% WAREHOUSES_it.count - 1%]; |
|
13 | 45 |
[% END %] |
46 |
[% USE BINS_it = Iterator(wh.BINS) %][% FOREACH bin = BINS_it %] |
|
47 |
// bin [% bin.id %] |
|
48 |
[% IF HTML.escape(PART_INFO.bin_id) == bin.id %] |
|
49 |
bin_id_index = [% BINS_it.count - 1%]; |
|
50 |
[% END %] |
|
51 |
[% IF bin.id == si.bin_id %] |
|
52 |
warehouse_selected([% STOCK_INFO_it.count %], [% WAREHOUSES_it.count - 1 %], [% BINS_it.count - 1%]); |
|
53 |
[% SET warehouse_selected = '1' %] |
|
54 |
[% END %] |
|
14 | 55 |
[% END %] |
56 |
[% END %] |
|
57 |
[% UNLESS warehouse_selected %] |
|
58 |
warehouse_selected([% STOCK_INFO_it.count %], warehouse_id_index, bin_id_index); |
|
59 |
[% END %] |
|
60 |
[% END %] |
|
61 |
}); |
|
15 | 62 |
|
16 |
function warehouse_selected(row, index, initial_bin_index) { |
|
17 |
var cname = "bin_id_" + row; |
|
18 |
var control = document.getElementById(cname); |
|
63 |
--></script> |
|
64 |
[% END %] |
|
19 | 65 |
|
20 |
for (var i = control.options.length - 1; i >= 0; i--) { |
|
21 |
control.options[i] = null; |
|
22 |
} |
|
66 |
<form method="post" action="do.pl" name="Form"> |
|
23 | 67 |
|
24 |
for (i = 0; i < warehouses[index].length; i++) {
|
|
25 |
control.options[i] = new Option(warehouses[index][i][0], warehouses[index][i][1]);
|
|
26 |
}
|
|
68 |
[% IF ERRORS && ERRORS.size %]
|
|
69 |
<div class="message message_error">[% ERRORS.join('<br>') %]</div>
|
|
70 |
[% END %]
|
|
27 | 71 |
|
28 |
if (!initial_bin_index) |
|
29 |
initial_bin_index = 0; |
|
30 |
control.options[initial_bin_index].selected = true; |
|
31 |
} |
|
32 |
|
|
33 |
$(function(){ |
|
34 |
var bin_id_index = 0; |
|
35 |
var warehouse_id_index = 0; |
|
36 |
[%- USE STOCK_INFO_it = Iterator(STOCK_INFO) %][%- FOREACH si = STOCK_INFO_it %] |
|
37 |
// new si for wh [% si.warehouse_id %] bin [% si.bin_id %] |
|
38 |
[%- SET warehouse_selected = '0' %] |
|
39 |
[%- USE WAREHOUSES_it = Iterator(WAREHOUSES) %][%- FOREACH wh = WAREHOUSES_it %] |
|
40 |
// wh [% wh.id %] |
|
41 |
[% IF HTML.escape(PART_INFO.warehouse_id) == wh.id %] |
|
42 |
warehouse_id_index = [% WAREHOUSES_it.count - 1%]; |
|
43 |
[% END %] |
|
44 |
[%- USE BINS_it = Iterator(wh.BINS) %][%- FOREACH bin = BINS_it %] |
|
45 |
// bin [% bin.id %] |
|
46 |
[% IF HTML.escape(PART_INFO.bin_id) == bin.id %] |
|
47 |
bin_id_index = [% BINS_it.count - 1%]; |
|
48 |
[% END %] |
|
49 |
[%- IF bin.id == si.bin_id %] |
|
50 |
warehouse_selected([% STOCK_INFO_it.count %], [% WAREHOUSES_it.count - 1 %], [% BINS_it.count - 1%]); |
|
51 |
[%- SET warehouse_selected = '1' %] |
|
52 |
[%- END %] |
|
53 |
[%- END %] |
|
54 |
[%- END %] |
|
55 |
[%- UNLESS warehouse_selected %] |
|
56 |
warehouse_selected([% STOCK_INFO_it.count %], warehouse_id_index, bin_id_index); |
|
57 |
[%- END %] |
|
58 |
[%- END %] |
|
59 |
}); |
|
60 |
--> |
|
61 |
</script> |
|
62 |
[%- END %] |
|
63 |
|
|
64 |
<form method="post" action="do.pl" name="Form"> |
|
65 |
|
|
66 |
[%- IF ERRORS && ERRORS.size %] |
|
67 |
<p><font color="#ff0000">[% ERRORS.join('<br>') %]</font></p> |
|
68 |
[%- END %] |
|
69 |
|
|
70 |
<p> |
|
71 |
<table> |
|
72 |
<table class="tbl-plain"> |
|
73 |
<tbody> |
|
72 | 74 |
<tr> |
73 |
<td>[% 'Part Number' | $T8 %]</td> |
|
74 |
<td>[% HTML.escape(PART_INFO.partnumber) %]</td> |
|
75 |
<td>[% 'Part Number' | $T8 %]</td>
|
|
76 |
<td>[% HTML.escape(PART_INFO.partnumber) %]</td>
|
|
75 | 77 |
</tr> |
76 | 78 |
<tr> |
77 |
<td>[% 'Description' | $T8 %]</td> |
|
78 |
<td>[% HTML.escape(PART_INFO.description) %]</td> |
|
79 |
<td>[% 'Description' | $T8 %]</td>
|
|
80 |
<td>[% HTML.escape(PART_INFO.description) %]</td>
|
|
79 | 81 |
</tr> |
80 | 82 |
<tr> |
81 |
<td>[% 'Qty according to delivery order' | $T8 %]</td> |
|
82 |
<td>[% HTML.escape(do_qty) %] [% HTML.escape(do_unit) %]</td> |
|
83 |
</tr> |
|
84 |
</table> |
|
85 |
</p> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/do/..