1 |
|
[%# Determine which shipping address to show if the delivery order has been shipped already. %]
|
2 |
|
[%- IF delivered;
|
3 |
|
SET shipto_label = [];
|
4 |
|
IF shipto_id;
|
5 |
|
FOREACH row = ALL_SHIPTO ;
|
6 |
|
IF row.shipto_id == shipto_id ;
|
7 |
|
SET shipto_label = [ row.shiptoname, row.shiptodepartment_1, row.shiptostreet, row.shiptocity ] ;
|
8 |
|
END ;
|
9 |
|
END ;
|
10 |
|
ELSE ;
|
11 |
|
SET shipto_label = [ shiptoname, shiptodepartment_1, shiptostreet, shiptocity ] ;
|
12 |
1 |
[% USE T8 %]
|
13 |
2 |
[% USE HTML %]
|
14 |
3 |
[% USE LxERP %]
|
15 |
4 |
[% USE L %]
|
16 |
5 |
[% USE P %]
|
17 |
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 ] ;
|
18 |
14 |
END ;
|
|
15 |
END ;
|
|
16 |
ELSE ;
|
|
17 |
SET shipto_label = [ shiptoname, shiptodepartment_1, shiptostreet, shiptocity ] ;
|
|
18 |
END ;
|
19 |
19 |
|
20 |
|
SET shipto_label = shipto_label.grep('.') ;
|
21 |
|
IF !shipto_label.size ;
|
22 |
|
shipto_label = [ LxERP.t8('no shipping address') ] ;
|
23 |
|
END ;
|
24 |
|
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 ; %]
|
25 |
25 |
|
26 |
26 |
<h1>[% title %]</h1>
|
27 |
27 |
|
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 |
|
<style type="text/css">
|
38 |
|
.fixed_width {
|
39 |
|
width: 250px;
|
40 |
|
}
|
41 |
|
</style>
|
42 |
|
|
43 |
|
[%- IF vc == 'customer' %]
|
44 |
|
[%- SET is_customer = '1' %]
|
45 |
|
[%- ELSE %]
|
46 |
|
[%- SET vc = 'vendor' %]
|
47 |
|
[%- SET is_customer = '0' %]
|
48 |
|
[%- END %]
|
49 |
|
[%- SET vc_id = vc _ "_id" %]
|
50 |
|
[%- IF delivered %]
|
51 |
|
[%- SET DISABLED = ' disabled' %]
|
52 |
|
[%- END %]
|
53 |
|
|
54 |
|
[%- INCLUDE 'common/flash.html' %]
|
55 |
|
[%- INCLUDE 'generic/set_longdescription.html' %]
|
56 |
|
|
57 |
|
[%- IF ERRORS && ERRORS.size %]
|
58 |
|
<p><font color="#ff0000">[% ERRORS.join('<br>') %]</font></p>
|
59 |
|
[%- END %]
|
60 |
|
|
61 |
|
<form id="form" method="post" name="do" action="do.pl">
|
62 |
|
|
63 |
|
<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">
|
64 |
59 |
<ul>
|
65 |
|
<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
|
66 |
|
[%- IF INSTANCE_CONF.get_webdav %]
|
67 |
|
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
|
68 |
|
[%- END %]
|
69 |
|
[%- 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 %]
|
70 |
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>
|
71 |
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>
|
72 |
|
[%- END %]
|
73 |
|
[%- IF id AND AUTH.assert('record_links', 1) %]
|
74 |
|
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=DeliveryOrder&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
|
75 |
|
[%- 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 %]
|
76 |
71 |
</ul>
|
77 |
72 |
|
78 |
|
<div id="ui-tabs-basic-data">
|
79 |
|
|
80 |
|
<input type="hidden" name="follow_up_trans_id_1" id="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
|
81 |
|
<input type="hidden" name="follow_up_trans_type_1" id="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
|
82 |
|
<input type="hidden" name="follow_up_trans_info_1" id="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
|
83 |
|
<input type="hidden" name="follow_up_rowcount" id="follow_up_rowcount" value="1">
|
84 |
|
|
85 |
|
|
86 |
|
<input type="hidden" name="business" id="business" value="[% HTML.escape(business) %]">
|
87 |
|
<input type="hidden" name="closed" id="closed" value="[% HTML.escape(closed) %]">
|
88 |
|
<input type="hidden" name="convert_from_oe_ids" id="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
|
89 |
|
<input type="hidden" name="currency" id="currency" value="[% HTML.escape(currency) %]">
|
90 |
|
<input type="hidden" name="customer_pricegroup_id" id="customer_pricegroup_id" value="[% HTML.escape(customer_pricegroup_id) %]">
|
91 |
|
<input type="hidden" name="discount" id="discount" value="[% HTML.escape(discount) %]">
|
92 |
|
<input type="hidden" name="dunning_amount" id="dunning_amount" value="[% HTML.escape(dunning_amount) %]">
|
93 |
|
<input type="hidden" name="emailed" id="emailed" value="[% HTML.escape(emailed) %]">
|
94 |
|
<input type="hidden" name="id" id="id" value="[% HTML.escape(id) %]">
|
95 |
|
<input type="hidden" name="max_dunning_level" id="max_dunning_level" value="[% HTML.escape(max_dunning_level) %]">
|
96 |
|
<input type="hidden" name="printed" id="printed" value="[% HTML.escape(printed) %]">
|
97 |
|
<input type="hidden" name="proforma" id="proforma" value="[% HTML.escape(proforma) %]">
|
98 |
|
<input type="hidden" name="queued" id="queued" value="[% HTML.escape(queued) %]">
|
99 |
|
<input type="hidden" name="saved_donumber" id="saved_donumber" value="[% HTML.escape(saved_donumber) %]">
|
100 |
|
[%- 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 %]
|
101 |
97 |
<input type="hidden" name="shipto_id" id="shipto_id" value="[% HTML.escape(shipto_id) %]">
|
102 |
98 |
<input type="hidden" name="shiptocity" id="shiptocity" value="[% HTML.escape(shiptocity) %]">
|
103 |
99 |
<input type="hidden" name="shiptocontact" id="shiptocontact" value="[% HTML.escape(shiptocontact) %]">
|
... | ... | |
113 |
109 |
<input type="hidden" name="shiptostreet" id="shiptostreet" value="[% HTML.escape(shiptostreet) %]">
|
114 |
110 |
<input type="hidden" name="shiptozipcode" id="shiptozipcode" value="[% HTML.escape(shiptozipcode) %]">
|
115 |
111 |
<input type="hidden" name="shiptocp_gender" id="shiptocp_gender" value="[% HTML.escape(shiptocp_gender) %]">
|
116 |
|
[%- END %]
|
117 |
|
<input type="hidden" name="show_details" id="show_details" value="[% HTML.escape(show_details) %]">
|
118 |
|
<input type="hidden" name="taxincluded" id="taxincluded" value="[% HTML.escape(taxincluded) %]">
|
119 |
|
<input type="hidden" name="taxzone_id" id="taxzone_id" value="[% HTML.escape(taxzone_id) %]">
|
120 |
|
<input type="hidden" name="title" id="title" value="[% HTML.escape(title) %]">
|
121 |
|
<input type="hidden" name="type" id="type" value="[% HTML.escape(type) %]">
|
122 |
|
<input type="hidden" name="vc" id="vc" value="[% HTML.escape(vc) %]">
|
123 |
|
<input type="hidden" name="lastmtime" id="lastmtime" value="[% HTML.escape(lastmtime) %]">
|
124 |
|
<input type="hidden" name="tax_point" id="tax_point" value="[% HTML.escape(tax_point) %]">
|
125 |
|
|
126 |
|
<p>
|
127 |
|
<table width="100%">
|
128 |
|
<tr valign="top">
|
129 |
|
<td>
|
130 |
|
<table width="100%">
|
131 |
|
<tr>
|
132 |
|
<th align="right">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
|
133 |
|
<td>
|
134 |
|
[% 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 |
<input type="hidden" name="tax_point" id="tax_point" value="[% HTML.escape(tax_point) %]">
|
|
121 |
|
|
122 |
|
|
123 |
|
|
124 |
<table class="tbl-horizontal col">
|
|
125 |
<caption>[% 'Customer & Order Information' | $T8 %]</caption>
|
|
126 |
<colgroup><col class="wi-mediumsmall"><col class="wi-wide"></colgroup>
|
|
127 |
<tbody>
|
|
128 |
<tr>
|
|
129 |
<th>[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
|
|
130 |
<td class="wi-wide">
|
|
131 |
[% IF RO %]
|
135 |
132 |
[% P.hidden_tag(vc_id, $vc_id) %]
|
136 |
133 |
[% HTML.escape(VC_OBJ.name) %]
|
137 |
|
[% ELSE %]
|
138 |
|
[% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="fixed_width", onchange="\$('#update_button').click()") %]
|
139 |
|
[% END %]
|
140 |
|
[% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
|
141 |
|
[% P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)")) %]
|
142 |
|
</td>
|
143 |
|
|
144 |
|
[%- IF ALL_CONTACTS.size %]
|
145 |
|
<tr>
|
146 |
|
<th align="right">[% 'Contact Person' | $T8 %]</th>
|
147 |
|
<td>
|
148 |
|
[%- IF delivered %]
|
149 |
|
[% L.hidden_tag("cp_id", cp_id) %]
|
150 |
|
[% HTML.escape(CONTACT_OBJ.full_name) %][% IF CONTACT_OBJ.cp_abteilung %] ([% HTML.escape(CONTACT_OBJ.cp_abteilung) %])[% END %]
|
151 |
|
[%- ELSE %]
|
152 |
|
[% 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') %]
|
153 |
|
[%- END %]
|
154 |
|
</td>
|
155 |
|
</tr>
|
156 |
|
[%- END %]
|
157 |
|
|
158 |
|
<tr>
|
159 |
|
<th align="right">[% 'Shipping Address' | $T8 %]</th>
|
160 |
|
<td>
|
161 |
|
[%- IF delivered %]
|
162 |
|
[% HTML.escape(shipto_label.join('; ')) %]
|
163 |
|
[%- ELSE %]
|
164 |
|
[%- IF ALL_SHIPTO.size %]
|
|
134 |
[% ELSE %]
|
|
135 |
[% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="wi-wide tooltipstered", onchange="\$('#update_button').click()", title=VC_OBJ.name ) %]
|
|
136 |
[% END %]
|
|
137 |
[% #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') ) %]
|
|
138 |
<a href="javascript:show_vc_details('[% HTML.escape(vc) %]');" title="[% 'Show detail informationen' | $T8 %]" class="button-image info"><img src="image/detail.png"></a>
|
|
139 |
[% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
|
|
140 |
</td>
|
|
141 |
</tr>
|
|
142 |
[% IF ALL_CONTACTS.size %]
|
|
143 |
<tr>
|
|
144 |
<th>[% 'Contact Person' | $T8 %]</th>
|
|
145 |
<td>
|
|
146 |
[% IF delivered %]
|
|
147 |
<input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
|
|
148 |
[% IF cp_id == row.cp_id %]
|
|
149 |
<span class="data wi-wide">[% HTML.escape(row.cp_name) %][% IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%]</span>
|
|
150 |
[% END %]
|
|
151 |
[% ELSE %]
|
|
152 |
[% 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') %]
|
|
153 |
[% END %]
|
|
154 |
</td>
|
|
155 |
</tr>
|
|
156 |
[% END %]
|
|
157 |
<tr>
|
|
158 |
<th>[% 'Shipping Address' | $T8 %]</th>
|
|
159 |
<td>
|
|
160 |
[% IF delivered %]
|
|
161 |
<span class="data wi-wide">[% HTML.escape(shipto_label.join('; ')) %]</span>
|
|
162 |
[% ELSE %]
|
|
163 |
[% IF ALL_SHIPTO.size %]
|
165 |
164 |
[% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ;
|
166 |
|
L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', style='width: 250px') %]
|
167 |
|
[%- END %]
|
168 |
|
[% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto")) %]
|
169 |
|
[%- END %]
|
170 |
|
</td>
|
171 |
|
</tr>
|
172 |
|
|
173 |
|
[%- IF business %]
|
174 |
|
<tr>
|
175 |
|
<th align="right">[% IF is_customer %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>
|
176 |
|
<td>[% HTML.escape(business) %]</td>
|
177 |
|
</tr>
|
178 |
|
[%- END %]
|
179 |
|
|
180 |
|
[%- IF max_dunning_level %]
|
181 |
|
<tr>
|
182 |
|
<th align="right">[% 'Max. Dunning Level' | $T8 %]</th>
|
183 |
|
<td>
|
184 |
|
<b>[% HTML.escape(max_dunning_level) %]</b>; [% 'Dunning Amount' | $T8 %]:
|
|
165 |
L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', class='wi-wide') %]
|
|
166 |
[% END %]
|
|
167 |
[% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto"), class='button neutral below wi-wide') %]
|
|
168 |
[% END %]
|
|
169 |
</td>
|
|
170 |
</tr>
|
|
171 |
[% IF business %]
|
|
172 |
<tr>
|
|
173 |
<th>[% IF is_customer %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>
|
|
174 |
<td><span class="data wi-wide">[% HTML.escape(business) %]</span><!-- PENDENT: Behandlung von Text in Formular-Tabellen --> </td>
|
|
175 |
</tr>
|
|
176 |
[% END %]
|
|
177 |
[% IF max_dunning_level %]
|
|
178 |
<tr>
|
|
179 |
<th>[% 'Max. Dunning Level' | $T8 %]</th>
|
|
180 |
<td>
|
|
181 |
<b>[% HTML.escape(max_dunning_level) %]</b>, [% 'Dunning Amount' | $T8 %]:
|
185 |
182 |
<b>[% HTML.escape(LxERP.format_amount(dunning_amount, 2)) %]</b>
|
186 |
|
</td>
|
187 |
|
</tr>
|
188 |
|
[%- END %]
|
189 |
|
</tr>
|
190 |
|
|
191 |
|
[%- IF ALL_LANGUAGES.size %]
|
192 |
|
<tr>
|
193 |
|
<th align="right" nowrap>[% 'Language' | $T8 %]</th>
|
194 |
|
<td colspan="3">
|
195 |
|
[% L.select_tag('language_id', ALL_LANGUAGES, default = language_id, title_key = 'description', with_empty = 1, style = 'width: 250px' )%]
|
196 |
183 |
</td>
|
197 |
|
</tr>
|
198 |
|
[%- END %]
|
199 |
|
|
200 |
|
[%- IF ALL_DEPARTMENTS.size %]
|
201 |
|
<tr>
|
202 |
|
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
|
203 |
|
<td colspan="3">
|
|
184 |
</tr>
|
|
185 |
[% END %]
|
|
186 |
[% IF ALL_LANGUAGES.size %]
|
|
187 |
<tr>
|
|
188 |
<th>[% 'Language' | $T8 %]</th>
|
|
189 |
<td>
|
|
190 |
[% L.select_tag('language_id', ALL_LANGUAGES, default = language_id, title_key = 'description', with_empty = 1, style = 'width: 250px' )%]
|
|
191 |
</td>
|
|
192 |
</tr>
|
|
193 |
[% END %]
|
|
194 |
[% IF ALL_DEPARTMENTS.size %]
|
|
195 |
<tr>
|
|
196 |
<th>[% 'Department' | $T8 %]</th>
|
|
197 |
<td>
|
204 |
198 |
[% IF ( delivered ) %]
|
205 |
199 |
[% L.hidden_tag('department_id', department_id) %]
|
206 |
200 |
[% ELSE %]
|
207 |
|
[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width: 250px', disabled = delivered )%]
|
|
201 |
[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class='wi-wide', disabled = delivered )%]
|
208 |
202 |
[% END %]
|
209 |
|
</td>
|
210 |
|
</tr>
|
211 |
|
[%- END %]
|
212 |
|
|
213 |
|
<tr>
|
214 |
|
<th align="right">[% 'Shipping Point' | $T8 %]</th>
|
215 |
|
<td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"[% RO %]></td>
|
216 |
|
</tr>
|
217 |
|
|
218 |
|
<tr>
|
219 |
|
<th align="right">[% 'Ship via' | $T8 %]</th>
|
220 |
|
<td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"[% RO %]></td>
|
221 |
|
</tr>
|
222 |
|
|
223 |
|
<tr>
|
224 |
|
<th align="right">[% 'Transaction description' | $T8 %]</th>
|
225 |
|
<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>
|
226 |
|
</tr>
|
227 |
|
|
228 |
|
</table>
|
229 |
|
</td>
|
230 |
|
|
231 |
|
<td align="right">
|
232 |
|
<table>
|
233 |
|
|
234 |
|
<tr>
|
235 |
|
<td colspan="2" align="center">
|
236 |
|
[%- IF delivered %]
|
237 |
|
[%- IF is_customer %]
|
238 |
|
[% 'transferred out' | $T8 %]
|
239 |
|
[%- ELSE %]
|
240 |
|
[% 'transferred in' | $T8 %]
|
241 |
|
[%- END %]
|
242 |
|
[%- ELSE %]
|
243 |
|
[%- IF is_customer %]
|
244 |
|
[% 'not transferred out yet' | $T8 %]
|
245 |
|
[%- ELSE %]
|
246 |
|
[% 'not transferred in yet' | $T8 %]
|
247 |
|
[%- END %]
|
248 |
|
[%- END %]
|
249 |
|
;
|
250 |
|
[%- IF closed %]
|
251 |
|
[% 'Closed' | $T8 %]
|
252 |
|
[%- ELSE %]
|
253 |
|
[% 'Open' | $T8 %]
|
254 |
|
[%- END %]
|
255 |
|
</td>
|
256 |
|
</tr>
|
257 |
|
|
258 |
|
<input type="hidden" name="delivered" value="[% HTML.escape(delivered) %]">
|
259 |
|
|
260 |
|
<tr>
|
261 |
|
<th align="right">[% 'Employee' | $T8 %]</th>
|
262 |
|
<td>
|
263 |
|
[%- IF delivered %]
|
264 |
|
<input type="hidden" name="employee_id" value="[% HTML.escape(employee_id) %]">
|
265 |
|
[%- FOREACH row = ALL_EMPLOYEES %]
|
266 |
|
[% IF row.id == employee_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
|
267 |
|
[%- END %]
|
268 |
|
[%- ELSE %]
|
269 |
|
[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %]
|
270 |
|
[%- END %]
|
271 |
|
</td>
|
272 |
|
</tr>
|
273 |
|
|
274 |
|
[%- IF is_customer %]
|
275 |
|
[%- IF salesman_id %]
|
276 |
|
[%- SET the_salesman_id = salesman_id %]
|
277 |
|
[%- ELSE %]
|
278 |
|
[%- SET the_salesman_id = employee_id %]
|
279 |
|
[%- END %]
|
280 |
|
<tr>
|
281 |
|
<th align="right">[% 'Salesman' | $T8 %]</th>
|
282 |
|
<td>
|
283 |
|
[%- IF delivered %]
|
284 |
|
<input type="hidden" name="salesman_id" value="[% HTML.escape(salesman_id) %]">
|
285 |
|
[%- FOREACH row = ALL_SALESMEN %]
|
286 |
|
[% IF row.id == the_salesman_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
|
287 |
|
[%- END %]
|
288 |
|
[%- ELSE %]
|
289 |
|
[% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name') %]
|
290 |
|
[%- END %]
|
291 |
|
</td>
|
292 |
|
</tr>
|
293 |
|
[%- END %]
|
294 |
|
|
295 |
|
<tr>
|
296 |
|
<th width="70%" align="right" nowrap>[% 'Delivery Order Number' | $T8 %]</th>
|
297 |
|
<td><input name="donumber" id="donumber" size="11" value="[% HTML.escape(donumber) %]"[% RO %]></td>
|
298 |
|
</tr>
|
299 |
|
|
300 |
|
<tr>
|
301 |
|
<th width="70%" align="right" nowrap>[% 'Order Number' | $T8 %]</th>
|
302 |
|
<td><input name="ordnumber" id="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"[% RO %]></td>
|
303 |
|
</tr>
|
304 |
|
|
305 |
|
<tr>
|
306 |
|
<th width="70%" align="right" nowrap>[% IF is_customer %][% 'Customer Order Number' | $T8 %][% ELSE %][% 'Vendor Order Number' | $T8 %][% END %]</th>
|
307 |
|
<td><input name="cusordnumber" id="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"[% RO %]></td>
|
308 |
|
</tr>
|
309 |
|
|
310 |
|
<tr>
|
311 |
|
<th align="right" nowrap>[% 'Delivery Order Date' | $T8 %]</th>
|
312 |
|
<td nowrap>
|
313 |
|
[% L.date_tag('transdate', transdate, readonly => delivered) %]
|
314 |
203 |
</td>
|
315 |
|
</tr>
|
|
204 |
</tr>
|
|
205 |
[% END %]
|
|
206 |
<tr>
|
|
207 |
<th>[% 'Shipping Point' | $T8 %]</th>
|
|
208 |
<td><input type="text" name="shippingpoint" class="wi-wide" value="[% HTML.escape(shippingpoint) %]"[% RO %]></td>
|
|
209 |
</tr>
|
|
210 |
<tr>
|
|
211 |
<th>[% 'Ship via' | $T8 %]</th>
|
|
212 |
<td><input type="text" name="shipvia" class="wi-wide" value="[% HTML.escape(shipvia) %]"[% RO %]></td>
|
|
213 |
</tr>
|
|
214 |
<tr>
|
|
215 |
<th>[% 'Transaction description' | $T8 %]</th>
|
|
216 |
<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>
|
|
217 |
</tr>
|
|
218 |
<tr>
|
|
219 |
<td colspan="2">
|
|
220 |
<span class="label above">[% 'Internal Notes' | $T8 %]</span>
|
|
221 |
[% IF delivered %][% SET RO=' readonly' %][% END %]
|
|
222 |
[% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
|
|
223 |
</td>
|
|
224 |
</tr>
|
|
225 |
</tbody>
|
|
226 |
</table>
|
316 |
227 |
|
317 |
|
<tr>
|
318 |
|
<th align="right" nowrap>[% 'Reqdate' | $T8 %]</th>
|
319 |
|
<td nowrap>
|
320 |
|
[% L.date_tag('reqdate', reqdate, readonly => delivered) %]
|
321 |
|
</td>
|
322 |
|
</tr>
|
323 |
228 |
|
324 |
|
[%- IF is_customer %]
|
325 |
|
<tr>
|
326 |
|
<th align="right" nowrap>[% 'Insert Date' | $T8 %]</th>
|
327 |
|
<td>[% insertdate %]</td>
|
328 |
|
</tr>
|
329 |
|
[%- END %]
|
330 |
229 |
|
331 |
|
<tr>
|
332 |
|
<th width="70%" align="right" nowrap>[% 'Project Number' | $T8 %]</th>
|
|
230 |
<table class="tbl-horizontal col">
|
|
231 |
<caption>[% 'Delivery Terms' | $T8 %]</caption>
|
|
232 |
<colgroup><col class="wi-wide"></colgroup>
|
|
233 |
<tbody>
|
|
234 |
<tr>
|
|
235 |
<td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default=delivery_term_id, with_empty=1, title_key='description', class='wi-wide') %]</td>
|
|
236 |
</tr>
|
|
237 |
<tr>
|
|
238 |
<th class="caption"> [% 'Notes' | $T8 %] </th>
|
|
239 |
</tr>
|
|
240 |
<tr>
|
|
241 |
<td class="wi-wide">
|
|
242 |
[% IF delivered %]
|
|
243 |
[% L.hidden_tag("notes", notes) %]
|
|
244 |
<div class="fake-textarea fake-wi-wide">[% P.restricted_html(notes) %]</div>
|
|
245 |
[% ELSE %]
|
|
246 |
[% L.textarea_tag("notes", notes, wrap="soft", rows=3, cols=10, class="texteditor wi-wide") %]
|
|
247 |
[% END %]
|
|
248 |
</td>
|
|
249 |
</tr>
|
|
250 |
</tbody>
|
|
251 |
</table>
|
|
252 |
|
|
253 |
|
|
254 |
<table class="tbl-horizontal">
|
|
255 |
<caption>[% 'Status & Handling' | $T8 %]</caption>
|
|
256 |
<tbody>
|
|
257 |
<tr>
|
|
258 |
<th>[% 'Transfer Status' | $T8 %]</th>
|
|
259 |
<td>
|
|
260 |
<span class="data wi-normal">[% IF delivered %]
|
|
261 |
[% IF is_customer %]
|
|
262 |
[% 'transferred out' | $T8 %]
|
|
263 |
[% ELSE %]
|
|
264 |
[% 'transferred in' | $T8 %]
|
|
265 |
[% END %]
|
|
266 |
[% ELSE %]
|
|
267 |
[% IF is_customer %]
|
|
268 |
[% 'not transferred out yet' | $T8 %]
|
|
269 |
[% ELSE %]
|
|
270 |
[% 'not transferred in yet' | $T8 %]
|
|
271 |
[% END %]
|
|
272 |
[% END %]</span>
|
|
273 |
</td>
|
|
274 |
</tr>
|
|
275 |
<tr>
|
|
276 |
<th>[% 'Status' | $T8 %]</th>
|
|
277 |
<td>
|
|
278 |
<span class="data wi-normal">[% IF closed %][% 'Closed' | $T8 %][% ELSE %][% 'Open' | $T8 %][% END %]</span>
|
|
279 |
<input type="hidden" name="delivered" value="[% HTML.escape(delivered) %]">
|
|
280 |
</td>
|
|
281 |
</tr>
|
|
282 |
<tr>
|
|
283 |
<th>[% 'Employee' | $T8 %]</th>
|
|
284 |
<td>
|
|
285 |
[% IF delivered %]
|
|
286 |
<input type="hidden" name="employee_id" value="[% HTML.escape(employee_id) %]">
|
|
287 |
[% FOREACH row = ALL_EMPLOYEES %]
|
|
288 |
[% IF row.id == employee_id %]
|
|
289 |
[% IF row.name %]
|
|
290 |
<span class="data wi-normal">[% HTML.escape(row.name) %]</span>
|
|
291 |
[% ELSE %]
|
|
292 |
<span class="data wi-normal">[% HTML.escape(row.login) %]</span>
|
|
293 |
[% END %]
|
|
294 |
[% END %]
|
|
295 |
[% END %]
|
|
296 |
[% ELSE %]
|
|
297 |
[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name', class='wi-normal') %]
|
|
298 |
[% END %]
|
|
299 |
</td>
|
|
300 |
</tr>
|
|
301 |
[% IF is_customer %]
|
|
302 |
[% IF salesman_id %]
|
|
303 |
[% SET the_salesman_id = salesman_id %]
|
|
304 |
[% ELSE %]
|
|
305 |
[% SET the_salesman_id = employee_id %]
|
|
306 |
[% END %]
|
|
307 |
<tr>
|
|
308 |
<th>[% 'Salesman' | $T8 %]</th>
|
333 |
309 |
<td>
|
334 |
|
[%- IF delivered %]
|
335 |
|
<input type="hidden" name="globalproject_id" value="[% HTML.escape(globalproject_id) %]">
|
336 |
|
[%- FOREACH row = ALL_PROJECTS %]
|
337 |
|
[% IF globalproject_id == row.id %][% HTML.escape(row.projectnumber) %][% END %]
|
338 |
|
[%- END %]
|
339 |
|
[%- ELSE %]
|
340 |
|
<select name="globalproject_id">
|
341 |
|
<option></option>
|
342 |
|
[%- FOREACH row = ALL_PROJECTS %]
|
343 |
|
<option value="[% HTML.escape(row.id) %]"[% IF globalproject_id == row.id %] selected[% END %]>[% HTML.escape(row.projectnumber) %]</option>
|
344 |
|
[%- END %]
|
345 |
|
</select>
|
346 |
|
[%- END %]
|
|
310 |
[% IF delivered %]
|
|
311 |
<input type="hidden" name="salesman_id" value="[% HTML.escape(salesman_id) %]">
|
|
312 |
[% FOREACH row = ALL_SALESMEN %]
|
|
313 |
[% IF row.id == the_salesman_id %]
|
|
314 |
[% IF row.name %]
|
|
315 |
<span class="data wi-normal">[% HTML.escape(row.name) %][% ELSE %][% HTML.escape(row.login) %]</span>
|
|
316 |
[% END %]
|
|
317 |
[% END %]
|
|
318 |
[% END %]
|
|
319 |
[% ELSE %]
|
|
320 |
[% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name', class='wi-normal') %]
|
|
321 |
[% END %]
|
347 |
322 |
</td>
|
348 |
|
</tr>
|
349 |
|
</table>
|
350 |
|
</td>
|
|
323 |
</tr>
|
|
324 |
[% END %]
|
|
325 |
<tr>
|
|
326 |
<th class="caption" colspan="2">[% 'IDs & Dates' | $T8 %]</th>
|
|
327 |
</tr>
|
|
328 |
<tr>
|
|
329 |
<th>[% 'Delivery Order Number' | $T8 %]</th>
|
|
330 |
<td><input type="text" name="donumber" id="donumber" class="wi-mediumsmall" value="[% HTML.escape(donumber) %]"[% RO %]></td>
|
|
331 |
</tr>
|
|
332 |
<tr>
|
|
333 |
<th>[% 'Order Number' | $T8 %]</th>
|
|
334 |
<td><input type="text" name="ordnumber" id="ordnumber" class="wi-mediumsmall" value="[% HTML.escape(ordnumber) %]"[% RO %]></td>
|
|
335 |
</tr>
|
|
336 |
<tr>
|
|
337 |
<th>[% IF is_customer %][% 'Customer Order Number' | $T8 %][% ELSE %][% 'Vendor Order Number' | $T8 %][% END %]</th>
|
|
338 |
<td><input type="text" name="cusordnumber" id="cusordnumber" class="wi-mediumsmall" value="[% HTML.escape(cusordnumber) %]"[% RO %]></td>
|
|
339 |
</tr>
|
|
340 |
<tr>
|
|
341 |
<th>[% 'Project Number' | $T8 %]</th>
|
|
342 |
<td>
|
|
343 |
[% IF delivered %]
|
|
344 |
<input type="hidden" name="globalproject_id" value="[% HTML.escape(globalproject_id) %]">
|
|
345 |
[% FOREACH row = ALL_PROJECTS %]
|
|
346 |
[% IF globalproject_id == row.id %][% HTML.escape(row.projectnumber) %][% END %]
|
|
347 |
[% END %]
|
|
348 |
[% ELSE %]
|
|
349 |
<select name="globalproject_id" class="wi-mediumsmall">
|
|
350 |
<option></option>
|
|
351 |
[% FOREACH row = ALL_PROJECTS %]
|
|
352 |
<option value="[% HTML.escape(row.id) %]"[% IF globalproject_id == row.id %] selected[% END %]>[% HTML.escape(row.projectnumber) %]</option>
|
|
353 |
[% END %]
|
|
354 |
</select>
|
|
355 |
[% END %]
|
|
356 |
</td>
|
|
357 |
</tr>
|
|
358 |
<tr>
|
|
359 |
<th>[% 'Delivery Order Date' | $T8 %]</th>
|
|
360 |
<td> [% L.date_tag('transdate', transdate, readonly => delivered, class='wi-small') %] </td>
|
|
361 |
</tr>
|
|
362 |
<tr>
|
|
363 |
<th>[% 'Reqdate' | $T8 %]</th>
|
|
364 |
<td> [% L.date_tag('reqdate', reqdate, readonly => delivered, class='wi-small') %] </td>
|
351 |
365 |
</tr>
|
352 |
|
</table>
|
|
366 |
[% IF is_customer %]
|
|
367 |
<tr>
|
|
368 |
<th>[% 'Insert Date' | $T8 %]</th>
|
|
369 |
<td><span class="data wi-small">[% insertdate %]</span></td>
|
|
370 |
</tr>
|
|
371 |
[% END %]
|
|
372 |
</tbody>
|
|
373 |
</table>
|
|
374 |
|
|
375 |
</div><!-- /.wrapper -->
|
Neues Design 2019 Standard-Code templates/webpages/do/form_*