| 1314 |
lars |
1 |
{include file="header.tpl"}
|
| 1433 |
lars |
2 |
{include file="order_filter.tpl"}
|
| 1174 |
lars |
3 |
<!-- $Id: single_order.tpl 2048 2017-02-17 23:41:59Z lars $ BEGIN -->
|
| 2048 |
lars |
4 |
<link rel="stylesheet" href="/backend/css/bestellung.css" />
|
|
|
5 |
<script src="/backend/js/common.js"></script>
|
| 1176 |
lars |
6 |
<script>
|
|
|
7 |
$(function(){
|
|
|
8 |
{if $order.kk_info.anbieter=="Amazon"}
|
| 1373 |
lars |
9 |
script="refund?mode=amazon";
|
| 1176 |
lars |
10 |
{elseif $order.kk_info.anbieter=="PayPalPlus"}
|
| 1373 |
lars |
11 |
script="refund?mode=paypalPlus";
|
| 1176 |
lars |
12 |
{elseif $order.kk_info.anbieter=="PayPalExpress"}
|
| 1373 |
lars |
13 |
script="refund?mode=paypalExpress";
|
| 1176 |
lars |
14 |
{elseif $order.kk_info.anbieter=="PayPal"}
|
| 1373 |
lars |
15 |
script="refund?mode=paypal";
|
| 1176 |
lars |
16 |
{/if}
|
|
|
17 |
$('#refundDlg').dialog({
|
|
|
18 |
autoOpen:false,
|
|
|
19 |
modal:true,
|
|
|
20 |
resizable:false,
|
|
|
21 |
width:700,
|
|
|
22 |
buttons:{
|
|
|
23 |
"erstatten":function(){
|
|
|
24 |
daten = $('#refundForm').serializeArray();
|
| 2048 |
lars |
25 |
$.post("/backend/"+script,daten,function(json){
|
| 1176 |
lars |
26 |
alert(json);
|
|
|
27 |
$(this).dialog("close");
|
|
|
28 |
})
|
|
|
29 |
}
|
|
|
30 |
}
|
|
|
31 |
})
|
|
|
32 |
$('.refund').click(function(){
|
|
|
33 |
if($(this).attr("data-refund"))
|
|
|
34 |
{
|
|
|
35 |
$('#refundAmount').val($(this).attr("data-refund"));
|
|
|
36 |
}
|
|
|
37 |
else
|
|
|
38 |
{
|
|
|
39 |
$('#refundAmount').val({$order.gesamtsumme_buffer})
|
|
|
40 |
}
|
|
|
41 |
{if $order.kk_info.anbieter=="Amazon"}
|
|
|
42 |
if($('#refundAmount').val()>{$order.diff})
|
|
|
43 |
{
|
|
|
44 |
$('#refundAmount').val({$order.diff})
|
|
|
45 |
}
|
|
|
46 |
{/if}
|
|
|
47 |
$('#refundDlg').dialog("open");
|
|
|
48 |
})
|
|
|
49 |
})
|
|
|
50 |
</script>
|
| 2048 |
lars |
51 |
<script type="text/javascript" src="/backend/js/i18n/jquery.ui.datepicker-de.js"></script>
|
| 1176 |
lars |
52 |
<style>
|
| 1211 |
lars |
53 |
/*.ui-tooltip, .arrow:after {
|
| 1176 |
lars |
54 |
border: 2px solid white;
|
|
|
55 |
}
|
|
|
56 |
.ui-tooltip {
|
|
|
57 |
padding: 10px 20px;
|
|
|
58 |
border-radius: 20px;
|
|
|
59 |
font: bold 14px "Helvetica Neue", Sans-Serif;
|
|
|
60 |
box-shadow: 0 0 7px black;
|
|
|
61 |
}
|
|
|
62 |
.arrow {
|
|
|
63 |
width: 70px;
|
|
|
64 |
height: 16px;
|
|
|
65 |
overflow: hidden;
|
|
|
66 |
position: absolute;
|
|
|
67 |
left: 50%;
|
|
|
68 |
margin-left: -35px;
|
|
|
69 |
bottom: -16px;
|
|
|
70 |
}
|
|
|
71 |
.arrow.top {
|
|
|
72 |
top: -16px;
|
|
|
73 |
bottom: auto;
|
|
|
74 |
}
|
|
|
75 |
.arrow.left {
|
|
|
76 |
left: 20%;
|
|
|
77 |
}
|
|
|
78 |
.arrow:after {
|
|
|
79 |
content: "";
|
|
|
80 |
background: black;
|
|
|
81 |
position: absolute;
|
|
|
82 |
left: 20px;
|
|
|
83 |
top: -20px;
|
|
|
84 |
width: 25px;
|
|
|
85 |
height: 25px;
|
|
|
86 |
box-shadow: 6px 5px 9px -9px black;
|
|
|
87 |
-webkit-transform: rotate(45deg);
|
|
|
88 |
-moz-transform: rotate(45deg);
|
|
|
89 |
-ms-transform: rotate(45deg);
|
|
|
90 |
-o-transform: rotate(45deg);
|
|
|
91 |
tranform: rotate(45deg);
|
|
|
92 |
}
|
|
|
93 |
.arrow.top:after {
|
|
|
94 |
bottom: -20px;
|
|
|
95 |
top: auto;
|
|
|
96 |
}
|
|
|
97 |
.doc_link{
|
|
|
98 |
vertical-align:middle;
|
| 1211 |
lars |
99 |
}*/
|
| 1176 |
lars |
100 |
</style>
|
|
|
101 |
{if isset($user_rechte.Warenwirtschaft.bestellung.html_editor)}
|
| 2048 |
lars |
102 |
<script type="text/javascript" src="/backend/js/tinymce/tinymce.min.js"></script>
|
| 1176 |
lars |
103 |
<script type="text/javascript">
|
|
|
104 |
|
|
|
105 |
tinyMCE.init({
|
|
|
106 |
// General options
|
|
|
107 |
mode : "none",
|
|
|
108 |
selector: "textarea#bemerkung",
|
|
|
109 |
theme : "modern",
|
|
|
110 |
language: "de",
|
|
|
111 |
plugins: [
|
|
|
112 |
"advlist autolink lists link image charmap preview anchor",
|
|
|
113 |
"searchreplace visualblocks code fullscreen",
|
|
|
114 |
"insertdatetime media table contextmenu paste" ],
|
|
|
115 |
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
|
|
|
116 |
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
});
|
|
|
120 |
</script>
|
|
|
121 |
|
|
|
122 |
{/if}
|
|
|
123 |
<script>
|
|
|
124 |
|
|
|
125 |
$(document).ready(function()
|
|
|
126 |
{
|
|
|
127 |
$( ".schufa" ).tooltip({
|
|
|
128 |
items:'.schufa',
|
|
|
129 |
width:800,
|
|
|
130 |
position: {
|
|
|
131 |
my: "center bottom-20",
|
|
|
132 |
at: "center top",
|
|
|
133 |
using: function( position, feedback ) {
|
|
|
134 |
$( this ).css( position );
|
|
|
135 |
$( "<div>" )
|
|
|
136 |
.addClass( "arrow" )
|
|
|
137 |
.addClass( feedback.vertical )
|
|
|
138 |
.addClass( feedback.horizontal )
|
|
|
139 |
.appendTo( this );
|
|
|
140 |
}
|
|
|
141 |
}
|
|
|
142 |
});
|
| 1200 |
lars |
143 |
$('.popup').tooltip({
|
| 1176 |
lars |
144 |
items:'.popup',
|
|
|
145 |
width:800,
|
|
|
146 |
position: {
|
|
|
147 |
my: "center bottom-20",
|
|
|
148 |
at: "center top",
|
|
|
149 |
using: function( position, feedback ) {
|
|
|
150 |
$( this ).css( position );
|
|
|
151 |
$( "<div>" )
|
|
|
152 |
.addClass( "arrow" )
|
|
|
153 |
.addClass( feedback.vertical )
|
|
|
154 |
.addClass( feedback.horizontal )
|
|
|
155 |
.appendTo( this );
|
|
|
156 |
}
|
|
|
157 |
}
|
|
|
158 |
});
|
|
|
159 |
$( ".popupImg" ).tooltip({
|
|
|
160 |
items:'.popupImg',
|
|
|
161 |
position: {
|
|
|
162 |
my: "center bottom-20",
|
|
|
163 |
at: "center top",
|
|
|
164 |
using: function( position, feedback ) {
|
|
|
165 |
$( this ).css( position );
|
|
|
166 |
|
|
|
167 |
$( "<div>" )
|
|
|
168 |
.addClass( "arrow" )
|
|
|
169 |
.addClass( feedback.vertical )
|
|
|
170 |
.addClass( feedback.horizontal )
|
|
|
171 |
.appendTo( this );
|
|
|
172 |
}
|
|
|
173 |
},
|
|
|
174 |
content:function(){
|
|
|
175 |
var url = $(this).attr("id");
|
|
|
176 |
return "<img src='"+ url +"' style='width:50%;'/>";
|
|
|
177 |
}
|
|
|
178 |
});
|
|
|
179 |
$('.change_amount').click(change_amount);
|
|
|
180 |
$('#change_amount_form').submit(submitAmountForm);
|
|
|
181 |
|
|
|
182 |
$('#change_amount_dlg').dialog({
|
|
|
183 |
autoOpen:false,
|
|
|
184 |
modal:true,
|
|
|
185 |
resizable:false,
|
|
|
186 |
buttons:{
|
|
|
187 |
"aendern":function()
|
|
|
188 |
{
|
|
|
189 |
submitAmountForm();
|
|
|
190 |
}
|
|
|
191 |
}
|
|
|
192 |
});
|
|
|
193 |
$('#delShipmentQuestion').dialog({
|
|
|
194 |
modal:true,
|
|
|
195 |
resizable:false,
|
|
|
196 |
autoOpen:false,
|
|
|
197 |
buttons:{
|
|
|
198 |
"ja":function(){
|
|
|
199 |
dokId=$('#delDokId').val();
|
| 2048 |
lars |
200 |
$.get("/backend/shipment/del?dokId="+dokId,function(html){
|
| 1176 |
lars |
201 |
$('#delShipmentQuestion').dialog("close");
|
|
|
202 |
arr=html.split("|");
|
|
|
203 |
$('#returnCode').val(arr[0]);
|
|
|
204 |
msg=arr[1];
|
|
|
205 |
$('#labelReturn').html(msg);
|
|
|
206 |
$('#labelReturn').dialog("open");
|
|
|
207 |
})
|
|
|
208 |
},
|
|
|
209 |
"nein":function(){
|
|
|
210 |
$(this).dialog("close");
|
|
|
211 |
}
|
|
|
212 |
}
|
|
|
213 |
});
|
|
|
214 |
$('#labelReturn').dialog({
|
|
|
215 |
modal:true,
|
|
|
216 |
width:800,
|
|
|
217 |
resizable:false,
|
|
|
218 |
autoOpen:false,
|
|
|
219 |
buttons:{
|
|
|
220 |
"ok":function(){
|
|
|
221 |
$(this).dialog("close");
|
|
|
222 |
if ($('#returnCode').val()==0)
|
|
|
223 |
{
|
|
|
224 |
document.location.reload();
|
|
|
225 |
}
|
|
|
226 |
}
|
|
|
227 |
}
|
|
|
228 |
});
|
|
|
229 |
$('#updReturn').dialog({
|
|
|
230 |
modal:true,
|
|
|
231 |
resizable:false,
|
|
|
232 |
autoOpen:false,
|
|
|
233 |
buttons:{
|
|
|
234 |
"ok":function(){
|
|
|
235 |
$(this).dialog("close");
|
|
|
236 |
document.location.reload();
|
|
|
237 |
}
|
|
|
238 |
}
|
|
|
239 |
});
|
|
|
240 |
|
|
|
241 |
function submitAmountForm(e)
|
|
|
242 |
{
|
|
|
243 |
//e.preventDefault();
|
|
|
244 |
barcode=$('#barcode').val();
|
| 2048 |
lars |
245 |
$.get("/backend/amount/change",$("#change_amount_form").serialize(),function(html){
|
| 1176 |
lars |
246 |
$('#change_amount_form').dialog("close");
|
|
|
247 |
document.location.reload();
|
|
|
248 |
})
|
|
|
249 |
}
|
|
|
250 |
|
|
|
251 |
function change_amount(e)
|
|
|
252 |
{
|
|
|
253 |
e.preventDefault();
|
|
|
254 |
a_id=this.id;
|
|
|
255 |
a_id=a_id.split("_");
|
|
|
256 |
a_id=a_id[1];
|
|
|
257 |
$('#change_ab_id').val(a_id);
|
|
|
258 |
$('#change_amount_dlg').dialog("open");
|
|
|
259 |
}
|
|
|
260 |
|
|
|
261 |
{if isset($user_rechte.Warenwirtschaft.logistiker.tracking_input)}
|
|
|
262 |
$('#send_tracking').click(save_tracking);
|
|
|
263 |
$('#add_tracking_nr_form').submit(save_tracking);
|
|
|
264 |
{/if}
|
|
|
265 |
$('#b_tax').change(function(){
|
|
|
266 |
var sel = $(this).prop('selectedIndex');
|
|
|
267 |
if(!confirm("Wollen Sie wirklich die Besteuerung dieser Bestellung umstellen?\nDies hat Auswirkungen auf die Rechnungsschreibung.")) {
|
| 1364 |
lars |
268 |
// ME: Bei Abbruch muss der ursprüngliche Wert wiederhergestellt werden!
|
| 1176 |
lars |
269 |
if(sel==0) {
|
|
|
270 |
$(this).prop('selectedIndex',1);
|
|
|
271 |
}else{
|
|
|
272 |
$(this).prop('selectedIndex',0);
|
|
|
273 |
}
|
|
|
274 |
}else{
|
|
|
275 |
// ME: den neuen Wert in der Tabelle Bestellung speichern.
|
| 2048 |
lars |
276 |
$('#ajax').load("/backend/order/update?tax="+sel+"&id={$order.ID}");
|
| 1176 |
lars |
277 |
}
|
|
|
278 |
});
|
|
|
279 |
|
|
|
280 |
// ME: Logistiker SelectBox bei Change sofort speichern
|
|
|
281 |
$('#logistiker_id').change(function(){
|
|
|
282 |
var logistiker_id = $(this).val();
|
|
|
283 |
|
|
|
284 |
// die Selectbox im trackingnummern-Dialog updaten
|
|
|
285 |
$('#logistiker_id_dlg').val(logistiker_id);
|
| 2048 |
lars |
286 |
$('#ajax').load("/backend/order/logistiker?id={$order.ID}&logistiker_id="+logistiker_id, function(html){
|
| 1176 |
lars |
287 |
alert(html);
|
|
|
288 |
if(html=="Der Logistiker wurde gespeichert")
|
|
|
289 |
{
|
| 2048 |
lars |
290 |
document.location.href="/backend/order/edit/{$order.ID}";
|
| 1176 |
lars |
291 |
}
|
|
|
292 |
} );
|
|
|
293 |
});
|
|
|
294 |
});
|
|
|
295 |
|
| 1358 |
lars |
296 |
// ME: Trackingnummer löschen mit Sicherheitsabfrage
|
| 1176 |
lars |
297 |
function delete_trackingnummer(trackingnummer){
|
| 1364 |
lars |
298 |
var text = "Soll die Trackingnummer "+trackingnummer+" wirklich gelöscht werden?";
|
| 1176 |
lars |
299 |
var check = confirm( decodeHtml(text) );
|
|
|
300 |
if(check==true) {
|
| 2048 |
lars |
301 |
$('#ajax').load("/backend/tracking/update?action=delete&id={$order.ID}&trackingnummer="+trackingnummer+"" );
|
| 1176 |
lars |
302 |
|
| 1373 |
lars |
303 |
$('#tracking').load('/backend/tracking/get/{$order.ID}').show().delay(100);
|
| 1176 |
lars |
304 |
}
|
|
|
305 |
}
|
|
|
306 |
|
|
|
307 |
function decodeHtml(html) {
|
|
|
308 |
var txt = document.createElement("textarea");
|
|
|
309 |
txt.innerHTML = html;
|
|
|
310 |
return txt.value;
|
|
|
311 |
}
|
|
|
312 |
function del_shipment(dokId)
|
|
|
313 |
{
|
| 2048 |
lars |
314 |
$.get("/backend/tracking/get/?dokId="+dokId,function(html){
|
| 1176 |
lars |
315 |
$('#delTrackNumber').html(html);
|
|
|
316 |
$('#delDokId').val(dokId);
|
|
|
317 |
$('#delShipmentQuestion').dialog("open");
|
|
|
318 |
})
|
|
|
319 |
}
|
|
|
320 |
</script>
|
| 2048 |
lars |
321 |
<script type="text/javascript" src="/backend/js/overlib.js"></script>
|
| 1176 |
lars |
322 |
<script>
|
|
|
323 |
|
|
|
324 |
// increase the default animation speed to exaggerate the effect
|
|
|
325 |
$.fx.speeds._default = 450;
|
|
|
326 |
$(function() {
|
|
|
327 |
$( "#dialog" ).dialog({
|
|
|
328 |
autoOpen: false,
|
|
|
329 |
show: "clip",
|
|
|
330 |
hide: "scale",
|
|
|
331 |
minWidth: 700,
|
|
|
332 |
minHeight:350
|
|
|
333 |
});
|
|
|
334 |
|
|
|
335 |
$( "#opener" ).click(function() {
|
|
|
336 |
$( "#dialog" ).dialog( "open" );
|
|
|
337 |
return false;
|
|
|
338 |
});
|
|
|
339 |
{if isset($user_rechte.Warenwirtschaft.bestellung.kommissionierungskontrolle)}
|
|
|
340 |
$('.kommissionierungskontrolle').click(function(){
|
|
|
341 |
$("<div>").dialog({
|
|
|
342 |
hide: "scale",
|
|
|
343 |
minWidth: 550,
|
|
|
344 |
position: { my: 'top', at: 'top+60' },
|
|
|
345 |
open: function() {
|
| 1373 |
lars |
346 |
$(this).load('/backend/kommissionierungskontrolle/{$order.ID}');
|
| 1176 |
lars |
347 |
},
|
|
|
348 |
close: function(event, ui) {
|
|
|
349 |
$(this).dialog('destroy').remove();
|
|
|
350 |
location.reload();
|
|
|
351 |
},
|
|
|
352 |
buttons: {
|
|
|
353 |
"Beenden": function() {
|
|
|
354 |
$( this ).dialog('destroy').remove();
|
|
|
355 |
location.reload();
|
|
|
356 |
}
|
|
|
357 |
},
|
|
|
358 |
title: 'Kommissionierungskontrolle Bestellung: {$order.ID}'
|
|
|
359 |
});
|
|
|
360 |
});
|
|
|
361 |
{/if}
|
|
|
362 |
{if isset($user_rechte.Warenwirtschaft.bestellung.steuersatz_aendern) && isset($laenderMwSt)}
|
|
|
363 |
$("#changeMwStDialog").dialog({
|
|
|
364 |
autoOpen: false,
|
|
|
365 |
show: "clip",
|
|
|
366 |
hide: "scale",
|
|
|
367 |
minWidth: 400,
|
|
|
368 |
resizable: false,
|
|
|
369 |
buttons: {
|
|
|
370 |
"Speichern": function() {
|
|
|
371 |
var mwst = $(".mwstLand").val();
|
|
|
372 |
var data = $("#bestellungFormular").serializeArray();
|
|
|
373 |
|
| 2048 |
lars |
374 |
$('#ajax').load("/backend/order/update?mwst="+mwst+"&id={$order.ID}",data, function(html){
|
| 1176 |
lars |
375 |
alert(html);
|
|
|
376 |
location.reload();
|
|
|
377 |
});
|
|
|
378 |
},
|
|
|
379 |
"Abbrechen": function() {
|
|
|
380 |
$( this ).dialog( "close" );
|
|
|
381 |
|
|
|
382 |
}
|
|
|
383 |
}
|
|
|
384 |
});
|
|
|
385 |
$('.changeMwSt').click(function(){
|
|
|
386 |
$('#changeMwStDialog').dialog("open");
|
|
|
387 |
});
|
|
|
388 |
{/if}
|
|
|
389 |
{if isset($user_rechte.Warenwirtschaft.bestellung.lieferadresse_aendern)}
|
|
|
390 |
$('.changeLieferadresse').click(function(){
|
|
|
391 |
$('<div id="dialogLieferadresse">').dialog({
|
|
|
392 |
show: "clip",
|
|
|
393 |
hide: "scale",
|
|
|
394 |
resizable: false,
|
|
|
395 |
position: "center top",
|
|
|
396 |
open: function() {
|
|
|
397 |
$(this).load('change_lieferadresse.php?b_id={$order.ID}');
|
|
|
398 |
},
|
|
|
399 |
close: function(event, ui) {
|
|
|
400 |
$(this).dialog('destroy').remove();
|
|
|
401 |
},
|
|
|
402 |
minWidth: 375,
|
|
|
403 |
minWidth: 400,
|
|
|
404 |
height: 350,
|
| 1364 |
lars |
405 |
title: 'Lieferadresse ändern'
|
| 1176 |
lars |
406 |
});
|
|
|
407 |
});
|
|
|
408 |
{/if}
|
|
|
409 |
{if isset($order.bill_addr_id) && $order.bill_addr_id != NULL && $order.bill_addr_id > 0 && $order.bill_addr_id != ""}
|
|
|
410 |
$('.changeRechnungsadresse').click(function(){
|
|
|
411 |
$('<div id="dialogRechnungsadresse">').dialog({
|
|
|
412 |
show: "clip",
|
|
|
413 |
hide: "scale",
|
|
|
414 |
resizable: false,
|
|
|
415 |
position: "center top",
|
|
|
416 |
open: function() {
|
| 1373 |
lars |
417 |
$(this).load('/backend/adresse/rechnung/{$order.ID}');
|
| 1176 |
lars |
418 |
},
|
|
|
419 |
close: function(event, ui) {
|
|
|
420 |
$(this).dialog('destroy').remove();
|
|
|
421 |
},
|
|
|
422 |
minWidth: 400,
|
|
|
423 |
height: 500,
|
| 1364 |
lars |
424 |
title: 'Rechnungsadresse ändern'
|
| 1176 |
lars |
425 |
});
|
|
|
426 |
});
|
|
|
427 |
{/if}
|
|
|
428 |
{if isset($user_rechte.Warenwirtschaft.logistiker.tracking_input)}
|
|
|
429 |
$( "#add_tracking_nr" ).dialog({
|
|
|
430 |
autoOpen: false,
|
|
|
431 |
show: "clip",
|
|
|
432 |
hide: "scale",
|
|
|
433 |
minWidth: 400,
|
|
|
434 |
resizable: false
|
|
|
435 |
});
|
|
|
436 |
$('.button').css("cursor","pointer").click(add_tracking_nr);
|
|
|
437 |
|
|
|
438 |
$('#datum').datepicker();
|
|
|
439 |
|
|
|
440 |
{/if}
|
|
|
441 |
|
|
|
442 |
$('#VersandDialog').dialog({
|
|
|
443 |
modal:true,
|
|
|
444 |
autoOpen:false,
|
|
|
445 |
width:600,
|
|
|
446 |
resizable:false,
|
|
|
447 |
buttons:{
|
|
|
448 |
"drucken":function(){
|
|
|
449 |
printLabel();
|
|
|
450 |
},
|
|
|
451 |
"abbrechen":function()
|
|
|
452 |
{
|
|
|
453 |
$(this).dialog("close");
|
|
|
454 |
}
|
|
|
455 |
}
|
|
|
456 |
});
|
|
|
457 |
{if $VersandDialog==true}
|
|
|
458 |
$('.labeldruck').css("cursor","pointer").click(showVersandDialog);
|
|
|
459 |
{else}
|
|
|
460 |
$('.labeldruck').css("cursor","pointer").click(printLabel);
|
|
|
461 |
{/if}
|
|
|
462 |
|
|
|
463 |
{if isset($user_rechte.Warenwirtschaft.bestellung.billsafe)}
|
|
|
464 |
$('.billsafe_phone').click(billsafe_phone);
|
|
|
465 |
{/if}
|
|
|
466 |
//$("input[type=button],input[type=submit],button,input[type=reset]").button();
|
|
|
467 |
|
|
|
468 |
{if isset($web_rechte.Warenwirtschaft.lagerwirtschaft.meldebestandsliste) && $produktionsverbuchung === true}
|
|
|
469 |
$(".produktionsverbuchung").click(function(){
|
|
|
470 |
$("<div id='produktionsverbuchung'></div>").dialog({
|
|
|
471 |
position: "center",
|
|
|
472 |
zIndex: 5,
|
|
|
473 |
modal: true,
|
|
|
474 |
title: "Produktionsverbuchung",
|
|
|
475 |
width: 750,
|
|
|
476 |
open : function(){
|
|
|
477 |
$(this).load('{$verbuchungsScript}');
|
|
|
478 |
},
|
|
|
479 |
close : function(){
|
|
|
480 |
$(this).dialog('destroy').remove();
|
|
|
481 |
},
|
|
|
482 |
buttons: [
|
|
|
483 |
{
|
|
|
484 |
text: "Abbrechen",
|
|
|
485 |
click: function() {
|
|
|
486 |
$(this).dialog('destroy').remove();
|
|
|
487 |
}
|
|
|
488 |
},
|
|
|
489 |
{
|
|
|
490 |
text: "Verbuchen",
|
|
|
491 |
click: function() {
|
|
|
492 |
var data = [];
|
|
|
493 |
var istGueltig = true;
|
|
|
494 |
|
|
|
495 |
$(".produktionsAnzahlInput").each(function(){
|
|
|
496 |
if( ( $(this).val().length == 0 || $(this).val() == "" ) && istGueltig ){
|
|
|
497 |
istGueltig = false;
|
|
|
498 |
}
|
|
|
499 |
});
|
|
|
500 |
|
|
|
501 |
if( istGueltig ){
|
|
|
502 |
var produktionsArtikel = $("#produktionArtikelListe").serialize();
|
|
|
503 |
$.ajax({
|
|
|
504 |
type: "POST",
|
|
|
505 |
url : "{$verbuchungsScript}",
|
|
|
506 |
data: produktionsArtikel
|
|
|
507 |
}).done(function(msg){
|
|
|
508 |
alert(msg);
|
| 2048 |
lars |
509 |
document.location.href="/backend/order/edit/{$order.ID}";
|
| 1176 |
lars |
510 |
})
|
|
|
511 |
} else {
|
|
|
512 |
alert( "Bitte zu jedem Artikel die Menge angeben!" );
|
|
|
513 |
}
|
|
|
514 |
}
|
|
|
515 |
}
|
|
|
516 |
]
|
|
|
517 |
});
|
|
|
518 |
})
|
|
|
519 |
{/if}
|
|
|
520 |
});
|
|
|
521 |
|
|
|
522 |
function showVersandDialog()
|
|
|
523 |
{
|
|
|
524 |
logistiker_id=$('#logistiker_id').val();
|
|
|
525 |
pScript="{$druckScript}"+"&id="+logistiker_id+"&mode=druckdialog";
|
|
|
526 |
$('#VersandDialog').load(pScript,function(){
|
|
|
527 |
$('#VersandDialog').dialog("open");
|
|
|
528 |
});
|
|
|
529 |
}
|
|
|
530 |
|
|
|
531 |
function printLabel()
|
|
|
532 |
{
|
|
|
533 |
logistiker_id=$('#logistiker_id').val();
|
|
|
534 |
pScript="{$druckScript}"+"&id="+logistiker_id;
|
|
|
535 |
{if $labeldruck===true}
|
|
|
536 |
$.get(pScript,$('#Versandoptionen').serialize(),function(html){
|
|
|
537 |
ergArr=html.split("|");
|
|
|
538 |
code=ergArr[0];
|
|
|
539 |
msg=ergArr[1];
|
|
|
540 |
if(code==0)
|
|
|
541 |
{
|
|
|
542 |
window.open(msg);
|
| 2048 |
lars |
543 |
document.location.href="/backend/order/edit/{$order.ID}";
|
| 1176 |
lars |
544 |
}
|
|
|
545 |
else
|
|
|
546 |
{
|
|
|
547 |
$('#labelReturn').html(msg).dialog("open");
|
|
|
548 |
}
|
|
|
549 |
});
|
|
|
550 |
{elseif $labeldruck=="export"}
|
|
|
551 |
window.open(pScript);
|
|
|
552 |
{/if}
|
|
|
553 |
}
|
|
|
554 |
{if isset($user_rechte.Warenwirtschaft.bestellung.billsafe)}
|
|
|
555 |
function billsafe_phone()
|
|
|
556 |
{
|
|
|
557 |
//alert(this.id);
|
|
|
558 |
bs_id=this.id;
|
|
|
559 |
bs_id=bs_id.split("_");
|
|
|
560 |
shop_id=bs_id[3];
|
|
|
561 |
best_id=bs_id[2];
|
| 2048 |
lars |
562 |
url="/backend/billsafe?shops_id="+shop_id+"&bestell_id="+best_id;
|
| 1176 |
lars |
563 |
window.open(url);
|
|
|
564 |
}
|
|
|
565 |
{/if}
|
|
|
566 |
{if isset($user_rechte.Warenwirtschaft.logistiker.tracking_input)}
|
|
|
567 |
function save_tracking(e)
|
|
|
568 |
{
|
|
|
569 |
if(this.id=="send_tracking")
|
|
|
570 |
{
|
|
|
571 |
e.preventDefault();
|
|
|
572 |
}
|
| 2048 |
lars |
573 |
$.post("/backend/tracking/add",$('#add_tracking_nr_form').serializeArray(),function(html){
|
| 1176 |
lars |
574 |
erg=html.split("|");
|
|
|
575 |
if(erg[0]==1)
|
|
|
576 |
{
|
|
|
577 |
alert(erg[1]);
|
|
|
578 |
}
|
|
|
579 |
else
|
|
|
580 |
{
|
| 1373 |
lars |
581 |
$('#tracking').load('/backend/tracking/get/',$('#add_tracking_nr_form').serialize()).show();
|
| 1176 |
lars |
582 |
$('#add_tracking_nr').dialog("close");
|
|
|
583 |
}
|
|
|
584 |
})
|
|
|
585 |
//alert("Test");
|
|
|
586 |
}
|
|
|
587 |
function add_tracking_nr()
|
|
|
588 |
{
|
|
|
589 |
$('#add_tracking_nr').dialog("open");
|
|
|
590 |
}
|
|
|
591 |
{/if}
|
|
|
592 |
|
|
|
593 |
function setzeTermin(rechnungsName,bestellID)
|
|
|
594 |
{
|
|
|
595 |
$('#response').load('storno.php?rid='+rechnungsName+'&bid='+bestellID, function() {
|
|
|
596 |
alert('Termin wurde erstellt.');
|
|
|
597 |
});
|
|
|
598 |
}
|
|
|
599 |
|
| 1372 |
lars |
600 |
// ME: Dialog für Kundenbemerkung
|
| 1176 |
lars |
601 |
{if isset($web_rechte.Warenwirtschaft.bestellung.kundenbemerkung_layer)}
|
|
|
602 |
$(function() {
|
|
|
603 |
$( "#kundenbemerkung_layer" ).dialog({
|
|
|
604 |
autoOpen: true,
|
|
|
605 |
show: "clip",
|
|
|
606 |
hide: "scale",
|
|
|
607 |
minWidth: 400,
|
|
|
608 |
minHeight:250
|
|
|
609 |
|
|
|
610 |
});
|
|
|
611 |
});
|
|
|
612 |
{/if}
|
|
|
613 |
|
|
|
614 |
{if $order.notiz}
|
|
|
615 |
$(function(){
|
|
|
616 |
$( "#notizDlg" ).dialog({
|
|
|
617 |
modal:true,
|
|
|
618 |
show: "clip",
|
|
|
619 |
hide: "scale",
|
|
|
620 |
minWidth: 400,
|
|
|
621 |
minHeight:250,
|
|
|
622 |
buttons:
|
|
|
623 |
{
|
|
|
624 |
"abbrechen":function()
|
|
|
625 |
{
|
|
|
626 |
$(this).dialog("close");
|
|
|
627 |
},
|
|
|
628 |
"nicht mehr anzeigen": function()
|
|
|
629 |
{
|
| 2048 |
lars |
630 |
$("#updReturn").load("/backend/order/update/?id={$order.ID}¬iz=dismiss",function(){
|
| 1176 |
lars |
631 |
$('#updReturn').dialog("open");
|
|
|
632 |
$('#notizDlg').dialog("close");
|
|
|
633 |
})
|
|
|
634 |
}
|
|
|
635 |
}
|
|
|
636 |
|
|
|
637 |
});
|
|
|
638 |
});
|
|
|
639 |
{/if}
|
|
|
640 |
|
|
|
641 |
{if $order.mwst_befreiung=="on"}
|
|
|
642 |
$(function() {
|
|
|
643 |
$( "#ustid_layer" ).dialog({
|
|
|
644 |
autoOpen: true,
|
|
|
645 |
show: "clip",
|
|
|
646 |
hide: "scale",
|
|
|
647 |
minWidth: 400,
|
|
|
648 |
minHeight:250
|
|
|
649 |
|
|
|
650 |
});
|
|
|
651 |
});
|
|
|
652 |
{/if}
|
|
|
653 |
</script>
|
|
|
654 |
<style>
|
|
|
655 |
|
|
|
656 |
#kundenbemerkung_layer,
|
|
|
657 |
#notizDlg,
|
|
|
658 |
#updReturn,
|
|
|
659 |
#ustid_layer
|
|
|
660 |
{
|
|
|
661 |
background-color:#ccc;
|
|
|
662 |
}
|
|
|
663 |
.stornoGrau , .stornoGrau a{
|
|
|
664 |
color:grey;
|
|
|
665 |
}
|
|
|
666 |
</style>
|
|
|
667 |
{assign var=artikel_anzahl value=$order.artikel|@count}
|
|
|
668 |
<span class="noprint">
|
|
|
669 |
{if isset($user_rechte.Warenwirtschaft.bestellung.preise_anzeigen)}
|
|
|
670 |
<a href="javascript:drucken_ohne_preis();">Drucken ohne Preise</a>
|
|
|
671 |
{/if}
|
|
|
672 |
</span>
|
| 2048 |
lars |
673 |
<form method="post" action="/backend/order/save" name="formname" enctype="multipart/form-data" id="bestellungFormular">
|
| 1321 |
lars |
674 |
<input type="hidden" name="{$csrf_name}" value="{$csrf_value}" />
|
| 1325 |
lars |
675 |
<input type="hidden" name="Bestellung" value="{$order.id}" id="best_id"/>
|
| 1176 |
lars |
676 |
<table border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999" class="bestellungFormular">
|
|
|
677 |
<tr>
|
| 1279 |
lars |
678 |
<td colspan="3" class="links noprint">Bestellung: Bearbeiten
|
| 1176 |
lars |
679 |
</td>
|
|
|
680 |
</tr>
|
|
|
681 |
<tr>
|
|
|
682 |
<td class="links noprint">Bestellnummer:</td>
|
| 1276 |
lars |
683 |
<td {if $order.status!='storniert'} ondblclick="display_s_id();"{/if} class="bestellnummer">{$order.id} - {$order.language} - Shop: {html_options options=$c_shops name="s_id" id="s_id" style="display:none" selected=$order.shops_ID onchange="document.getElementById('s_changed').value=1"}<span id="s_name">{$order.shop}</span>, {$order.bestellart}
|
| 1275 |
lars |
684 |
{if $order.bestellart=="Verleih"}
|
| 1364 |
lars |
685 |
<input type="button" id="vertrag_oeffnen" value="Vertrag öffnen" />
|
| 1176 |
lars |
686 |
{/if}
|
|
|
687 |
<input type="hidden" name="s_changed" id="s_changed" value="0"/>
|
|
|
688 |
{if isset($order.tax)}
|
|
|
689 |
|
|
|
690 |
<select name="b_tax" id="b_tax" class="noprint">
|
|
|
691 |
<option {if $order.tax==0}selected="selected"{/if} value="0">Nettobestellung</option>
|
|
|
692 |
<option {if $order.tax==1}selected="selected"{/if} value="1">Bruttobestellung</option>
|
|
|
693 |
</select>
|
|
|
694 |
<div class="onprint">{if $order.tax==0}Nettobestellung{else}Bruttobestellung{/if}</div>
|
|
|
695 |
{/if}
|
|
|
696 |
|
|
|
697 |
{if $barcode_bestNr_src}
|
|
|
698 |
<img class="onprint" src="{$barcode_bestNr_src}" />
|
|
|
699 |
{/if}
|
|
|
700 |
|
|
|
701 |
{if $order.status=='storniert'}<strong>STORNIERT</strong>{/if}
|
|
|
702 |
</td>
|
|
|
703 |
<td class="fremdBestellnummer">
|
|
|
704 |
{if isset($user_rechte.Warenwirtschaft.bestellung.fremd_id)}
|
|
|
705 |
{if !$web_rechte.Warenwirtschaft.bestellung.fremd_id}
|
|
|
706 |
fremde Bestellnummer:
|
|
|
707 |
{else}
|
|
|
708 |
{$web_rechte.Warenwirtschaft.bestellung.fremd_id|trim:":"}
|
|
|
709 |
{/if} {if $order.fremd_id}{$order.fremd_id}{else}<input type="text" name="fremd_id" value="" />{/if}
|
|
|
710 |
{else}
|
|
|
711 |
|
|
|
712 |
{/if}
|
|
|
713 |
<br />
|
|
|
714 |
<!-- Bezahlstatus START -->
|
|
|
715 |
{if isset($web_rechte.Warenwirtschaft.bezahlstatus.bezahlstatus)}
|
|
|
716 |
<input type="hidden" name="bezahlt" value="{$order.bezahlt}"/>
|
|
|
717 |
<script type="text/javascript">
|
|
|
718 |
function buildBezahltBox(selID,bemerkung) {
|
|
|
719 |
optArr = new Array();
|
|
|
720 |
optArr[0] = 'nicht bezahlt';
|
|
|
721 |
{if isset($user_rechte.Warenwirtschaft.bezahlstatus.bezahlt_setzen)}
|
|
|
722 |
optArr[1] = 'bezahlt';
|
|
|
723 |
{/if}
|
|
|
724 |
|
|
|
725 |
{if isset($user_rechte.Warenwirtschaft.bezahlstatus.vorbezahlt_setzen)}
|
|
|
726 |
optArr[2] = 'vorbezahlt';
|
|
|
727 |
{/if}
|
|
|
728 |
|
|
|
729 |
|
|
|
730 |
bezahltBox = "";
|
|
|
731 |
bezahltBox += "Bezahlstatus: <select style=\"padding:2px;\" id=\"bezahlstatus_select\" name=\"bezahlt\">\n";
|
|
|
732 |
if(optArr[0]) {
|
|
|
733 |
var selected="";
|
|
|
734 |
if(selID==0) {
|
|
|
735 |
selected = " selected=\"selected\" ";
|
|
|
736 |
}
|
|
|
737 |
bezahltBox += "<option value=\"0\" "+selected+">"+optArr[0]+"</option>";
|
|
|
738 |
}
|
|
|
739 |
if(optArr[2]) {
|
|
|
740 |
var selected="";
|
|
|
741 |
if(selID==2) {
|
|
|
742 |
selected = " selected=\"selected\" ";
|
|
|
743 |
}
|
|
|
744 |
bezahltBox += "<option value=\"2\" "+selected+">"+optArr[2]+"</option>";
|
|
|
745 |
}
|
|
|
746 |
if(optArr[1]) {
|
|
|
747 |
var selected="";
|
|
|
748 |
if(selID==1) {
|
|
|
749 |
selected = " selected=\"selected\" ";
|
|
|
750 |
}
|
|
|
751 |
bezahltBox += "<option value=\"1\" "+selected+">"+optArr[1]+"</option>";
|
|
|
752 |
}
|
|
|
753 |
bezahltBox += "</select><br/><br/>\n";
|
|
|
754 |
bezahltBox += "Bemerkung:<br/><textarea id=\"bezahlt_bemerkung_text\" cols=\"45\" rows=\"6\">"+bemerkung+"</textarea>\n";
|
|
|
755 |
|
|
|
756 |
|
|
|
757 |
return bezahltBox;
|
|
|
758 |
}
|
|
|
759 |
|
|
|
760 |
function openBezahltDialog(bezahlt,bemerkung) {
|
|
|
761 |
$('#bezahltDialog').dialog({
|
|
|
762 |
title:'Bezahlstatus/Bemerkung: ',
|
|
|
763 |
width:400,
|
|
|
764 |
modal: true,
|
|
|
765 |
buttons: {
|
|
|
766 |
" Speichern und Schliessen ": function() {
|
|
|
767 |
$('#bezahlt_hidden').val( $('#bezahlstatus_select').val() );
|
|
|
768 |
$('#bezahlt_bemerkung_hidden').val( $('#bezahlt_bemerkung_text').val() );
|
|
|
769 |
$( this ).dialog( "close" );
|
|
|
770 |
$('#cur').trigger('click');
|
|
|
771 |
},
|
|
|
772 |
Abbrechen: function() {
|
|
|
773 |
$( this ).dialog( "close" );
|
|
|
774 |
}
|
|
|
775 |
}
|
|
|
776 |
});
|
|
|
777 |
$('#bezahltDialog').html(buildBezahltBox(bezahlt,bemerkung));
|
|
|
778 |
}
|
|
|
779 |
|
|
|
780 |
|
|
|
781 |
</script>
|
|
|
782 |
<div style="{if $order.status!='storniert'}cursor:pointer;{/if}float:left;" id="bezahltBox" {if $order.status!='storniert' && (isset($user_rechte.Warenwirtschaft.bezahlstatus.bezahlt_setzen) || isset($user_rechte.Warenwirtschaft.bezahlstatus.vorbezahlt_setzen))} ondblclick="openBezahltDialog('{$order.bezahlt}','{$order.bezahlt_bemerkung|escape:"javascript"}');" {/if} {if $order.bezahlt_bemerkung && (isset($user_rechte.Warenwirtschaft.bezahlstatus.bezahlt_setzen) || isset($user_rechte.Warenwirtschaft.bezahlstatus.vorbezahlt_setzen))}onmouseover="overlib('{$order.bezahlt_bemerkung|escape:"javascript"}<br/><br/><b>Doppelklick zum Bearbeiten</b>');" onmouseout="nd();"{else}onmouseover="overlib('{$order.bezahlt_bemerkung|escape:"javascript"}');" onmouseout="nd();"{/if}><div style="float:left;">Bezahlstatus: </div>
|
|
|
783 |
<input value="{$order.bezahlt}" type="hidden" name="bezahlt" id="bezahlt_hidden" />
|
|
|
784 |
<input value="{$order.bezahlt_bemerkung}" type="hidden" name="bezahlt_bemerkung" id="bezahlt_bemerkung_hidden" />
|
|
|
785 |
|
|
|
786 |
{if $order.bezahlt==1}
|
|
|
787 |
<font style="font-weight:bold;color:#0f0">bezahlt</font>
|
|
|
788 |
{elseif $order.bezahlt==2}
|
|
|
789 |
<font style="font-weight:bold;color:#FCA600">vorbezahlt</font>
|
|
|
790 |
{else}
|
|
|
791 |
<font style="font-weight:bold;color:#f00">nicht bezahlt</font>
|
|
|
792 |
{/if}
|
|
|
793 |
</div>
|
|
|
794 |
<div id="bezahltDialog"></div>
|
|
|
795 |
<!-- Bezahlstatus ENDE -->
|
|
|
796 |
</td>
|
|
|
797 |
{/if}
|
|
|
798 |
</tr>
|
|
|
799 |
{if $bestellung_logistiker}
|
|
|
800 |
<tr>
|
|
|
801 |
<td class="links">Logistiker: </td>
|
|
|
802 |
<td>
|
|
|
803 |
{if $order.status=="storniert"}
|
|
|
804 |
{if $logistiker_sel}
|
|
|
805 |
{$logistiker.$logistiker_sel}
|
|
|
806 |
{else}
|
| 1358 |
lars |
807 |
kein Logistiker gewählt
|
| 1176 |
lars |
808 |
{/if}
|
|
|
809 |
{else}
|
|
|
810 |
<span class="print logistikerPrint"></span>
|
|
|
811 |
{html_options id='logistiker_id' name="logistiker_id" options=$logistiker selected=$logistiker_sel class="noprint"}
|
|
|
812 |
<script>
|
|
|
813 |
$(document).ready(function(){
|
|
|
814 |
$(".logistikerPrint").text($("#logistiker_id option:selected").text());
|
|
|
815 |
});
|
|
|
816 |
</script>
|
|
|
817 |
{if $labeldruck===true}
|
| 2048 |
lars |
818 |
<a class="labeldruck noprint" title="Versandlabel drucken"><img src="/backend/images/navigation/drucker.png" /></a>
|
| 1176 |
lars |
819 |
{elseif $labeldruck=="export"}
|
| 2048 |
lars |
820 |
<a class="labeldruck noprint" title="Bestellung exportieren"><img src="/backend/images/navigation/drucker.png" /></a>
|
| 1176 |
lars |
821 |
{/if}
|
|
|
822 |
{if $produktionsverbuchung === true}
|
| 2048 |
lars |
823 |
<a class="produktionsverbuchung noprint" title="Produktion verbuchen"><img src="/backend/images/Icons/edit2.png" /></a>
|
| 1176 |
lars |
824 |
{/if}
|
|
|
825 |
{/if}
|
|
|
826 |
{if $order.status!='storniert'}
|
| 2048 |
lars |
827 |
<a class="button noprint" title="Paketverfolgungsnummern zuordnen"><img src="/backend/images/navigation/kreuz.png" /></a>
|
| 1176 |
lars |
828 |
{/if}
|
|
|
829 |
|
|
|
830 |
</td>
|
|
|
831 |
</tr>
|
|
|
832 |
{/if}
|
|
|
833 |
<tr>
|
|
|
834 |
<td valign="top" class="links noprint">
|
| 2048 |
lars |
835 |
<a href="/backend/login/edit/{$order.login}">Kunde:</a> {$order.login}<br/>
|
| 1176 |
lars |
836 |
Userlevel: {$order.Status}
|
|
|
837 |
</td>
|
| 1279 |
lars |
838 |
<td class="rechts" colspan="2">
|
| 1176 |
lars |
839 |
<table cellpadding="0" cellspacing="0" class="anschrift">
|
|
|
840 |
<tr>
|
|
|
841 |
<td {if !$order.Name1}class="noprint"{/if}>
|
| 1179 |
lars |
842 |
{if $order.billAddr.anrede}
|
|
|
843 |
{$order.billAddr.anrede}
|
| 1176 |
lars |
844 |
{/if}
|
| 1181 |
lars |
845 |
{if $order.billAddr.vorname}
|
|
|
846 |
{$order.billAddr.vorname}
|
| 1176 |
lars |
847 |
{/if}
|
| 1183 |
lars |
848 |
{$order.billAddr.nachname}
|
| 1181 |
lars |
849 |
{if $order.billAddr.geburtsdatum}
|
| 1176 |
lars |
850 |
<br />
|
| 1181 |
lars |
851 |
Geburtsdatum: {$order.billAddr.geburtsdatum|date_format:"%x"}
|
|
|
852 |
{if $order.billAddr.schufa_result}
|
|
|
853 |
<a class="schufa ui-icon ui-icon-info" style="float:left;cursor:help;margin-right:10px;" title="{$order.billAddr.schufa_result|nl2br}"> </a>
|
| 1176 |
lars |
854 |
{/if}
|
|
|
855 |
{/if}
|
|
|
856 |
</td>
|
| 1183 |
lars |
857 |
<td {if !($order.billAddr.strasse1 || $order.billAddr.strasse2)}class="noprint"{/if}>
|
|
|
858 |
{$order.billAddr.strasse1} {$order.billAddr.str_nr1}
|
| 1181 |
lars |
859 |
{if $order.billAddr.strasse2}
|
|
|
860 |
<br/>{$order.billAddr.strasse2}
|
| 1176 |
lars |
861 |
{/if}
|
|
|
862 |
</td>
|
| 1181 |
lars |
863 |
<td {if !$order.billAddr.telefon}class="noprint"{/if}>
|
|
|
864 |
{$order.billAddr.telefon}
|
| 1176 |
lars |
865 |
{if $order.status!='storniert'}
|
| 1181 |
lars |
866 |
<a style="text-decoration:none" href="callto:{$order.billAddr.telefon}" class="noprint">
|
| 1176 |
lars |
867 |
{/if}
|
| 2048 |
lars |
868 |
<img src="/backend/images/Online-Shop/telefon.png" border="0" style="padding-bottom: 2px;vertical-align: middle;"/>
|
| 1176 |
lars |
869 |
{if $order.status!='storniert'}
|
|
|
870 |
</a>{/if}
|
|
|
871 |
{if $order.Telefon2}
|
|
|
872 |
{$order.Telefon2}
|
|
|
873 |
{if $order.status!='storniert'}
|
|
|
874 |
<a style="text-decoration:none" href="callto:{$order.Telefon2}" class="noprint">{/if}
|
| 2048 |
lars |
875 |
<img src="/backend/images/Online-Shop/telefon.png" border="0" style="padding-bottom: 2px;vertical-align: middle;"/>
|
| 1176 |
lars |
876 |
{if $order.status!='storniert'}</a>{/if}
|
|
|
877 |
{/if}
|
|
|
878 |
</td>
|
|
|
879 |
<td {if !$order.Fax} class="noprint"{/if}>
|
| 1181 |
lars |
880 |
{$order.billAddr.fax}
|
| 1176 |
lars |
881 |
</td>
|
|
|
882 |
</tr>
|
|
|
883 |
<tr>
|
| 1181 |
lars |
884 |
<td height="41" {if !$order.billAddr.firma} class="noprint"{/if}>
|
|
|
885 |
{if $order.billAddr.firma}
|
| 1176 |
lars |
886 |
<strong>Firma / Organisation</strong><br/>
|
| 1181 |
lars |
887 |
{$order.billAddr.firma}
|
| 1176 |
lars |
888 |
{/if}
|
|
|
889 |
</td>
|
| 1181 |
lars |
890 |
<td {if !$order.billAddr.plz} class="noprint"{/if}>
|
|
|
891 |
{$order.billAddr.plz} {$order.billAddr.ort}
|
| 1176 |
lars |
892 |
</td>
|
| 1181 |
lars |
893 |
<td {if !$order.billAddr.email} class="noprint"{/if}>
|
|
|
894 |
{if $order.billAddr.email}
|
| 1176 |
lars |
895 |
{if $order.status!="storniert"}
|
|
|
896 |
{if isset($user_rechte.Warenwirtschaft.bestellung.mail_client)}
|
| 1181 |
lars |
897 |
<input style="width:200px;" type="text" class="status_red noprint" value="{$order.billAddr.email}" />
|
| 1176 |
lars |
898 |
|
|
|
899 |
|
| 1471 |
lars |
900 |
<input name="update[list]" type="button" class="status_red noprint" value="@" onclick="window.open('/backend/MailClient?id=0&Bestellung={$order.ID}&shop={$order.shops_ID}&button=Mailausgang', 'MailClient', 'status, menubar, height=600, width=900, scrollbars=yes');" />
|
| 1176 |
lars |
901 |
|
|
|
902 |
{else}
|
| 1181 |
lars |
903 |
<a href="mailto:{$order.billAddr.email}" class="noprint">{$order.billAddr.email}</a>
|
| 1176 |
lars |
904 |
{/if}
|
| 1181 |
lars |
905 |
<span class="print">{$order.billAddr.email}</span>
|
| 1176 |
lars |
906 |
|
|
|
907 |
{else}
|
| 1181 |
lars |
908 |
{$order.billAddr.email}
|
| 1176 |
lars |
909 |
{/if}
|
|
|
910 |
{/if}
|
|
|
911 |
|
|
|
912 |
</td>
|
| 1181 |
lars |
913 |
<td {if !$order.billAddr.land}class="noprint"{/if}>
|
|
|
914 |
{if $order.billAddr.bundesland}
|
|
|
915 |
{$order.billAddr.bundesland}<br/>
|
| 1176 |
lars |
916 |
{/if}
|
| 1181 |
lars |
917 |
{$order.billAddr.land}
|
| 1176 |
lars |
918 |
</td>
|
|
|
919 |
</tr>
|
| 1194 |
lars |
920 |
{if $order.billAddr.comment}
|
| 1176 |
lars |
921 |
<tr>
|
|
|
922 |
<td colspan="4">
|
| 1194 |
lars |
923 |
{$order.billAddr.comment|nl2br}
|
| 1176 |
lars |
924 |
</td>
|
|
|
925 |
</tr>
|
|
|
926 |
{/if}
|
|
|
927 |
</table>
|
|
|
928 |
{if $order.status!="storniert"}
|
|
|
929 |
{if isset($order.bill_addr_id) && $order.bill_addr_id != NULL && $order.bill_addr_id > 0 && $order.bill_addr_id != ""}
|
|
|
930 |
<input type="button" value="Rechnungadresse bearbeiten" class="noprint changeRechnungsadresse" />
|
|
|
931 |
{/if}
|
|
|
932 |
{/if}
|
|
|
933 |
<br/>
|
|
|
934 |
<table cellpadding="0" cellspacing="0" class="lieferanschrift">
|
|
|
935 |
<tr>
|
|
|
936 |
<td class="rechts">
|
|
|
937 |
<strong>Lieferadresse:</strong>
|
| 1186 |
lars |
938 |
{if $order.status!='storniert' && $order.shipAddr.telefon}
|
| 1176 |
lars |
939 |
<br />
|
| 1186 |
lars |
940 |
{$order.shipAddr.telefon}
|
|
|
941 |
<a style="text-decoration:none" href="callto:{$order.shipAddr.telefon}" class="noprint">
|
| 2048 |
lars |
942 |
<img src="/backend/images/Online-Shop/telefon.png" border="0" style="padding-bottom: 2px;vertical-align: middle;"/>
|
| 1176 |
lars |
943 |
</a>{/if}
|
|
|
944 |
</td>
|
|
|
945 |
<td class="rechts">
|
|
|
946 |
Name:<br class="noprint"/>
|
| 1187 |
lars |
947 |
{$order.shipAddr.anrede} {$order.shipAddr.vorname} {$order.shipAddr.nachname}
|
| 1184 |
lars |
948 |
{if $order.shipAddr.geburtsdatum}
|
| 1176 |
lars |
949 |
<br />
|
| 1184 |
lars |
950 |
Geburtsdatum: {$order.shipAddr.geburtsdatum|date_format:"%x"}
|
|
|
951 |
{if $order.shipAddr.schufa_result}
|
|
|
952 |
<a class="schufa ui-icon ui-icon-info" style="float:left;cursor:help;margin-right:10px;" title="{$order.shipAddr.schufa_result|nl2br}"> </a>
|
| 1176 |
lars |
953 |
{/if}
|
|
|
954 |
{/if}
|
|
|
955 |
</td>
|
|
|
956 |
<td class="rechts">
|
| 1186 |
lars |
957 |
{if $order.shipAddr.firma != ''}
|
| 1176 |
lars |
958 |
Firma / Organisation:<br class="noprint"/>
|
| 1186 |
lars |
959 |
{$order.shipAddr.firma}
|
| 1176 |
lars |
960 |
{/if}
|
|
|
961 |
</td>
|
|
|
962 |
</tr>
|
|
|
963 |
<tr>
|
|
|
964 |
<td class="rechts">
|
| 1188 |
lars |
965 |
{$order.shipAddr.strasse1} {$order.shipAddr.str_nr1}
|
| 1186 |
lars |
966 |
{if $order.shipAddr.strasse2}
|
| 1176 |
lars |
967 |
<br class="noprint" />
|
| 1186 |
lars |
968 |
{$order.shipAddr.strasse2}
|
| 1176 |
lars |
969 |
{/if}
|
|
|
970 |
</td>
|
|
|
971 |
<td class="rechts">
|
| 1186 |
lars |
972 |
{$order.shipAddr.plz} {$order.shipAddr.ort}
|
| 1176 |
lars |
973 |
</td>
|
|
|
974 |
<td class="rechts">
|
| 1186 |
lars |
975 |
{if $order.shipAddr.bundesland}
|
|
|
976 |
{$order.shipAddr.bundesland}<br/>
|
| 1176 |
lars |
977 |
{/if}
|
| 1186 |
lars |
978 |
{$order.shipAddr.land}
|
| 1176 |
lars |
979 |
</td>
|
|
|
980 |
</tr>
|
| 1184 |
lars |
981 |
{if $order.shipAddr.comment}
|
| 1176 |
lars |
982 |
<tr>
|
|
|
983 |
<td colspan="4">
|
| 1184 |
lars |
984 |
{$order.shipAddr.comment|nl2br}
|
| 1176 |
lars |
985 |
</td>
|
|
|
986 |
</tr>
|
|
|
987 |
{/if}
|
|
|
988 |
</table>
|
|
|
989 |
{if $order.status!="storniert"}
|
|
|
990 |
{if ( isset($user_rechte.Warenwirtschaft.bestellung.lieferadresse_aendern) )}
|
| 1189 |
lars |
991 |
<input type="button" value="Lieferadresse bearbeiten" class="noprint changeLieferadresse"/>
|
| 1176 |
lars |
992 |
{/if}
|
|
|
993 |
{/if}
|
|
|
994 |
</td>
|
|
|
995 |
</tr>
|
|
|
996 |
<tr {if !$daten.paketdienst.nummern}style="display:none;"{/if} id="tracking">
|
|
|
997 |
{include file="trackingnr.tpl"}
|
|
|
998 |
</tr>
|
|
|
999 |
<tr>
|
|
|
1000 |
<td valign="top" class="links noprint">
|
|
|
1001 |
<p>Artikel:</p>
|
|
|
1002 |
</td>
|
| 1279 |
lars |
1003 |
<td align="right" class="rechts artikelTabelle" colspan="2">
|
| 1176 |
lars |
1004 |
<table class="artikelListe">
|
|
|
1005 |
<tr>
|
|
|
1006 |
<td class="leereUeberschrift"> </td>
|
|
|
1007 |
<td class="leereUeberschrift"> </td> <td class="leereUeberschrift">
|
|
|
1008 |
<div class="artikelDaten tabelle">
|
|
|
1009 |
<div>
|
|
|
1010 |
<div class="ersteZelle"> </div>
|
|
|
1011 |
<div class="zweiteZelle"> </div>
|
|
|
1012 |
<div class="dritteZelle noprint">EP {0|money_format_red:0:$order.locale:true}
|
|
|
1013 |
</div>
|
|
|
1014 |
<div class="noprint" style="width:26px;"></div>
|
|
|
1015 |
</div>
|
|
|
1016 |
</div>
|
|
|
1017 |
</td>
|
|
|
1018 |
<td class="leereUeberschrift noprint">Ges. {0|money_format_red:0:$order.locale:true}</td>
|
|
|
1019 |
<td class="rechts ueberschrift">Artikelstatus</td>
|
|
|
1020 |
{if isset($user_rechte.Warenwirtschaft.bestellung.rechnungStatus)}
|
|
|
1021 |
<td class="rechts ueberschrift">Rechnung</td>
|
|
|
1022 |
{/if}
|
|
|
1023 |
{if isset($user_rechte.Warenwirtschaft.bestellung.lieferscheinStatus)}
|
|
|
1024 |
<td class="rechts ueberschrift">Lieferschein</td>
|
|
|
1025 |
{/if}
|
|
|
1026 |
{if isset($user_rechte.Warenwirtschaft.bestellung.mahnungStatus)}
|
|
|
1027 |
<td class="rechts ueberschrift">Mahnung</td>
|
|
|
1028 |
{/if}
|
|
|
1029 |
{if isset($user_rechte.Warenwirtschaft.bestellung.garantieStatus)}
|
|
|
1030 |
<td class="rechts ueberschrift">Garantieantrag</td>
|
|
|
1031 |
{/if}
|
|
|
1032 |
</tr>
|
|
|
1033 |
{assign var=i value=0}
|
|
|
1034 |
{section loop=$order.artikel name=a_ind}
|
|
|
1035 |
{if $order.artikel[a_ind].Father!=-3}
|
|
|
1036 |
{assign var=i value=$i+1}
|
|
|
1037 |
<tr class="{cycle values="darkgray,lightgray"}">
|
|
|
1038 |
<td>
|
|
|
1039 |
{$i}
|
|
|
1040 |
</td>
|
|
|
1041 |
<td class="artikelKennung" style="width:50px;">
|
|
|
1042 |
{if $order.artikel[a_ind].status=="storniert"}
|
|
|
1043 |
{$order.artikel[a_ind].kennung|strike}
|
|
|
1044 |
{else}
|
|
|
1045 |
{$order.artikel[a_ind].kennung}
|
|
|
1046 |
{/if}
|
|
|
1047 |
</td>
|
| 1284 |
lars |
1048 |
<td {if $order.status!='storniert'} ondblclick="display_artikel({$order.artikel[a_ind].ID},'');"{/if} >
|
|
|
1049 |
<input type="hidden" id="artikel_{$order.artikel[a_ind].ID}_changed" name="artikel_{$order.artikel[a_ind].ID}_changed" value="0"/>
|
| 1176 |
lars |
1050 |
<div class="artikelDaten tabelle">
|
|
|
1051 |
<div>
|
|
|
1052 |
<div class="ersteZelle">
|
| 1284 |
lars |
1053 |
<span id="eingabe_menge_{$order.artikel[a_ind].ID}" style="display:none;">
|
|
|
1054 |
<input type="text" name="cmd[artikel_to_Bestellung][{$order.artikel[a_ind].ID}][Menge]" size="2" value="{$order.artikel[a_ind].Menge}"/>
|
| 1176 |
lars |
1055 |
</span>
|
|
|
1056 |
|
| 1284 |
lars |
1057 |
<span id="ausgabe_menge_{$order.artikel[a_ind].ID}">
|
| 1176 |
lars |
1058 |
{if $order.artikel[a_ind].status=="storniert"}
|
|
|
1059 |
|
|
|
1060 |
{$order.artikel[a_ind].Menge|number_format:3:",":"."|rtrim:0|rtrim:","|strike}<strike> x </strike>
|
|
|
1061 |
{else}
|
|
|
1062 |
{if $order.artikel[a_ind].bestellte_menge}{$order.artikel[a_ind].bestellte_menge|number_format:3:",":"."|rtrim:0|rtrim:","|strike} {$order.artikel[a_ind].einheit|strike}{/if}
|
|
|
1063 |
{if $order.artikel[a_ind].einheit}{$order.artikel[a_ind].gelieferte_menge|number_format:3:",":"."|rtrim:0|rtrim:","} {$order.artikel[a_ind].einheit}{else}{$order.artikel[a_ind].Menge|number_format:3:",":"."|rtrim:0|rtrim:","} x{/if}
|
|
|
1064 |
{/if}
|
|
|
1065 |
</span>
|
|
|
1066 |
</div>
|
|
|
1067 |
<div class="zweiteZelle">
|
| 1284 |
lars |
1068 |
<span id="eingabe_bez_{$order.artikel[a_ind].ID}" style="display:none;">
|
|
|
1069 |
<input type="text" name="cmd[artikel_to_Bestellung][{$order.artikel[a_ind].ID}][Bezeichnung]" size="45" value="{$order.artikel[a_ind].Bezeichnung|htmlentities:$smarty.const.ENT_COMPAT:$smarty.session.charset|default:$order.artikel[a_ind].kurzbezeichnung|htmlentities}"/>
|
| 1176 |
lars |
1070 |
</span>
|
| 1284 |
lars |
1071 |
<span id="ausgabe_bez_{$order.artikel[a_ind].ID}" class="bestandskennzeichnung" {if $order.artikel[a_ind].bestandsmenge > 0}style="background-color: {$bestandskennzeichnungsfarbe};" {/if}>
|
| 1176 |
lars |
1072 |
{if $order.artikel[a_ind].status=="storniert"}
|
|
|
1073 |
{$order.artikel[a_ind].hersteller|strike} {$order.artikel[a_ind].Bezeichnung|default:$order.artikel[a_ind].kurzbezeichnung|strike} {$order.artikel[a_ind].option_eingabe|strike}
|
|
|
1074 |
{else}
|
|
|
1075 |
{$order.artikel[a_ind].hersteller} {$order.artikel[a_ind].Bezeichnung|default:$order.artikel[a_ind].kurzbezeichnung} {$order.artikel[a_ind].option_eingabe}
|
|
|
1076 |
{/if}
|
|
|
1077 |
</span>
|
|
|
1078 |
|
|
|
1079 |
<span class="noprint">(
|
|
|
1080 |
{if $order.artikel[a_ind].artikel}
|
|
|
1081 |
{if $order.status!='storniert'}
|
|
|
1082 |
|
|
|
1083 |
|
| 2048 |
lars |
1084 |
<a href="{if $d_shops[$order.shops_ID].domain}http://redaktion.{if isset($web_rechte.Warenwirtschaft.bestellung.infoicon_orderdblink)}{$webs.kunde}{else}{$d_shops[$order.shops_ID].domain}{/if}{if $site!=$site_full}.local{/if}{/if}/Online-Shop/waren_tool.php?artikel={$order.artikel[a_ind].child_id|default:$order.artikel[a_ind].artikel}" target="_blank" class="noprint">{/if}<img src="/backend/images/Icons/Info_icon.png" align="absmiddle" class="popup" title="Artikelverwaltung" />{if $order.status!='storniert'}</a>{/if}
|
| 1176 |
lars |
1085 |
{if $d_shops[$order.shops_ID].domain}
|
|
|
1086 |
|
|
|
|
1087 |
{if $order.status!='storniert'}
|
| 2048 |
lars |
1088 |
<a href="http://www.{$d_shops[$order.shops_ID].domain}/index.php?item={$order.artikel[a_ind].child_id|default:$order.artikel[a_ind].artikel}" target="_blank">{/if}<img src="/backend/images/Icons/Warenkorb_icon.png" align="absmiddle" class="popup" title="Artikel im Shop aufrufen" />{if $order.status!='storniert'}</a>{/if}
|
| 1176 |
lars |
1089 |
{/if}
|
| 2048 |
lars |
1090 |
{if $order.status!='storniert' && $order.artikel[a_ind].bild_url != "/backend/images/Bild_1/" && $order.artikel[a_ind].bild_url != "/backend/images/webelemente/"}|
|
| 1176 |
lars |
1091 |
{if ( isset( $web_rechte["admin"]["toolbox"]["bildverwaltung"] ) )}
|
| 2048 |
lars |
1092 |
<img src="/backend/images/Icons/fotoaperat_icon.png" align="absmiddle" class="popupImg" id="{$shopname}{$order.artikel[a_ind].bild_url}" />
|
| 1176 |
lars |
1093 |
{else}
|
| 2048 |
lars |
1094 |
<img src="/backend/images/Icons/fotoaperat_icon.png" align="absmiddle" class="popupImg" id="{$shopname}{$order.artikel[a_ind].bild_url}" />
|
| 1176 |
lars |
1095 |
{/if}
|
|
|
1096 |
{/if}
|
|
|
1097 |
{/if}
|
| 1284 |
lars |
1098 |
{include file="ipad_edit.tpl" id=$order.artikel[a_ind].ID art=""}
|
| 1176 |
lars |
1099 |
{if ( isset( $user_rechte["Warenwirtschaft"]["bestellung"]["lieferantenbestellung"] ) )}
|
|
|
1100 |
{if $order.artikel[a_ind].Preis_pro_Stueck > 0}
|
| 2048 |
lars |
1101 |
| {if $order.status!='storniert'}<a class="lager" id="lager_{$order.artikel[a_ind].artikel}_{$order.ID}_{$order.shops_ID}_{$order.artikel[a_ind].Menge}_{$order.artikel[a_ind].ID}" style="display:inline;">{/if}<img src="/backend/images/Icons/Order_icon.png" align="absmiddle" class="popup" title="Lieferantenbestellung" />{if $order.status!='storniert'}</a>{/if}
|
| 1176 |
lars |
1102 |
{/if}
|
|
|
1103 |
{/if}
|
|
|
1104 |
|
|
|
1105 |
{if $order.artikel[a_ind].lieferstatusPicBest}
|
|
|
1106 |
| <a style="cursor:pointer">
|
|
|
1107 |
<img class="popup" align="absmiddle" src="{$order.artikel[a_ind].lieferstatusPicBest}" title="{$order.artikel[a_ind].lieferstatusPopUp}" /></a>
|
|
|
1108 |
{else}
|
|
|
1109 |
| <a style="cursor:pointer" class="popup" title="{$order.artikel[a_ind].lieferstatusPopUp}">LS</a>
|
|
|
1110 |
{/if}
|
|
|
1111 |
{if $order.kk_info}
|
|
|
1112 |
<!--
|
| 1372 |
lars |
1113 |
<a style="cursor:pointer" class="refund" title="Betrag über {$order.kk_info.anbieter} erstatten" data-refund="{$order.artikel[a_ind].Preis_pro_Stueck*$order.artikel[a_ind].Menge}">{$order.kk_info.anbieter} Refund</a>
|
| 1176 |
lars |
1114 |
-->
|
|
|
1115 |
{/if}
|
|
|
1116 |
{if !$order.artikel[a_ind].bestellte_menge && $order.artikel[a_ind].einheit}
|
| 1295 |
lars |
1117 |
| <a style="cursor:pointer" title="Menge ändern" class="change_amount" id="m_{$order.artikel[a_ind].ID}">M</a>
|
| 1176 |
lars |
1118 |
{/if}
|
|
|
1119 |
)
|
|
|
1120 |
</span>
|
|
|
1121 |
{if $order.artikel[a_ind].ebay_art_id}
|
|
|
1122 |
{if $order.artikel[a_ind].status=="storniert"}
|
|
|
1123 |
<strike>
|
|
|
1124 |
{/if}
|
|
|
1125 |
(<a href="http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&rd=1&item={$order.artikel[a_ind].ebay_art_id}" target="_blank">ebay-Auktion</a>)
|
|
|
1126 |
{if $order.artikel[a_ind].status=="storniert"}
|
|
|
1127 |
</strike>
|
|
|
1128 |
{/if}
|
|
|
1129 |
{/if}
|
|
|
1130 |
</div>
|
|
|
1131 |
<div class="dritteZelle">
|
|
|
1132 |
{if $preise_anzeigen}
|
|
|
1133 |
{if ( isset( $user_rechte.Warenwirtschaft.bestellung.steuersatz_aendern ) )}
|
| 1284 |
lars |
1134 |
<span id="eingabe_mwst_{$order.artikel[a_ind].ID}" style="display:none;">
|
|
|
1135 |
<select id="landMwSt_{$order.artikel[a_ind].ID}" name="landMwSt_{$order.artikel[a_ind].ID}" class="eingabe_landMwSt">
|
| 1176 |
lars |
1136 |
{foreach $laenderMwSt as $index => $laenderDaten}
|
|
|
1137 |
<option id="{$laenderDaten["id"]}" value="{$laenderDaten["mwst_satz"]}" {if $order.artikel[a_ind].mwst == $laenderDaten["mwst_satz"]}selected{/if}>{$laenderDaten["bezeichnung"]}</option>
|
|
|
1138 |
{/foreach}
|
|
|
1139 |
</select>
|
|
|
1140 |
<input type="hidden" value="{$laenderDaten["mwst_satz"]}" class="mwstLand"/>
|
|
|
1141 |
</span>
|
|
|
1142 |
{/if}
|
| 1284 |
lars |
1143 |
<span id="eingabe_preis_{$order.artikel[a_ind].ID}" style="display:none;">
|
|
|
1144 |
<input type="text" name="cmd[artikel_to_Bestellung][{$order.artikel[a_ind].ID}][Preis_pro_Stueck]" size="5" value="{$order.artikel[a_ind].Preis_pro_Stueck}" onkeyup="this.value=killkomma(this.value);"/> €
|
|
|
1145 |
<a onmouseover="overlib('Artikel als storniert markieren.');" onmouseout="return nd();" onclick="change_status('a',{$order.ID},{$order.artikel[a_ind].ID},'S','storniert');" style="cursor:pointer">X</a>
|
| 1176 |
lars |
1146 |
|
|
|
1147 |
{if isset($user_rechte.Warenwirtschaft.bestellung.artikel_loeschen)}
|
|
|
1148 |
|
| 2048 |
lars |
1149 |
<a onclick="javascript:return confirm('Soll dieser Artikel wirklich geloescht werden?\nDie Aktion kann nicht rueckgaengig gemacht werden.');" href="/backend/order/artikel/loeschen?ID={$order.artikel[a_ind].ID}&Bestellung={$order.ID}"><img onmouseover="overlib('Artikel dauerhaft loeschen.');" onmouseout="return nd();" src="/backend/images/navigation/trashcan.gif" /></a>
|
| 1176 |
lars |
1150 |
|
|
|
1151 |
{/if}
|
|
|
1152 |
</span>
|
| 1284 |
lars |
1153 |
<span id="ausgabe_preis_{$order.artikel[a_ind].ID}" class="preise" style="text-align:right;white-space: nowrap">
|
| 1176 |
lars |
1154 |
{if $order.artikel[a_ind].status=="storniert"}
|
|
|
1155 |
{$order.artikel[a_ind].Preis_pro_Stueck|money_format_red:2:$order.locale:false:false|strike}
|
|
|
1156 |
{else}
|
|
|
1157 |
{if $order.artikel[a_ind].original_preis>0}{$order.artikel[a_ind].original_preis|money_format_red:2:$order.locale:false:false|strike}<br />{/if}
|
|
|
1158 |
{$order.artikel[a_ind].Preis_pro_Stueck|money_format_red:2:$order.locale:false:false}
|
|
|
1159 |
{/if}
|
|
|
1160 |
{if $mwst_ausgabe==1}
|
|
|
1161 |
|
|
|
1162 |
<span style="text-align:right;vertical-align:top;">
|
|
|
1163 |
<sup onmouseover="return overlib('<b> {if isset($order.artikel[a_ind].mwst) && $order.artikel[a_ind].mwst != 0}{$order.artikel[a_ind].mwst}% MwSt.{elseif $order.artikel[a_ind].tax1==0}19% MwSt.{elseif $order.artikel[a_ind].tax1==1}7% MwSt.{elseif $order.artikel[a_ind].tax1==2}0% MwSt.{/if}</b>', CAPTION, '', HAUTO, VAUTO,WIDTH,90,BORDER,2);" onmouseout="return nd();" style="cursor:help;">
|
|
|
1164 |
{$order.artikel[a_ind].tax1+1}
|
|
|
1165 |
</sup>
|
|
|
1166 |
</span>
|
|
|
1167 |
{/if}
|
|
|
1168 |
</span>
|
|
|
1169 |
{/if}
|
|
|
1170 |
</div>
|
|
|
1171 |
{if isset($web_rechte["Warenwirtschaft"]["bestellung"]["artikel_sortieren"])}
|
|
|
1172 |
<div class="noprint" style="width:32px;">
|
|
|
1173 |
{if $order.status!='storniert'}
|
|
|
1174 |
{if $order.artikel[a_ind].ab_Rang > 0}
|
| 2048 |
lars |
1175 |
<a href="{$script_name}?Bestellung={$order.ID}&dir=up&id={$order.artikel[a_ind].ID}"><img src="/backend/images/Online-Shop/directory/Pfeil_oben.png" alt="auf" border="0" width="14" /></a>
|
| 1176 |
lars |
1176 |
{/if}
|
|
|
1177 |
{if $smarty.section.a_ind.index < $artikel_anzahl -1}
|
| 2048 |
lars |
1178 |
<a href="{$script_name}?Bestellung={$order.ID}&dir=down&id={$order.artikel[a_ind].ID}"><img src="/backend/images/Online-Shop/directory/Pfeil_unten.png" alt="ab" border="0" width="14" /></a>
|
| 1176 |
lars |
1179 |
{/if}
|
|
|
1180 |
{/if}
|
|
|
1181 |
</div>
|
|
|
1182 |
{/if}
|
|
|
1183 |
</div>
|
|
|
1184 |
</div>
|
|
|
1185 |
</td>
|
|
|
1186 |
<td class="preise noprint" style="text-align:right;white-space: nowrap;width:50px;vertical-align:middle">
|
|
|
1187 |
{if $order.artikel[a_ind].status=="storniert"}
|
|
|
1188 |
{if $order.artikel[a_ind].einheit!=""}
|
|
|
1189 |
{$order.artikel[a_ind].Preis_pro_Stueck*$order.artikel[a_ind].gelieferte_menge/($order.artikel[a_ind].bestellte_menge/$order.artikel[a_ind].Menge)|money_format_red:2:$order.locale:false:false|strike}
|
|
|
1190 |
{else}
|
|
|
1191 |
{$order.artikel[a_ind].Preis_pro_Stueck* $order.artikel[a_ind].Menge|money_format_red:2:$order.locale:false:false|strike}
|
|
|
1192 |
{/if}
|
|
|
1193 |
{else}
|
|
|
1194 |
{if $order.artikel[a_ind].einheit!=""}
|
|
|
1195 |
{$order.artikel[a_ind].Preis_pro_Stueck*$order.artikel[a_ind].gelieferte_menge/($order.artikel[a_ind].bestellte_menge/$order.artikel[a_ind].Menge)|money_format_red:2:$order.locale:false:false}
|
|
|
1196 |
{else}
|
|
|
1197 |
{$order.artikel[a_ind].Preis_pro_Stueck* $order.artikel[a_ind].Menge|money_format_red:2:$order.locale:false:false}
|
|
|
1198 |
{/if}
|
|
|
1199 |
{/if}
|
|
|
1200 |
</td>
|
|
|
1201 |
<td class="statusVierKaestchen" bgcolor="#FFFF00">
|
| 1284 |
lars |
1202 |
<input type="hidden" id="a_{$order.artikel[a_ind].ID}_status_f" value="{$order.artikel[a_ind].status}"/>
|
| 1176 |
lars |
1203 |
<div class="kaestchenWrapper">
|
|
|
1204 |
{section loop=$daten.artikel_stati name=as_ind}
|
|
|
1205 |
{if $order.artikel[a_ind].status==$daten.artikel_stati[as_ind].name}
|
|
|
1206 |
{assign var=class value=$daten.artikel_stati[as_ind].class}
|
|
|
1207 |
{else}
|
|
|
1208 |
{assign var=class value="status_off"}
|
|
|
1209 |
{/if}
|
|
|
1210 |
<span nowrap="nowrap" {if $daten.artikel_stati[as_ind].name} class="darkgray kaestchen"{/if}>
|
| 1284 |
lars |
1211 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('a', {$order.ID},{$order.artikel[a_ind].ID},'{$daten.artikel_stati[as_ind].short}','{$daten.artikel_stati[as_ind].name}');return false;" style="cursor:pointer"{/if} id="a_{$order.artikel[a_ind].ID}_{$daten.artikel_stati[as_ind].short}" title="{$daten.artikel_stati[as_ind].name}"> {$daten.artikel_stati[as_ind].short} </a>
|
| 1176 |
lars |
1212 |
</span>
|
|
|
1213 |
{/section}
|
|
|
1214 |
</div>
|
|
|
1215 |
</td>
|
|
|
1216 |
|
|
|
1217 |
{if isset($user_rechte.Warenwirtschaft.bestellung.rechnungStatus)}
|
|
|
1218 |
<td class="statusDreiKaestchen" bgcolor="#FFFF00">
|
| 1284 |
lars |
1219 |
<input type="hidden" id="r_{$order.artikel[a_ind].ID}_status_f" value="{$order.artikel[a_ind].rechnungstatus}"/>
|
| 1176 |
lars |
1220 |
<div class="kaestchenWrapper">
|
|
|
1221 |
{section loop=$daten.rechnung_stati name=rs_ind}
|
|
|
1222 |
{if $order.artikel[a_ind].rechnungstatus==$daten.rechnung_stati[rs_ind].name}
|
|
|
1223 |
{assign var=class value=$daten.rechnung_stati[rs_ind].class}
|
|
|
1224 |
{else}
|
|
|
1225 |
{assign var=class value="status_off"}
|
|
|
1226 |
{/if}
|
|
|
1227 |
<span nowrap="nowrap" {if $daten.rechnung_stati[rs_ind].name} class="darkgray kaestchen"{/if}>
|
| 1284 |
lars |
1228 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('r', {$order.ID},{$order.artikel[a_ind].ID},'{$daten.rechnung_stati[rs_ind].short}','{$daten.rechnung_stati[rs_ind].name}');return false;" style="cursor:pointer"{/if} id="r_{$order.artikel[a_ind].ID}_{$daten.rechnung_stati[rs_ind].short}" title="{$daten.rechnung_stati[rs_ind].name}"> {$daten.rechnung_stati[rs_ind].short} </a>
|
| 1176 |
lars |
1229 |
</span>
|
|
|
1230 |
{/section}
|
|
|
1231 |
</div>
|
|
|
1232 |
</td>
|
|
|
1233 |
{/if}
|
|
|
1234 |
{if isset($user_rechte.Warenwirtschaft.bestellung.lieferscheinStatus)}
|
|
|
1235 |
<td class="statusDreiKaestchen" bgcolor="#FFFF00">
|
| 1284 |
lars |
1236 |
<input type="hidden" id="l_{$order.artikel[a_ind].ID}_status_f" value="{$order.artikel[a_ind].lieferscheinStatus}"/>
|
| 1176 |
lars |
1237 |
<div class="kaestchenWrapper">
|
|
|
1238 |
{section loop=$daten.lieferschein_stati name=ls_ind}
|
|
|
1239 |
{if $order.artikel[a_ind].lieferscheinStatus==$daten.lieferschein_stati[ls_ind].name}
|
|
|
1240 |
{assign var=class value=$daten.lieferschein_stati[ls_ind].class}
|
|
|
1241 |
{else}
|
|
|
1242 |
{assign var=class value="status_off"}
|
|
|
1243 |
{/if}
|
|
|
1244 |
<span nowrap="nowrap" {if $daten.lieferschein_stati[ls_ind].name} class="darkgray kaestchen"{/if}>
|
| 1284 |
lars |
1245 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('l', {$order.ID},{$order.artikel[a_ind].ID},'{$daten.lieferschein_stati[ls_ind].short}','{$daten.lieferschein_stati[ls_ind].name}');return false;" style="cursor:pointer"{/if} id="l_{$order.artikel[a_ind].ID}_{$daten.lieferschein_stati[ls_ind].short}" title="{$daten.lieferschein_stati[ls_ind].name}"> {$daten.lieferschein_stati[ls_ind].short} </a>
|
| 1176 |
lars |
1246 |
</span>
|
|
|
1247 |
{/section}
|
|
|
1248 |
</div>
|
|
|
1249 |
</td>
|
|
|
1250 |
{/if}
|
|
|
1251 |
{if isset($user_rechte.Warenwirtschaft.bestellung.mahnungStatus)}
|
|
|
1252 |
<td class="statusDreiKaestchen" bgcolor="#FFFF00">
|
| 1284 |
lars |
1253 |
<input type="hidden" id="m_{$order.artikel[a_ind].ID}_status_f" value="{$order.artikel[a_ind].mahnungStatus}"/>
|
| 1176 |
lars |
1254 |
<div class="kaestchenWrapper">
|
|
|
1255 |
{section loop=$daten.mahnung_stati name=ms_ind}
|
|
|
1256 |
{if $order.artikel[a_ind].mahnungStatus==$daten.mahnung_stati[ms_ind].name}
|
|
|
1257 |
{assign var=class value=$daten.mahnung_stati[ms_ind].class}
|
|
|
1258 |
{else}
|
|
|
1259 |
{assign var=class value="status_off"}
|
|
|
1260 |
{/if}
|
|
|
1261 |
<span nowrap="nowrap" {if $daten.mahnung_stati[ms_ind].name} class="darkgray kaestchen"{/if}>
|
| 1284 |
lars |
1262 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('m', {$order.ID},{$order.artikel[a_ind].ID},'{$daten.mahnung_stati[ms_ind].short}','{$daten.mahnung_stati[ms_ind].name}');return false;" style="cursor:pointer"{/if} id="m_{$order.artikel[a_ind].ID}_{$daten.mahnung_stati[ms_ind].short}" title="{$daten.mahnung_stati[ms_ind].name}"> {$daten.mahnung_stati[ms_ind].short} </a>
|
| 1176 |
lars |
1263 |
</span>
|
|
|
1264 |
{/section}
|
|
|
1265 |
</div>
|
|
|
1266 |
</td>
|
|
|
1267 |
{/if}
|
|
|
1268 |
{if isset($user_rechte.Warenwirtschaft.bestellung.garantieStatus)}
|
|
|
1269 |
<td class="statusDreiKaestchen" bgcolor="#FFFF00">
|
| 1284 |
lars |
1270 |
<input type="hidden" id="m_{$order.artikel[a_ind].ID}_status_f" value="{$order.artikel[a_ind].garantieStatus}"/>
|
| 1176 |
lars |
1271 |
<div class="kaestchenWrapper">
|
|
|
1272 |
{section loop=$daten.garantie_stati name=gs_ind}
|
|
|
1273 |
{if $order.artikel[a_ind].garantiestatus==$daten.garantie_stati[gs_ind].name}
|
|
|
1274 |
{assign var=class value=$daten.garantie_stati[gs_ind].class}
|
|
|
1275 |
{else}
|
|
|
1276 |
{assign var=class value="status_off"}
|
|
|
1277 |
{/if}
|
|
|
1278 |
<span nowrap="nowrap" {if $daten.garantie_stati[gs_ind].name} class="darkgray kaestchen"{/if}>
|
| 1284 |
lars |
1279 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('g', {$order.ID},{$order.artikel[a_ind].ID},'{$daten.garantie_stati[gs_ind].short}','{$daten.garantie_stati[gs_ind].name}');return false;" style="cursor:pointer"{/if} id="g_{$order.artikel[a_ind].ID}_{$daten.garantie_stati[gs_ind].short}" title="{$daten.garantie_stati[gs_ind].name}"> {$daten.garantie_stati[gs_ind].short} </a>
|
| 1176 |
lars |
1280 |
</span>
|
|
|
1281 |
{/section}
|
|
|
1282 |
</div>
|
|
|
1283 |
</td>
|
|
|
1284 |
{/if}
|
|
|
1285 |
{if isset($user_rechte.Warenwirtschaft.bestellung.EbayPaymentStatus) && $order.artikel[a_ind].ebay_PaymentStatus}
|
|
|
1286 |
<td style="text-align:center;width:14px;">
|
|
|
1287 |
{if $order.artikel[a_ind].ebay_PaymentStatus == 1}
|
| 2048 |
lars |
1288 |
<img width="14" border="0" alt="" src="/backend/images/Icons/ebay{$order.artikel[a_ind].ebay_PaymentStatus}.png" onmouseover="return overlib('Zahlungsdatum: {$order.artikel[a_ind].ebay_PaymentTime} <br />Zahlungsart: {$order.artikel[a_ind].ebay_PaymentMethodUsed}{$order.artikel[a_ind].ebay_PaymentID}', WIDTH, 250);" onmouseout="return nd();" />
|
| 1176 |
lars |
1289 |
{else}
|
| 2048 |
lars |
1290 |
<img width="14" border="0" alt="" src="/backend/images/Icons/ebay{$order.artikel[a_ind].ebay_PaymentStatus}.png" onmouseover="return overlib('Artikel wurde noch nicht bezahlt', WIDTH, 300)" onmouseout="return nd();" />
|
| 1176 |
lars |
1291 |
{/if}
|
|
|
1292 |
</td>
|
|
|
1293 |
{/if}
|
|
|
1294 |
</tr>
|
|
|
1295 |
|
|
|
1296 |
{if $order.artikel[a_ind].status=="storniert"}
|
|
|
1297 |
{assign var="preis" value=0}
|
|
|
1298 |
{assign var="menge" value=0}
|
|
|
1299 |
{else}
|
|
|
1300 |
{assign var="preis" value=$order.artikel[a_ind].Preis_pro_Stueck* $order.artikel[a_ind].Menge}
|
|
|
1301 |
{assign var="menge" value=$order.artikel[a_ind].Menge}
|
|
|
1302 |
{/if}
|
|
|
1303 |
{assign var="gesamtPreis" value=$gesamtPreis + $preis}
|
|
|
1304 |
{assign var="gesamtMenge" value = $gesamtMenge + $menge}
|
|
|
1305 |
{/if}
|
|
|
1306 |
{/section}
|
|
|
1307 |
|
|
|
1308 |
{section loop=$order.artikel name=a_ind}
|
| 1283 |
lars |
1309 |
{if $order.artikel[a_ind].Father==-3}
|
| 1284 |
lars |
1310 |
{assign var=versand_artikel value=$order.artikel[a_ind].ID}
|
| 1176 |
lars |
1311 |
{assign var=versand_status value=$order.artikel[a_ind].status}
|
|
|
1312 |
{assign var=versand_name value=$order.artikel[a_ind].short_line_1}
|
|
|
1313 |
{assign var=versand_datum value=$order.artikel[a_ind].exported}
|
|
|
1314 |
<tr class="{cycle values="darkgray,lightgray"}">
|
|
|
1315 |
<td> </td>
|
|
|
1316 |
<td> </td>
|
| 1284 |
lars |
1317 |
<td {if $order.status!='storniert'}ondblclick="display_artikel({$order.artikel[a_ind].ID},'V')"{/if}>
|
|
|
1318 |
<input type="hidden" id="a_{$order.artikel[a_ind].ID}_status_f" value="{$order.artikel[a_ind].status}"/>
|
|
|
1319 |
<input type="hidden" id="artikel_{$order.artikel[a_ind].ID}_changed" name="artikel_{$order.artikel[a_ind].ID}_changed" value="0"/>
|
| 1176 |
lars |
1320 |
<div border="0" cellspacing="0" cellpadding="0" class="tabelle artikelDaten">
|
|
|
1321 |
<div>
|
|
|
1322 |
<div class="ersteZelle" nowrap="nowrap">Versand:</div>
|
|
|
1323 |
<div class="zweiteZelle">
|
|
|
1324 |
|
| 1284 |
lars |
1325 |
<span id="eingabe_bez_{$order.artikel[a_ind].ID}" style="display:none;">
|
| 1176 |
lars |
1326 |
<input
|
|
|
1327 |
|
|
|
1328 |
{if isset($web_rechte.Warenwirtschaft.bestellung.versandname_aenderbar) && !isset($user_rechte.Warenwirtschaft.bestellung.versandname_aenderbar)}
|
|
|
1329 |
readonly="readonly"
|
|
|
1330 |
{/if}
|
|
|
1331 |
|
| 1284 |
lars |
1332 |
type="text" name="cmd[artikel_to_Bestellung][{$order.artikel[a_ind].ID}][Bezeichnung]" size="45" value="{$order.artikel[a_ind].Bezeichnung|default:$order.artikel[a_ind].kurzbezeichnung|trim}" onchange="document.getElementById('artikel_'+{$order.artikel[a_ind].ID}+'_changed').value='1';"/>
|
| 1176 |
lars |
1333 |
|
|
|
1334 |
{if isset($user_rechte.Warenwirtschaft.bestellung.artikel_loeschen)}
|
|
|
1335 |
|
| 2048 |
lars |
1336 |
<a onclick="javascript:return confirm('Soll diese Versandart wirklich geloescht werden?\nDie Aktion kann nicht rueckgaengig gemacht werden.');" href="/backend/oder/artikel/loeschen?ID={$order.artikel[a_ind].ID}&Bestellung={$order.ID}"><img onmouseover="overlib('Versandartikel dauerhaft loeschen.');" onmouseout="return nd();" src="/backend/images/navigation/trashcan.gif" /></a>
|
| 1176 |
lars |
1337 |
|
|
|
1338 |
{/if}
|
|
|
1339 |
|
|
|
1340 |
</span>
|
| 1284 |
lars |
1341 |
<span id="ausgabe_bez_{$order.artikel[a_ind].ID}">
|
| 1176 |
lars |
1342 |
{$order.artikel[a_ind].Bezeichnung|default:$order.artikel[a_ind].kurzbezeichnung}
|
|
|
1343 |
</span>
|
|
|
1344 |
{if $order.artikel[a_ind].artikel}
|
|
|
1345 |
(
|
| 1284 |
lars |
1346 |
{include file="ipad_edit.tpl" id=$order.artikel[a_ind].ID art="V"}
|
| 1176 |
lars |
1347 |
)
|
|
|
1348 |
{/if}
|
|
|
1349 |
{if $order.kk_info}
|
|
|
1350 |
<!--
|
| 1372 |
lars |
1351 |
<a style="cursor:pointer" class="refund" title="Betrag über {$order.kk_info.anbieter} erstatten" data-refund="{$order.artikel[a_ind].Preis_pro_Stueck*$order.artikel[a_ind].Menge}">{$order.kk_info.anbieter} Refund</a>
|
| 1176 |
lars |
1352 |
-->
|
|
|
1353 |
{/if}
|
|
|
1354 |
</div>
|
|
|
1355 |
<div class="dritteZelle" nowrap="nowrap">
|
|
|
1356 |
{if ( isset( $user_rechte.Warenwirtschaft.bestellung.steuersatz_aendern ) )}
|
| 1284 |
lars |
1357 |
<span id="eingabe_mwst_{$order.artikel[a_ind].ID}" style="display:none;">
|
|
|
1358 |
<select id="landMwSt_{$order.artikel[a_ind].ID}" name="landMwSt_{$order.artikel[a_ind].ID}" class="eingabe_landMwSt">
|
| 1176 |
lars |
1359 |
{foreach $laenderMwSt as $index => $laenderDaten}
|
|
|
1360 |
<option id="{$laenderDaten["id"]}" value="{$laenderDaten["mwst_satz"]}" {if $order.artikel[a_ind].mwst == $laenderDaten["mwst_satz"]}selected{/if}>{$laenderDaten["bezeichnung"]}</option>
|
|
|
1361 |
{/foreach}
|
|
|
1362 |
</select>
|
|
|
1363 |
<input type="hidden" value="{$laenderDaten["mwst_satz"]}" class="mwstLand"/>
|
|
|
1364 |
</span>
|
|
|
1365 |
{/if}
|
| 1284 |
lars |
1366 |
<span id="eingabe_preis_{$order.artikel[a_ind].ID}" style="display:none;">
|
|
|
1367 |
<input type="text" name="cmd[artikel_to_Bestellung][{$order.artikel[a_ind].ID}][Preis_pro_Stueck]" size="3" value="{$order.artikel[a_ind].Preis_pro_Stueck}" onchange="document.getElementById('artikel_'+{$order.artikel[a_ind].ID}+'_changed').value='1';" onkeyup="this.value=killkomma(this.value);"/> €
|
| 1176 |
lars |
1368 |
</span>
|
| 1284 |
lars |
1369 |
<span id="ausgabe_preis_{$order.artikel[a_ind].ID}" class="preise">
|
| 1176 |
lars |
1370 |
{$order.artikel[a_ind].Preis_pro_Stueck|money_format_red:2:$order.locale:false:false}
|
|
|
1371 |
</span>
|
|
|
1372 |
</div>
|
|
|
1373 |
{if isset($web_rechte["Warenwirtschaft"]["bestellung"]["artikel_sortieren"])}
|
|
|
1374 |
<div class="noprint" style="width:32px;"></div>
|
|
|
1375 |
{/if}
|
|
|
1376 |
</div>
|
|
|
1377 |
</div>
|
|
|
1378 |
</td>
|
|
|
1379 |
<td class="preise noprint" style="text-align:right;">
|
|
|
1380 |
{$order.artikel[a_ind].Preis_pro_Stueck|money_format_red:2:$order.locale:false:false}
|
|
|
1381 |
</td>
|
|
|
1382 |
</tr>
|
|
|
1383 |
{/if}
|
|
|
1384 |
{/section}
|
|
|
1385 |
{if !$versand_artikel}
|
|
|
1386 |
<tr class="{cycle values="darkgray,lightgray"} noprint" align="left">
|
|
|
1387 |
<td> </td>
|
|
|
1388 |
<td> </td>
|
|
|
1389 |
<td>
|
|
|
1390 |
{if $order.status!='storniert'}
|
|
|
1391 |
{html_options options=$daten.Versand name="versandItem"}
|
|
|
1392 |
<input type="submit" name="enterVersand" value="OK"/>
|
|
|
1393 |
{/if}
|
|
|
1394 |
</td>
|
|
|
1395 |
</tr>
|
|
|
1396 |
{/if}
|
|
|
1397 |
<tr class="{cycle values="darkgray,lightgray"}">
|
|
|
1398 |
<td style="border-top: 1px solid #666"></td>
|
|
|
1399 |
<td style="border-top: 1px solid #666"></td>
|
|
|
1400 |
<td style="border-top: 1px solid #666">
|
|
|
1401 |
{if (count($order.artikel) - 1) > 1 && $gesamtMenge > 0}
|
|
|
1402 |
<span style="text-align:left;">Summe Artikel: {$gesamtMenge}</span><br />
|
|
|
1403 |
{/if}
|
|
|
1404 |
<span style="text-align:right;float:right;">Bestellwert:</span>
|
|
|
1405 |
</td>
|
|
|
1406 |
<td class="preise" style="text-align:right;border-top: 1px solid #666">
|
|
|
1407 |
{$order.gesamtsumme_buffer|money_format_red:2:$order.locale:false:false}
|
|
|
1408 |
</td>
|
|
|
1409 |
<td bgcolor="#FFFF00" style="text-align: center;">
|
|
|
1410 |
{section loop=$daten.artikel_stati name=as_ind}
|
|
|
1411 |
<span {if $daten.artikel_stati[as_ind].name} class="darkgray"{/if} style="border: 1px solid #cccccc;">
|
|
|
1412 |
{assign var=class value=$daten.artikel_stati[as_ind].class}
|
|
|
1413 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('a', {$order.ID},0,'{$daten.artikel_stati[as_ind].short}','{$daten.artikel_stati[as_ind].name}');return false;" style="cursor:pointer"{/if} title="{$daten.artikel_stati[as_ind].name}"> ∑ </a>
|
|
|
1414 |
</span>
|
|
|
1415 |
{/section}
|
|
|
1416 |
</td>
|
|
|
1417 |
{if isset($user_rechte.Warenwirtschaft.bestellung.rechnungStatus)}
|
|
|
1418 |
<td bgcolor="#FFFF00" style="text-align: center;">
|
|
|
1419 |
{section loop=$daten.rechnung_stati name=rs_ind}
|
|
|
1420 |
<span {if $daten.rechnung_stati[rs_ind].name} class="darkgray"{/if} style="border: 1px solid #cccccc;">
|
|
|
1421 |
{assign var=class value=$daten.rechnung_stati[rs_ind].class}
|
|
|
1422 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('r', {$order.ID},0,'{$daten.rechnung_stati[rs_ind].short}','{$daten.rechnung_stati[rs_ind].name}');return false;" style="cursor:pointer"{/if} title="{$daten.rechnung_stati[rs_ind].name}"> ∑ </a>
|
|
|
1423 |
</span>
|
|
|
1424 |
{/section}
|
|
|
1425 |
</td>
|
|
|
1426 |
{/if}
|
|
|
1427 |
{if isset($user_rechte.Warenwirtschaft.bestellung.lieferscheinStatus)}
|
|
|
1428 |
<td bgcolor="#FFFF00" style="text-align: center;">
|
|
|
1429 |
{section loop=$daten.lieferschein_stati name=ls_ind}
|
|
|
1430 |
<span {if $daten.lieferschein_stati[ls_ind].name} class="darkgray"{/if} style="border: 1px solid #cccccc;">
|
|
|
1431 |
{assign var=class value=$daten.lieferschein_stati[ls_ind].class}
|
|
|
1432 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('l', {$order.ID},0,'{$daten.lieferschein_stati[ls_ind].short}','{$daten.lieferschein_stati[ls_ind].name}');return false;" style="cursor:pointer"{/if} title="{$daten.lieferschein_stati[ls_ind].name}"> ∑ </a>
|
|
|
1433 |
</span>
|
|
|
1434 |
{/section}
|
|
|
1435 |
</td>
|
|
|
1436 |
{/if}
|
|
|
1437 |
{if isset($user_rechte.Warenwirtschaft.bestellung.mahnungStatus)}
|
|
|
1438 |
<td bgcolor="#FFFF00" style="text-align: center;">
|
|
|
1439 |
{section loop=$daten.mahnung_stati name=ms_ind}
|
|
|
1440 |
<span nowrap="nowrap" {if $daten.mahnung_stati[ms_ind].name} class="darkgray"{/if} style="border: 1px solid #cccccc;">
|
|
|
1441 |
{assign var=class value=$daten.mahnung_stati[ms_ind].class}
|
|
|
1442 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('m', {$order.ID},0,'{$daten.mahnung_stati[ms_ind].short}','{$daten.mahnung_stati[ms_ind].name}');return false;" style="cursor:pointer"{/if} title="{$daten.mahnung_stati[ms_ind].name}"> ∑ </a>
|
|
|
1443 |
</span>
|
|
|
1444 |
{/section}
|
|
|
1445 |
</td>
|
|
|
1446 |
{/if}
|
|
|
1447 |
{if isset($user_rechte.Warenwirtschaft.bestellung.garantieStatus)}
|
|
|
1448 |
<td bgcolor="#FFFF00" style="text-align: center;">
|
|
|
1449 |
{section loop=$daten.garantie_stati name=gs_ind}
|
|
|
1450 |
<span nowrap="nowrap" {if $daten.garantie_stati[gs_ind].name} class="darkgray"{/if} style="border: 1px solid #cccccc;">
|
|
|
1451 |
{assign var=class value=$daten.garantie_stati[gs_ind].class}
|
|
|
1452 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('g', {$order.ID},0,'{$daten.garantie_stati[gs_ind].short}','{$daten.garantie_stati[gs_ind].name}');return false;" style="cursor:pointer"{/if} title="{$daten.garantie_stati[gs_ind].name}"> ∑ </a>
|
|
|
1453 |
</span>
|
|
|
1454 |
{/section}
|
|
|
1455 |
</td>
|
|
|
1456 |
{/if}
|
|
|
1457 |
</tr>
|
|
|
1458 |
<tr>
|
|
|
1459 |
<td></td>
|
|
|
1460 |
<td></td>
|
|
|
1461 |
<td align="right" class="right">
|
|
|
1462 |
|
|
|
1463 |
</td>
|
|
|
1464 |
<td colspan="3" align="left" class="noprint">
|
|
|
1465 |
{if $order.status!='storniert'}
|
|
|
1466 |
<input name="manu" value="Neuen Artikel anlegen" type="button" onclick="fenster=window.open('bestellung_liste_manu.php?Bestellung={$order.ID}', 'fenster','width=800,toolbar=no,status=no,menubar=no,scrollbars=yes')"/>
|
|
|
1467 |
{/if}
|
|
|
1468 |
</td>
|
|
|
1469 |
</tr>
|
|
|
1470 |
{if $versand_artikel}
|
|
|
1471 |
<tr>
|
|
|
1472 |
<td class=""> </td>
|
|
|
1473 |
<td> </td>
|
|
|
1474 |
<td class="noprint" title="Logistikerexportiert am {$versand_datum|date_format:"%x %X"}">
|
|
|
1475 |
Versandstatus (O=offen; F=freigegeben; V=versand)
|
|
|
1476 |
</td>
|
|
|
1477 |
<td></td>
|
|
|
1478 |
<td bgcolor="#FFFF00">
|
|
|
1479 |
<span class="darkgray">
|
|
|
1480 |
{if $versand_status=="offen"}
|
|
|
1481 |
{assign var=class value="status_red"}
|
|
|
1482 |
{else}
|
|
|
1483 |
{assign var=class value="status_off"}
|
|
|
1484 |
{/if}
|
|
|
1485 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('a', {$order.ID},{$versand_artikel},'O','offen');return false;" style="cursor:pointer"{/if} id="a_{$versand_artikel}_O" title="offen"> O </a>
|
|
|
1486 |
</span>
|
|
|
1487 |
|
|
|
1488 |
<span class="darkgray">
|
|
|
1489 |
{if $versand_status=="freigegeben"}
|
|
|
1490 |
{assign var=class value="status_yellow"}
|
|
|
1491 |
{else}
|
|
|
1492 |
{assign var=class value="status_off"}
|
|
|
1493 |
{/if}
|
|
|
1494 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('a', {$order.ID},{$versand_artikel},'F','freigegeben');return false;" style="cursor:pointer"{/if} id="a_{$versand_artikel}_F" title="freigegeben"> F </a>
|
|
|
1495 |
</span>
|
|
|
1496 |
|
|
|
1497 |
<span class="darkgray">
|
|
|
1498 |
{if $versand_status=="versand"}
|
|
|
1499 |
{assign var=class value="status_green"}
|
|
|
1500 |
{else}
|
|
|
1501 |
{assign var=class value="status_off"}
|
|
|
1502 |
{/if}
|
|
|
1503 |
<a class="{$class}" {if $order.status!='storniert'}onclick="change_status('a', {$order.ID},{$versand_artikel},'V','versand');return false;" style="cursor:pointer"{/if} id="a_{$versand_artikel}_V" title="Versand"> V </a>
|
|
|
1504 |
</span>
|
|
|
1505 |
</td>
|
|
|
1506 |
</tr>
|
|
|
1507 |
{/if}
|
|
|
1508 |
</table>
|
|
|
1509 |
</td>
|
|
|
1510 |
</tr>
|
|
|
1511 |
{if isset($user_rechte.Warenwirtschaft.bestellung.shortline1)}
|
|
|
1512 |
<tr>
|
|
|
1513 |
<td valign="top" class="links noprint">{$daten.sl1.name}</td>
|
| 1279 |
lars |
1514 |
<td class="rechts" colspan="2">
|
| 1176 |
lars |
1515 |
<span class="print">{$daten.sl1.name} {$order.shortline1}</span>
|
|
|
1516 |
{if $order.status!='storniert'}
|
|
|
1517 |
<input type="text" name="shortline1" value="{$order.shortline1}" size="{$daten.sl1.size}" maxlength="{$daten.sl1.size}" class="noprint"/>
|
|
|
1518 |
{else}
|
|
|
1519 |
{$order.shortline1}
|
|
|
1520 |
{/if}
|
|
|
1521 |
</td>
|
|
|
1522 |
</tr>
|
|
|
1523 |
{/if}
|
|
|
1524 |
{if isset($user_rechte.Warenwirtschaft.bestellung.shortline2)}
|
|
|
1525 |
<tr>
|
|
|
1526 |
<td valign="top" class="links">{$daten.sl2.name}</td>
|
| 1279 |
lars |
1527 |
<td class="rechts" colspan="2">
|
| 1176 |
lars |
1528 |
{if $order.status!='storniert'}
|
|
|
1529 |
<input type="text" name="shortline2" value="{$order.shortline2}" size="{$daten.sl2.size}" maxlength="{$daten.sl2.size}" class="noprint"/>
|
|
|
1530 |
{else}
|
|
|
1531 |
{$order.shortline2}
|
|
|
1532 |
{/if}
|
|
|
1533 |
</td>
|
|
|
1534 |
</tr>
|
|
|
1535 |
{/if}
|
|
|
1536 |
{if isset($user_rechte.Warenwirtschaft.bestellung.status1)}
|
|
|
1537 |
<tr>
|
|
|
1538 |
<td valign="top" class="links">{$status1_name}</td>
|
| 1279 |
lars |
1539 |
<td class="rechts" colspan="2">
|
| 1176 |
lars |
1540 |
{if $order.status!='storniert'}
|
|
|
1541 |
{html_options options=$status1_options name="status1" selected=$order.status1}
|
|
|
1542 |
{else}
|
|
|
1543 |
{if $order.status1}
|
|
|
1544 |
{$status1_options.$order.status1}
|
|
|
1545 |
{/if}
|
|
|
1546 |
{/if}
|
|
|
1547 |
</td>
|
|
|
1548 |
</tr>
|
|
|
1549 |
{/if}
|
|
|
1550 |
<tr>
|
|
|
1551 |
<td class="links noprint">Bemerkung:</td>
|
| 1279 |
lars |
1552 |
<td class="rechts" colspan="2">
|
| 1176 |
lars |
1553 |
{if $order.status!='storniert'}
|
|
|
1554 |
<span class="noprint">
|
|
|
1555 |
<textarea cols="70" rows="8" name="Bemerkung" id="bemerkung" style="width:99%;">{$order.Bemerkung}</textarea>
|
|
|
1556 |
</span>
|
|
|
1557 |
{else}
|
|
|
1558 |
<span style="font-family:courier;">{$order.Bemerkung|nl2br}</span>
|
|
|
1559 |
{/if}
|
|
|
1560 |
{if $order.Bemerkung}
|
|
|
1561 |
<div class="print bemerkung">Bemerkung:<br/>{$order.Bemerkung|nl2br}</div>
|
|
|
1562 |
{/if}
|
|
|
1563 |
</td>
|
|
|
1564 |
</tr>
|
|
|
1565 |
{if isset($user_rechte.Warenwirtschaft.bestellung.Bemerkung_extern)}
|
|
|
1566 |
<tr>
|
|
|
1567 |
<td class="links noprint">Bemerkung extern:</td>
|
| 1279 |
lars |
1568 |
<td class="rechts" colspan="2">
|
| 1176 |
lars |
1569 |
{if $order.status!='storniert'}
|
|
|
1570 |
<textarea cols="70" rows="8" name="Bemerkung_extern" class="noprint" style="width:99%;">{$order.Bemerkung_extern}</textarea>
|
|
|
1571 |
{else}
|
|
|
1572 |
<span style="font-family:courier;">{$order.Bemerkung_extern|nl2br}</span>
|
|
|
1573 |
{/if}
|
|
|
1574 |
{if $order.Bemerkung_extern}
|
|
|
1575 |
<div class="print bemerkung">Bemerkung extern:<br/>{$order.Bemerkung_extern|nl2br}</div>
|
|
|
1576 |
{/if}
|
|
|
1577 |
</td>
|
|
|
1578 |
</tr>
|
|
|
1579 |
{/if}
|
|
|
1580 |
|
|
|
1581 |
{if isset($user_rechte.Warenwirtschaft.bestellung.dokument_read)}
|
| 1316 |
lars |
1582 |
{section loop=$order.dokumente name=d_ind}
|
| 1176 |
lars |
1583 |
<tr>
|
| 1316 |
lars |
1584 |
<td class="links noprint">Dokument {$order.dokumente[d_ind].nr}</td>
|
| 1279 |
lars |
1585 |
<td class="rechts" colspan="2">
|
| 1176 |
lars |
1586 |
<div class="tabelle dokumente">
|
| 1316 |
lars |
1587 |
<div class="links {if $order.dokumente[d_ind].storniert == 1}stornoGrau{/if}">
|
| 1176 |
lars |
1588 |
<div class="ersteZelle">
|
| 1316 |
lars |
1589 |
<span class="unread_docs_helper noprint" id="unread_docs_{$order.ID}_{$order.dokumente[d_ind].id}_helper"></span>
|
|
|
1590 |
{html_image file=$order.dokumente[d_ind].icon alt="Dateityp: {$order.dokumente[d_ind].type}" class="noprint" style="vertical-align:middle;"}
|
|
|
1591 |
{if $order.dokumente[d_ind].type == "link"}
|
|
|
1592 |
<a href="{$order.dokumente[d_ind].link}" target="{$order.dokumente[d_ind].target}" id="doc_link_{$order.dokumente[d_ind].id}_{$order.ID}" class="doc_link">
|
|
|
1593 |
{$order.dokumente[d_ind].name}
|
| 1176 |
lars |
1594 |
</a>
|
|
|
1595 |
{else}
|
| 1318 |
lars |
1596 |
<a href="/images/dokumente/{$daten.dokPath}{$order.dokumente[d_ind].name}" target="_blank" id="doc_link_{$order.dokumente[d_ind].id}_{$order.ID}" class="doc_link">
|
| 1316 |
lars |
1597 |
{$order.dokumente[d_ind].name|basename} ({$order.dokumente[d_ind].size|fsize_format:'':2:',':'.'})
|
| 1176 |
lars |
1598 |
</a>
|
|
|
1599 |
{/if}
|
|
|
1600 |
{if isset($web_rechte.Warenwirtschaft.bestellung.re_zahhlungsstatusinfo)}
|
| 1316 |
lars |
1601 |
{assign var="capital" value=$order.dokumente[d_ind].name|substr:0:1}
|
| 1176 |
lars |
1602 |
|
|
|
1603 |
{if $capital=="R" || $capital=="G"}
|
|
|
1604 |
{if $capital == "G"}
|
|
|
1605 |
{assign var="r" value="R"}
|
| 1316 |
lars |
1606 |
{assign var="nameOhneErstenBuchstaben" value=$order.dokumente[d_ind].name|substr:1}
|
| 1176 |
lars |
1607 |
{assign var="name" value=$r|cat:$nameOhneErstenBuchstaben}
|
|
|
1608 |
{else}
|
| 1316 |
lars |
1609 |
{assign var="name" value=$order.dokumente[d_ind].name}
|
| 1176 |
lars |
1610 |
{/if}
|
|
|
1611 |
<span id="bezahlstatus_{$rechnung[$name]['rechnungsnummer']}" style="float:right;padding-right:10px;cursor:{if $rechnung[$name]['bezahlstatus']=="offen"}pointer{else if $rechnung[$name]['bezahlstatus']!=""}help{/if};" {if isset($web_rechte.Warenwirtschaft.rechnungsbuch.rechnungsbuch)}ondblclick = "buildSelectBox('{$rechnung[$name]['rechnungsnummer']}','{$rechnung[$name]['bezahlstatus']}');"{/if}
|
|
|
1612 |
|
|
|
1613 |
|
| 1316 |
lars |
1614 |
onmouseover="return overlib('{if isset($web_rechte.Warenwirtschaft.rechnungsbuch.rechnungsbuch)}<b>Doppelklicken zum Bearbeiten</b><br />{/if}{$rechnung[str_replace("G","R",$order.dokumente[d_ind].name)]['bezahlstatus_history']}', CAPTION, '', HAUTO, VAUTO);" onmouseout="return nd();">
|
| 1176 |
lars |
1615 |
{if $rechnung[$name]['bezahlstatus']!=""}
|
|
|
1616 |
{$rechnung[$name]['bezahlstatus']}
|
|
|
1617 |
{/if}
|
|
|
1618 |
</span>
|
|
|
1619 |
<script>
|
|
|
1620 |
$(document).ready(function(){
|
|
|
1621 |
|
|
|
1622 |
$('#layer_bemerkung_{$rechnung[$name]["rechnungsnummer"]}').hide();
|
|
|
1623 |
|
|
|
1624 |
});
|
|
|
1625 |
</script>
|
|
|
1626 |
{/if}
|
|
|
1627 |
|
|
|
1628 |
{/if}
|
|
|
1629 |
</div>
|
|
|
1630 |
<div class="zweiteZelle noprint">
|
| 1365 |
lars |
1631 |
{if isset($user_rechte.Warenwirtschaft.bestellung.dokument_delete) && $order.dokumente[d_ind].deletable}
|
| 2048 |
lars |
1632 |
{html_image file="/backend/dokumente/gfx/delete_record.gif" onclick="{$order.dokumente[d_ind].del_document}" border="0" style="cursor:pointer" class="noprint"}
|
| 1176 |
lars |
1633 |
{/if}
|
|
|
1634 |
</div>
|
|
|
1635 |
<div class="dritteZelle noprint">
|
|
|
1636 |
{if isset($user_rechte.Warenwirtschaft.bestellung.dokument_add)}
|
| 2048 |
lars |
1637 |
{html_image file="/backend/dokumente/gfx/add.gif" onclick="{$order.dokumente[d_ind].add_document}" border="0" style="cursor:pointer" class="noprint"}
|
| 1176 |
lars |
1638 |
{/if}
|
|
|
1639 |
</div>
|
|
|
1640 |
<div class="vierteZelle">
|
| 1316 |
lars |
1641 |
{$order.dokumente[d_ind].date|date_format:"d.m.Y"}
|
|
|
1642 |
um: {$order.dokumente[d_ind].date|date_format:"H:i:s"}
|
| 1176 |
lars |
1643 |
</div>
|
|
|
1644 |
<div class="fuenfteZelle">
|
| 1316 |
lars |
1645 |
{$order.dokumente[d_ind].author|default:" "}
|
| 1176 |
lars |
1646 |
</div>
|
|
|
1647 |
</div>
|
|
|
1648 |
</div>
|
|
|
1649 |
</td>
|
|
|
1650 |
</tr>
|
|
|
1651 |
|
|
|
1652 |
{sectionelse}
|
|
|
1653 |
{if isset($user_rechte.Warenwirtschaft.bestellung.dokument_add)}
|
|
|
1654 |
<tr class="noprint">
|
|
|
1655 |
<td class="links">Dokument</td>
|
| 1279 |
lars |
1656 |
<td class="rechts" colspan="2">
|
| 1176 |
lars |
1657 |
{if $order.status!='storniert'}
|
|
|
1658 |
<a onclick="{$daten.add_document}" style="cursor:pointer;" href="#">
|
| 2048 |
lars |
1659 |
{html_image file="/backend/dokumente/gfx/add.gif" onclick="{$daten.add_document}" border="0" style="cursor:pointer"}Datei anhängen
|
| 1176 |
lars |
1660 |
</a>
|
|
|
1661 |
{/if}
|
|
|
1662 |
</td>
|
|
|
1663 |
</tr>
|
|
|
1664 |
{/if}
|
|
|
1665 |
{/section}
|
|
|
1666 |
{/if}
|
|
|
1667 |
<tr>
|
|
|
1668 |
<td class="links noprint">Bestellt:</td>
|
| 1279 |
lars |
1669 |
<td class="rechts" colspan="2">
|
| 1176 |
lars |
1670 |
<span class="print">Bestellt: </span>
|
|
|
1671 |
{$order.erstellt_am|date_format:"d.m.Y"}
|
|
|
1672 |
um: {$order.erstellt_am|date_format:"H:i:s"}
|
|
|
1673 |
</td>
|
|
|
1674 |
</tr>
|
|
|
1675 |
|
|
|
1676 |
<tr id="erstellt_von_row"{if !$order.erstellt_von}style="display:none;"{/if}>
|
|
|
1677 |
<td class="links noprint">Erstbearbeiter:</td>
|
| 1279 |
lars |
1678 |
<td class="rechts" id="erstellt_von" colspan="2">
|
| 1176 |
lars |
1679 |
<span class="print">Erstbearbeiter: </span>
|
|
|
1680 |
{$order.erstellt_von}
|
|
|
1681 |
</td>
|
|
|
1682 |
</tr>
|
|
|
1683 |
<tr>
|
| 1363 |
lars |
1684 |
<td class="links noprint">letzte Änderung:</td>
|
| 1279 |
lars |
1685 |
<td class="rechts" id="letzte_Aenderung" colspan="2">
|
| 1363 |
lars |
1686 |
<span class="print">letzte Änderung: </span>
|
| 1203 |
lars |
1687 |
{$order.letzte_aenderung_am|date_format:"d.m.Y"}
|
|
|
1688 |
um: {$order.letzte_aenderung_am|date_format:"H:i:s"}
|
|
|
1689 |
von: {$order.letzte_aenderung_von}
|
| 1176 |
lars |
1690 |
</td>
|
|
|
1691 |
</tr>
|
|
|
1692 |
{if isset($web_rechte.admin.toolbox.logbuch)}
|
|
|
1693 |
<tr class="noprint">
|
| 1363 |
lars |
1694 |
<td class="links">Änderungsprotokoll</td>
|
| 1279 |
lars |
1695 |
<td id="logbuch" class="rechts" colspan="2">
|
| 1176 |
lars |
1696 |
<a href="/toolbox/logbuch.php?mode=bestellung&id={$order.ID}" target="logbuch">anzeigen</a>
|
|
|
1697 |
</td>
|
|
|
1698 |
</tr>
|
|
|
1699 |
{/if}
|
|
|
1700 |
{if $order.status!='storniert'}
|
|
|
1701 |
<!-- START BUTTONLEISTE UNTEN -->
|
|
|
1702 |
<tr class="noprint">
|
|
|
1703 |
<td class="links" colspan="3" align="right">
|
|
|
1704 |
{foreach $daten.buttons as $button}
|
|
|
1705 |
<input type="{$button.type}" value="{$button.value}" onclick="{$button.onClick}" class="{$button.class}"/>
|
|
|
1706 |
{/foreach}
|
|
|
1707 |
<div> </div>
|
|
|
1708 |
{if isset($user_rechte.Warenwirtschaft.bestellung.gutscheinbutton)}
|
|
|
1709 |
<div>
|
|
|
1710 |
<input type="button" id="gutscheinErstellen" value="Gutschein erstellen"/>
|
|
|
1711 |
</div>
|
|
|
1712 |
<script>
|
|
|
1713 |
$(document).ready(function(){
|
|
|
1714 |
$("#gutscheinErstellen").click(function(){
|
|
|
1715 |
$("<div id='dialogGutschein'>").dialog({
|
|
|
1716 |
title: "Gutschein erstellen",
|
|
|
1717 |
position: "center top",
|
|
|
1718 |
zIndex: 5,
|
|
|
1719 |
|
|
|
1720 |
open: function() {
|
|
|
1721 |
$(this).load('/marketing/gutscheine.php?action=add&ref=bestellung&shopID={$order.shops_ID}&b_id={$order.ID}');
|
|
|
1722 |
},
|
|
|
1723 |
close: function() {
|
|
|
1724 |
$(this).dialog('destroy').remove();
|
|
|
1725 |
},
|
|
|
1726 |
buttons:{
|
|
|
1727 |
"Speichern und versenden": function(){
|
|
|
1728 |
data = $("#createGutschein").serialize();
|
|
|
1729 |
$.ajax({
|
|
|
1730 |
type: "POST",
|
|
|
1731 |
url : "/marketing/gutscheine.php",
|
|
|
1732 |
data: data
|
|
|
1733 |
}).done(function(gutscheinID){
|
|
|
1734 |
{if $site==$site_full}
|
|
|
1735 |
{if isset($user_rechte.Warenwirtschaft.bestellung.html_editor)}
|
|
|
1736 |
$("#bemerkung_ifr").contents().find('#tinymce').html("Guschein erstellt und gemailt am {$smarty.now|date_format:'d.m.Y'} um {$smarty.now|date_format:'H:i'} durch {$smarty.server.PHP_AUTH_USER}\n");
|
|
|
1737 |
{else}
|
|
|
1738 |
$('#bemerkung').html("Guschein erstellt und gemailt am {$smarty.now|date_format:'d.m.Y'} um {$smarty.now|date_format:'H:i'} durch {$smarty.server.PHP_AUTH_USER}\n");
|
|
|
1739 |
{/if}
|
|
|
1740 |
var data = [];
|
|
|
1741 |
var mailto;
|
|
|
1742 |
mailto= "{$order.E_Mail}";
|
|
|
1743 |
//data.push({ name: "action", value: "Gutscheinversand" });
|
|
|
1744 |
data.push({ name: "mailto", value: mailto });
|
|
|
1745 |
$.ajax({
|
|
|
1746 |
type: "POST",
|
| 2048 |
lars |
1747 |
url : "/backend/MailClient?id=0&Bestellung={$order.ID}&shop={$order.shops_ID}&button=Mailausgang",
|
| 1176 |
lars |
1748 |
data: data,
|
|
|
1749 |
success: function(){
|
|
|
1750 |
$("#dialogGutschein").dialog('destroy').remove();
|
|
|
1751 |
$('#cur').click();
|
|
|
1752 |
}
|
|
|
1753 |
})
|
|
|
1754 |
{else}
|
|
|
1755 |
$("#dialogGutschein").dialog('destroy').remove();
|
|
|
1756 |
$('#cur').click();
|
|
|
1757 |
{/if}
|
|
|
1758 |
|
|
|
1759 |
});
|
|
|
1760 |
},
|
|
|
1761 |
"Schliessen": function(){
|
|
|
1762 |
$("#dialogGutschein").dialog('destroy').remove();
|
|
|
1763 |
$('#cur').click();
|
|
|
1764 |
}
|
|
|
1765 |
},
|
|
|
1766 |
width: "70%",
|
|
|
1767 |
maxWidth: "500px",
|
|
|
1768 |
})
|
|
|
1769 |
})
|
|
|
1770 |
})
|
|
|
1771 |
</script>
|
|
|
1772 |
{/if}
|
|
|
1773 |
<div>
|
|
|
1774 |
{if isset($user_rechte.Warenwirtschaft.bestellung.refund)}
|
|
|
1775 |
{if $order.kk_info}
|
| 1372 |
lars |
1776 |
<input type="button" style="cursor:pointer" class="refund" title="Betrag über {$order.kk_info.anbieter} erstatten" value="{$order.kk_info.anbieter} Rückzahlung"/>
|
| 1176 |
lars |
1777 |
{/if}
|
|
|
1778 |
{/if}
|
|
|
1779 |
{if isset($user_rechte.Warenwirtschaft.bestellung.online_retoure)}
|
|
|
1780 |
{foreach $logistiker_retoure as $row}
|
|
|
1781 |
{if $row.returnlink}
|
|
|
1782 |
<input type="button" onclick="window.open('{$row.returnlink}');$('#bemerkung').append('{$row.kname} ONLINE-Retoure am {$smarty.now|date_format:'d.m.Y'} um {$smarty.now|date_format:'H:i'} durch {$smarty.server.PHP_AUTH_USER}\n');$('#cur').click();return false;" value="{$row.kname} ONLINE Retoure"/>
|
|
|
1783 |
{/if}
|
|
|
1784 |
{/foreach}
|
|
|
1785 |
{/if}
|
|
|
1786 |
</div>
|
|
|
1787 |
<div style="clear:both;float:none;"> </div>
|
|
|
1788 |
<fieldset style="float:right; padding:0px; border:none;">
|
|
|
1789 |
<legend>Speichern und ...</legend>
|
|
|
1790 |
<input type="submit" name="update[current]" id="cur" value="... nur speichern" />
|
| 1314 |
lars |
1791 |
<input type="submit" name="update[prev]" value="... zurück" class="prevOrder"/>
|
| 1363 |
lars |
1792 |
<input type="submit" name="update[list]" value="... zur Übersicht" />
|
| 1176 |
lars |
1793 |
<input type="submit" name="update[next]" value="... weiter" class="nextOrder"/>
|
| 1459 |
lars |
1794 |
<input type="hidden" name="anker" value="{$order.id}"/>
|
| 1176 |
lars |
1795 |
</fieldset>
|
|
|
1796 |
<div style="clear:both;">
|
| 1314 |
lars |
1797 |
<input type="reset" value="Zurücksetzen"/>
|
| 1176 |
lars |
1798 |
</div>
|
|
|
1799 |
{if isset($user_rechte.Warenwirtschaft.bestellung.steuersatz_aendern) && isset($laenderMwSt)}
|
| 1295 |
lars |
1800 |
<input name="button" type="button" value="Steuersatz ändern" class="changeMwSt"/>
|
| 1176 |
lars |
1801 |
{/if}
|
|
|
1802 |
{if ( isset($user_rechte.Warenwirtschaft.bestellung.termin) )}
|
|
|
1803 |
<input name="button" type="button" onclick="systemtermin('Bestellung {$order.ID} vom {$order.letzte_Aenderung_am|date_format:"d.m.Y"}')" value="Termin"/>
|
|
|
1804 |
{/if}
|
|
|
1805 |
|
|
|
1806 |
|
|
|
1807 |
{if isset($user_rechte.Warenwirtschaft.best_manu.kundenauftrag_drucken)}
|
|
|
1808 |
<input name="button" type="button" onclick="kundenauftrag_drucken({$order.ID});" value="Auftrag drucken"/>
|
|
|
1809 |
{/if}
|
|
|
1810 |
|
|
|
1811 |
<div><br/></div>
|
|
|
1812 |
|
|
|
1813 |
|
|
|
1814 |
|
|
|
1815 |
{if isset($user_rechte.Warenwirtschaft.bestellung.proforma_rechnung)}
|
|
|
1816 |
<input type="button" onclick="window.open('rechnung_v2.php?b_id={$order.ID}&proforma_rechnung=1')" value="Proforma-Rechnung drucken" />
|
|
|
1817 |
{/if}
|
|
|
1818 |
{if isset($user_rechte.Warenwirtschaft.bestellung.rechnung)}
|
|
|
1819 |
<input type="button" onclick="window.open('{if $rechnung_v2}rechnung_v2.php{else}rechnung.php{/if}?b_id={$order.ID}&action=rechnungDrucken&verandAuswaehlen=1')" value="Rechnung drucken" />
|
|
|
1820 |
{/if}
|
|
|
1821 |
{if isset($user_rechte.Warenwirtschaft.bestellung.lieferschein)}
|
|
|
1822 |
<input type="button" onclick="window.open('lieferschein.php?b_id={$order.ID}')" value="Lieferschein drucken" />
|
|
|
1823 |
{/if}
|
|
|
1824 |
{if isset($user_rechte.Warenwirtschaft.bestellung.drucken)}
|
|
|
1825 |
<input type="button" onclick="window.open('auftrag.php?b_id={$order.ID}')" value="Auftrag drucken" />
|
|
|
1826 |
{/if}
|
|
|
1827 |
{if isset($user_rechte.Warenwirtschaft.bestellung.angebot)}
|
|
|
1828 |
<input type="button" onclick="window.open('angebot.php?b_id={$order.ID}')" value="Angebot drucken" />
|
|
|
1829 |
{/if}
|
|
|
1830 |
{if isset($user_rechte.Warenwirtschaft.bestellung.billsafe)}
|
|
|
1831 |
<input type="button" class="billsafe_phone" value="per Billsafe bezahlen" id="billsafe_phone_{$order.ID}_{$order.shops_ID}"/>
|
|
|
1832 |
{/if}
|
|
|
1833 |
{if isset($web_rechte.Warenwirtschaft.bestellung.kommissionierungskontrolle )}
|
|
|
1834 |
<input type="button" class="kommissionierungskontrolle" value="Kommissionierungskontrolle" id="kommissionierungskontrolle_{$order.ID}_{$order.shops_ID}" />
|
|
|
1835 |
{/if}
|
|
|
1836 |
{if $bestellarten && $order.Bestellart|stristr:"ebay"}
|
|
|
1837 |
<input type="button" class="vportalstorno" value="eBay Stornierung" id="vportalstorno" />
|
|
|
1838 |
{/if}
|
|
|
1839 |
<div><br/></div>
|
|
|
1840 |
|
|
|
1841 |
{if isset($user_rechte.Warenwirtschaft.bestellung.bestconect)}
|
|
|
1842 |
<input type="hidden" name="b_id" value="{$order.ID}"/>
|
|
|
1843 |
<input type="text" name="b_id_neu" value=""/>
|
|
|
1844 |
<input type="hidden" name="mode" value="combine"/>
|
|
|
1845 |
<input name="button" type="submit" value="Bestellpositionen verschieben"/>
|
|
|
1846 |
{/if}
|
|
|
1847 |
|
|
|
1848 |
<div><br/></div>
|
|
|
1849 |
|
| 1358 |
lars |
1850 |
<!--MK: Dialog Rechnung löschen -->
|
| 1295 |
lars |
1851 |
<div id="dialog" title="Rechnung löschen">
|
| 1176 |
lars |
1852 |
|
|
|
1853 |
<table width="100%">
|
|
|
1854 |
{assign var="rechnungExists" value=0}
|
| 1316 |
lars |
1855 |
{section loop=$order.dokumente name=d_ind}
|
|
|
1856 |
{assign var="capital" value=$order.dokumente[d_ind].name|substr:0:1}
|
|
|
1857 |
{assign var="name" value="."|explode:$order.dokumente[d_ind].name}
|
| 1176 |
lars |
1858 |
<!--ME: speichern, ob Rechnung exisiert -->
|
|
|
1859 |
{if $capital=="R"}
|
|
|
1860 |
{assign var="rechnungExists" value=1}
|
|
|
1861 |
{/if}
|
|
|
1862 |
{if $capital == 'R'}
|
|
|
1863 |
<tr class="links">
|
|
|
1864 |
<td width="60%">
|
|
|
1865 |
|
| 1316 |
lars |
1866 |
<span class="unread_docs_helper" id="unread_docs_{$order.ID}_{$order.dokumente[d_ind].id}_helper"></span>
|
|
|
1867 |
{html_image file=$order.dokumente[d_ind].icon alt="Dateityp: {$order.dokumente[d_ind].type}"}
|
|
|
1868 |
<a href="{$daten.dokPath}{$order.dokumente[d_ind].name}" target="_blank" id="doc_link_{$order.dokumente[d_ind].id}_{$order.ID}" class="doc_link">
|
|
|
1869 |
{$order.dokumente[d_ind].name|basename} ({$order.dokumente[d_ind].size|fsize_format:'':2:',':'.'})
|
| 1176 |
lars |
1870 |
</a>
|
|
|
1871 |
</td>
|
|
|
1872 |
<td width="3%">
|
|
|
1873 |
|
| 2048 |
lars |
1874 |
{html_image file="/backend/dokumente/gfx/delete_record.gif" onclick="setzeTermin(\"{$name[0]}\",{$order.ID})" border="0" style="cursor:pointer" id="{$order.dokumente[d_ind].id}" class="deleteRechnung"}
|
| 1176 |
lars |
1875 |
</td>
|
|
|
1876 |
</tr>
|
|
|
1877 |
{/if}
|
|
|
1878 |
{/section}
|
|
|
1879 |
</table>
|
|
|
1880 |
<div id="response"></div>
|
|
|
1881 |
</div>
|
|
|
1882 |
<!--MK: Webrecht gesetzt & Rechnung vorhanden? -->
|
|
|
1883 |
{if isset($web_rechte.Warenwirtschaft.bestellung.rechnungsstorno_button) && ($capital == 'R')}
|
| 1295 |
lars |
1884 |
<button id="opener">Rechnung löschen</button>
|
| 1176 |
lars |
1885 |
{/if}
|
|
|
1886 |
|
|
|
1887 |
|
|
|
1888 |
<!-- ME: Bestellung stornieren START -->
|
|
|
1889 |
{if isset($user_rechte.Warenwirtschaft.bestellung.bestellstorno)}
|
|
|
1890 |
|
|
|
1891 |
{if $bestellungen[b_ind].status!='storniert'}
|
|
|
1892 |
<input class="bestellstorno" type="button" id="storno_{$order.ID}" value="Bestellung stornieren" />
|
|
|
1893 |
{/if}
|
|
|
1894 |
{/if}
|
|
|
1895 |
<!-- ME: Bestellung stornieren START -->
|
|
|
1896 |
|
|
|
1897 |
|
| 1358 |
lars |
1898 |
<!--ME: wenn Rechnungen existieren, darf die Bestellung nicht gelöscht werden können -->
|
| 1176 |
lars |
1899 |
{if $rechnungExists!=1}
|
|
|
1900 |
{if isset($user_rechte.Warenwirtschaft.bestellung.loeschen2)}
|
| 1295 |
lars |
1901 |
<input type="submit" name="delete2" value="Nur Bestellung löschen" onclick="return confirm('Wollen sie diese Bestellung wirklich löschen?')"/>
|
| 1176 |
lars |
1902 |
{/if}
|
|
|
1903 |
{if isset($user_rechte.Warenwirtschaft.bestellung.loeschen)}
|
| 1295 |
lars |
1904 |
<input type="submit" name="delete" value="Bestellung + Kundendaten löschen" onclick="return confirm('Wollen sie diese Bestellung und die dazugehörigen Kundendaten wirklich löschen?')"/>
|
| 1176 |
lars |
1905 |
{/if}
|
|
|
1906 |
{/if}
|
|
|
1907 |
{assign var=kk value=false}
|
|
|
1908 |
{assign var=rufname value=$versand_name|lower}
|
|
|
1909 |
{assign var=status value=$order.kk_info.status|lower}
|
|
|
1910 |
{if $rufname == "kreditkarte" && $status == "offen"}
|
|
|
1911 |
{assign var=kk value=true}
|
|
|
1912 |
{/if}
|
|
|
1913 |
{if isset($user_rechte.Warenwirtschaft.bestellung["kk-zahlung"])}
|
|
|
1914 |
{if $kk}
|
|
|
1915 |
<input type="hidden" name="shops_ID" value="{$order.shops_ID}"/>
|
|
|
1916 |
<div><br/></div>
|
|
|
1917 |
{if $web_settings[$order.shops_ID][119] == "saferpay"}
|
|
|
1918 |
<input type="hidden" name="orderid" value="{$order.ID}"/>
|
|
|
1919 |
<input type="hidden" name="kk_info" value="{$order.kk_info.code}"/>
|
|
|
1920 |
{elseif $web_settings[$order.shops_ID][119] == "acceptance"}
|
|
|
1921 |
<input type="hidden" name="orderid" value="{$order.ID}"/>
|
|
|
1922 |
<input type="hidden" name="amount" value="{$order.kk_summe}"/>
|
|
|
1923 |
<input type="hidden" name="currency" value="EUR"/>
|
|
|
1924 |
<input type="hidden" name="language" value="de_DE"/>
|
|
|
1925 |
{/if}
|
|
|
1926 |
<input type="hidden" name="operation" value="SAS"/>
|
|
|
1927 |
<input name="anfordern" type="submit" value="Zahlung anfordern"/>
|
|
|
1928 |
{/if}
|
|
|
1929 |
{/if}
|
|
|
1930 |
{if isset($user_rechte.Warenwirtschaft.bestellung.gutscheinbutton) && $gs}
|
|
|
1931 |
<input type="button" value="Gutschein erstellen" id="gen_gutschein"/>
|
|
|
1932 |
</td>
|
|
|
1933 |
{/if}
|
|
|
1934 |
</tr>
|
|
|
1935 |
<!-- ENDE BUTTONLEISTE UNTEN -->
|
|
|
1936 |
{/if}
|
|
|
1937 |
</table>
|
|
|
1938 |
<br/>
|
|
|
1939 |
<div id="gutschein_meldung"></div>
|
|
|
1940 |
</form>
|
|
|
1941 |
|
|
|
1942 |
{if isset($web_rechte.Warenwirtschaft.rechnungsbuch.rechnungsbuch) && isset($web_rechte.Warenwirtschaft.bestellung.re_zahhlungsstatusinfo)}
|
| 1316 |
lars |
1943 |
{section loop=$order.dokumente name=d_ind}
|
|
|
1944 |
{assign var="capital" value=$order.dokumente[d_ind].name|substr:0:1}
|
| 1176 |
lars |
1945 |
{if $capital == "R" || $capital == "G"}
|
|
|
1946 |
{if $capital == "G"}
|
|
|
1947 |
{assign var="r" value="R"}
|
| 1316 |
lars |
1948 |
{assign var="nameOhneErstenBuchstaben" value=$order.dokumente[d_ind].name|substr:1}
|
| 1176 |
lars |
1949 |
{assign var="name" value=$r|cat:$nameOhneErstenBuchstaben}
|
|
|
1950 |
{else}
|
| 1316 |
lars |
1951 |
{assign var="name" value=$order.dokumente[d_ind].name}
|
| 1176 |
lars |
1952 |
{/if}
|
|
|
1953 |
|
|
|
1954 |
<div class="layer_bemerkung" id="layer_bemerkung_{$rechnung[$name]['rechnungsnummer']}">
|
|
|
1955 |
<form method="get" action="{$SCRIPT_NAME}">
|
|
|
1956 |
<div style="float:left;">
|
| 1372 |
lars |
1957 |
<!--MK 22.01.13 Zeigt chekbox für bestellungstatus bezahlt an: onchange -->
|
| 1176 |
lars |
1958 |
<select name="bezahlstatus" id="bezahlstatus" onchange="
|
|
|
1959 |
bezahlt(this.form.bezahlstatus.options[this.form.bezahlstatus.selectedIndex].value);
|
|
|
1960 |
return clearDate('bezahlstatus_datum_{$rechnung[$name]['rechnungsnummer']}',this.value,'{$rechnung[$name]['bezahlt_am']|date_format:"d.m.Y"}');">
|
|
|
1961 |
<option value="none">keine Auswahl</option>
|
|
|
1962 |
<option value="offen">offen</option>
|
|
|
1963 |
<option value="bezahlt" selected="selected">bezahlt</option>
|
|
|
1964 |
<option value="storniert">storniert</option>
|
|
|
1965 |
</select>
|
|
|
1966 |
|
|
|
1967 |
</div>
|
|
|
1968 |
|
|
|
1969 |
<div style="float:left;padding:0 0 0 10px;">
|
|
|
1970 |
|
|
|
1971 |
<label for="bezahlstatus_datum">Datum:</label>
|
|
|
1972 |
<input class="datum_input" onfocus="current_value=this.value;if (this.value=='') { this.value=today(); };this.select();" onchange="this.value=check_Date(this.value)" type="text" name="bezahlstatus_datum" value="{$rechnung[$name]['bezahlt_am']|date_format:"d.m.Y"}" id="bezahlstatus_datum_{$rechnung[$name]['rechnungsnummer']}" />
|
|
|
1973 |
|
|
|
1974 |
|
|
|
1975 |
</div>
|
|
|
1976 |
<br /><br />
|
|
|
1977 |
|
| 1295 |
lars |
1978 |
<div id="bezahlt" class="box"><input type="checkbox" name="bestellungbezahltstatus" value="bezahlt" checked="true"/>Soll die zugehörige Bestellung auf bezahlt gesetzt werden?</div>
|
| 1176 |
lars |
1979 |
<input type="hidden" name="bid" value="{$order.ID}" />
|
|
|
1980 |
<br /><br />
|
|
|
1981 |
|
|
|
1982 |
<input type="hidden" name="rid" value="{$rechnung[$name]['rechnungsnummer']}" />
|
|
|
1983 |
Aktueller Bemerkungstext:<p style="margin:0px;font-style:italic;">{$rechnung[$name]['bezahlt_bemerkung']}</p>
|
|
|
1984 |
<textarea id="bezahlstatus_bemerkung" name="bezahlstatus_bemerkung" cols="40" rows="5"></textarea><br /><br />
|
|
|
1985 |
|
|
|
1986 |
<input type="hidden" name="action" value="save_bezahlstatus" />
|
|
|
1987 |
<input type="submit" value="Bemerkung speichern" />
|
|
|
1988 |
</form>
|
|
|
1989 |
</div>
|
|
|
1990 |
{/if}
|
|
|
1991 |
{/section}
|
|
|
1992 |
<script>
|
|
|
1993 |
|
|
|
1994 |
|
|
|
1995 |
$(function(){
|
|
|
1996 |
$('.datum_input').datepicker();
|
|
|
1997 |
|
|
|
1998 |
});
|
|
|
1999 |
|
|
|
2000 |
function buildSelectBox(rid,currStatus) {
|
|
|
2001 |
$('#layer_bemerkung_'+rid).dialog({
|
|
|
2002 |
title:'Bezahlstatus/Bemerkung: '+rid,
|
|
|
2003 |
width:400,
|
|
|
2004 |
});
|
|
|
2005 |
}
|
|
|
2006 |
function bezahlt(wert){
|
|
|
2007 |
var i = wert;
|
|
|
2008 |
if(i=="bezahlt")
|
|
|
2009 |
{
|
|
|
2010 |
$(".box").css('display','block');
|
|
|
2011 |
}
|
|
|
2012 |
else
|
|
|
2013 |
{
|
|
|
2014 |
$(".box").css('display','none');
|
|
|
2015 |
}
|
|
|
2016 |
|
|
|
2017 |
}
|
|
|
2018 |
function clearDate(id,val,datum) {
|
|
|
2019 |
if(val=="offen") {
|
|
|
2020 |
$('#'+id).val('');
|
|
|
2021 |
}
|
|
|
2022 |
if(val=="bezahlt" || val=="storniert" || val=="none") {
|
|
|
2023 |
$('#'+id).val(datum);
|
|
|
2024 |
}
|
|
|
2025 |
return true;
|
|
|
2026 |
}
|
|
|
2027 |
</script>
|
|
|
2028 |
{/if}
|
|
|
2029 |
|
|
|
2030 |
{if ( isset( $user_rechte["Warenwirtschaft"]["bestellung"]["lieferantenbestellung"] ) )}
|
| 1372 |
lars |
2031 |
<div id="lagerbestand" title="Lagerbestand für <span id='a_name'></span>">
|
| 1176 |
lars |
2032 |
</div>
|
|
|
2033 |
{/if}
|
|
|
2034 |
|
|
|
2035 |
{if $bestellarten && $order.Bestellart|stristr:"ebay"}
|
|
|
2036 |
<script charset="utf-8">
|
|
|
2037 |
$(document).ready(function(){
|
|
|
2038 |
$( "#vportalstorno" ).click(function(){
|
|
|
2039 |
$("<div id='vportalstornoDialog'>").dialog({
|
|
|
2040 |
width:"80%",
|
|
|
2041 |
open : function(){
|
|
|
2042 |
data = [];
|
|
|
2043 |
data.push({ name: "bestellID", value: {$order.ID} });
|
|
|
2044 |
data.push({ name: "bestellartID", value: {$order.bestellart_id} });
|
|
|
2045 |
$(this).load("vportal_stornierung.php", data);
|
|
|
2046 |
},
|
|
|
2047 |
close : function(){
|
|
|
2048 |
$('#vportalstornoDialog').empty().remove();
|
|
|
2049 |
},
|
|
|
2050 |
buttons : {
|
| 1371 |
lars |
2051 |
"Schließen" : function(){
|
| 1176 |
lars |
2052 |
$('#vportalstornoDialog').empty().remove();
|
|
|
2053 |
},
|
|
|
2054 |
"Senden" : function(){
|
|
|
2055 |
|
|
|
2056 |
}
|
|
|
2057 |
}
|
|
|
2058 |
});
|
|
|
2059 |
});
|
|
|
2060 |
});
|
|
|
2061 |
</script>
|
|
|
2062 |
{/if}
|
|
|
2063 |
|
|
|
2064 |
{if isset($user_rechte.Warenwirtschaft.bestellung.steuersatz_aendern) && isset($laenderMwSt)}
|
|
|
2065 |
<script>
|
|
|
2066 |
$(document).ready(function(){
|
|
|
2067 |
$( ".eingabe_landMwSt" ).change(function(){
|
|
|
2068 |
var mwst = $(this).val();
|
|
|
2069 |
var id = $(this).attr("id");
|
|
|
2070 |
id = id.split("_");
|
|
|
2071 |
var artikelID = id[1];
|
|
|
2072 |
|
|
|
2073 |
$.ajax({
|
|
|
2074 |
type: "GET",
|
| 1371 |
lars |
2075 |
url: "/order/update/?mwstArtikel="+mwst+"&artikelID="+artikelID+"&id={$order.ID}",
|
| 1176 |
lars |
2076 |
}).done(function( html ){
|
|
|
2077 |
alert( html );
|
|
|
2078 |
});
|
|
|
2079 |
});
|
|
|
2080 |
});
|
|
|
2081 |
</script>
|
|
|
2082 |
<div id="changeMwStDialog">
|
|
|
2083 |
<script>
|
|
|
2084 |
$(document).ready(function(){
|
|
|
2085 |
$( ".landMwSt" ).change(function(){
|
|
|
2086 |
var mwst = $(this).val();
|
|
|
2087 |
$(".mwstLand").val(mwst);
|
|
|
2088 |
});
|
|
|
2089 |
});
|
|
|
2090 |
</script>
|
|
|
2091 |
<select name="landMwSt" class="landMwSt">
|
|
|
2092 |
{foreach $laenderMwSt as $index => $laenderDaten}
|
|
|
2093 |
<option id="{$laenderDaten["id"]}" value="{$laenderDaten["mwst_satz"]}" {if $order.artikel[0].mwst == $laenderDaten["mwst_satz"]}selected{/if}>{$laenderDaten["bezeichnung"]}</option>
|
|
|
2094 |
{/foreach}
|
|
|
2095 |
</select>
|
|
|
2096 |
<input type="hidden" value="{$laenderDaten["mwst_satz"]}" class="mwstLand"/>
|
|
|
2097 |
</div>
|
|
|
2098 |
{/if}
|
|
|
2099 |
{if isset($user_rechte.Warenwirtschaft.logistiker.tracking_input)}
|
| 1372 |
lars |
2100 |
<div id="add_tracking_nr" title="Eine Paketverfolgungsnummer hinzufügen">
|
| 1176 |
lars |
2101 |
<form id="add_tracking_nr_form">
|
|
|
2102 |
<table>
|
|
|
2103 |
<tr>
|
|
|
2104 |
<td class="links">Trackingnummer</td>
|
|
|
2105 |
<td class="rechts">
|
|
|
2106 |
<input type="text" name="tracking_nr"/>
|
|
|
2107 |
</td>
|
|
|
2108 |
</tr>
|
|
|
2109 |
<tr>
|
|
|
2110 |
<td class="links">Logistiker:</td>
|
|
|
2111 |
<td class="rechts">
|
|
|
2112 |
{html_options id="logistiker_id_dlg" name="logistiker_id" options=$logistiker selected=$logistiker_sel}
|
|
|
2113 |
</td>
|
|
|
2114 |
</tr>
|
|
|
2115 |
<tr>
|
|
|
2116 |
<td class="links">Datum:</td>
|
|
|
2117 |
<td class="rechts">
|
|
|
2118 |
<input type="text" name="datum" value="{$smarty.now|date_format:"d.m.Y"}" id="datum"/>
|
|
|
2119 |
</td>
|
|
|
2120 |
</tr>
|
|
|
2121 |
</table>
|
|
|
2122 |
<input type="hidden" name="bestell_id" value="{$order.ID}"/>
|
|
|
2123 |
<br />
|
|
|
2124 |
<input type="submit" value="Trackingnummer speichern und schliessen" id="send_tracking"/>
|
|
|
2125 |
<br /> <br />
|
|
|
2126 |
</form>
|
|
|
2127 |
</div>
|
|
|
2128 |
|
|
|
2129 |
{/if}
|
|
|
2130 |
|
|
|
2131 |
|
|
|
2132 |
|
|
|
2133 |
<div id="ajax" style="display:none;"></div>
|
|
|
2134 |
|
|
|
2135 |
|
|
|
2136 |
{if $path}
|
|
|
2137 |
<script type="text/javascript">
|
|
|
2138 |
|
|
|
2139 |
window.open("{$path}?shops_ID={$order.shops_ID}&bestell_id={$order.ID}","PopUp","width=1000,height=800,scrollbars=yes,resizable=yes");
|
|
|
2140 |
|
|
|
2141 |
</script>
|
|
|
2142 |
{/if}
|
|
|
2143 |
<script>
|
|
|
2144 |
$(document).ready(function(){
|
|
|
2145 |
$('#vertrag_oeffnen').click(function(){
|
| 1373 |
lars |
2146 |
var path = '/backend/verleih/leihvorlage/{$webs.domain}';
|
| 1176 |
lars |
2147 |
window.open(path+"?shops_ID={$order.shops_ID}&bestell_id={$order.ID}","PopUp","width=1000,height=800,scrollbars=yes,resizable=yes");
|
|
|
2148 |
});
|
|
|
2149 |
});
|
|
|
2150 |
</script>
|
|
|
2151 |
|
|
|
2152 |
|
| 1184 |
lars |
2153 |
{if isset($web_rechte.Warenwirtschaft.bestellung.kundenbemerkung_layer) && ($order.AP_Bemerkung||$order.shipAddr.comment)}
|
| 1176 |
lars |
2154 |
<div id="kundenbemerkung_layer" title="Kundenbemerkung">
|
| 1184 |
lars |
2155 |
{if $order.shipAddr.comment}
|
|
|
2156 |
{$order.shipAddr.comment|nl2br}
|
| 1176 |
lars |
2157 |
{else}
|
|
|
2158 |
{$order.AP_Bemerkung|nl2br}
|
|
|
2159 |
{/if}
|
|
|
2160 |
</div>
|
|
|
2161 |
{/if}
|
|
|
2162 |
{if $order.notiz}
|
|
|
2163 |
<div id="notizDlg" title="Kundenbemerkung">
|
|
|
2164 |
{$order.notiz}
|
|
|
2165 |
</div>
|
|
|
2166 |
{/if}
|
|
|
2167 |
{if $order.mwst_befreiung=="on"}
|
|
|
2168 |
<div id="ustid_layer" title="Steuerinformation">
|
|
|
2169 |
ACHTUNG: Kunde ist von der Mehrwertsteuer befreit!
|
|
|
2170 |
<br />
|
|
|
2171 |
Umsatzsteuer-ID: {$order.ustid_nr}
|
|
|
2172 |
</div>
|
|
|
2173 |
{/if}
|
|
|
2174 |
|
|
|
2175 |
|
|
|
2176 |
{if isset( $user_rechte.Warenwirtschaft.bestellung.bestellstorno)}
|
|
|
2177 |
<script>
|
|
|
2178 |
// ME: bestellstorno dialog
|
|
|
2179 |
$(function() {
|
|
|
2180 |
$( "#bestellstorno_dlg" ).dialog({
|
|
|
2181 |
autoOpen: false,
|
|
|
2182 |
show: "clip",
|
|
|
2183 |
hide: "scale",
|
|
|
2184 |
minWidth: 600,
|
|
|
2185 |
resize:false,
|
|
|
2186 |
title:'Bestellung stornieren',
|
|
|
2187 |
buttons:{
|
|
|
2188 |
Stornieren: function(){
|
|
|
2189 |
$('#storno_form').submit();
|
|
|
2190 |
},
|
|
|
2191 |
Abbrechen: function() {
|
|
|
2192 |
$(this).dialog("close");
|
|
|
2193 |
}
|
|
|
2194 |
}
|
|
|
2195 |
});
|
|
|
2196 |
$( ".bestellstorno" ).click(function() {
|
|
|
2197 |
$( "#bestellstorno_dlg" ).dialog( "open" );
|
|
|
2198 |
return false;
|
|
|
2199 |
});
|
|
|
2200 |
});
|
|
|
2201 |
|
|
|
2202 |
|
|
|
2203 |
|
|
|
2204 |
</script>
|
|
|
2205 |
<div id="bestellstorno_dlg">
|
| 2048 |
lars |
2206 |
<form action="/backend/order/storno/" method="post" id="storno_form">Bitte geben Sie den Grund der Stornierung ein:
|
| 1176 |
lars |
2207 |
<br/><br/>
|
|
|
2208 |
<textarea cols="50" rows="6" name="stornogrund"></textarea>
|
|
|
2209 |
<input type="hidden" name="action" value="bestellstorno" />
|
|
|
2210 |
<input type="hidden" name="bestellID" value="{$order.ID}" />
|
|
|
2211 |
{if $order.fremd_id && $order.rufname!="online-shop" && $order.rufname!="tel-email"}
|
|
|
2212 |
<input type="hidden" name="fremd_id" value="{$order.fremd_id}" />
|
|
|
2213 |
<input type="hidden" name="vportal" value="0" />
|
|
|
2214 |
<br />
|
|
|
2215 |
<input id="vportal" type="checkbox" name="vportal" value="1" checked="checked" />
|
|
|
2216 |
<label for="vportal">Auch auf {$order.Bestellart} stornieren</label>
|
|
|
2217 |
{if $order.rufname=="idealo"}
|
|
|
2218 |
<select name="grund">
|
|
|
2219 |
<option label="Stornierung druch Kunden" value="1">Stornierung durch Kunden</option>
|
|
|
2220 |
<option label="nicht lieferbar" value="2">nicht lieferbar</option>
|
|
|
2221 |
<option label="Retoure" value="3">Retoure</option>
|
|
|
2222 |
</select>
|
|
|
2223 |
{/if}
|
|
|
2224 |
{/if}
|
|
|
2225 |
</form>
|
|
|
2226 |
</div>
|
|
|
2227 |
{/if}
|
|
|
2228 |
{if isset($user_rechte.Warenwirtschaft.bestellung.billsafe)}
|
| 1372 |
lars |
2229 |
<div id="bs_return" title="Billsafe Rückmeldung"></div>
|
| 1176 |
lars |
2230 |
{/if}
|
|
|
2231 |
|
|
|
2232 |
|
|
|
2233 |
<div id="change_amount_dlg" title="Artikeldaten erfassen">
|
|
|
2234 |
<p>
|
| 1295 |
lars |
2235 |
Hier können Sie den Barcode des zu liefernden<br />
|
| 1176 |
lars |
2236 |
Artikels einlesen und die Daten in die Bestellung eintragen.
|
|
|
2237 |
<br />
|
| 1295 |
lars |
2238 |
Die daraus entstehende Differenz können Sie dann Ihrem Kunden<br />
|
| 1176 |
lars |
2239 |
erstatten oder nachberechnen.
|
|
|
2240 |
<br />
|
| 1372 |
lars |
2241 |
Dazu muss die Bestellung über Paypal, Kreditkarte oder sofortueberweisung bezahlt worden sein.
|
| 1176 |
lars |
2242 |
</p>
|
|
|
2243 |
<form id="change_amount_form" onsubmit="return false;">
|
|
|
2244 |
Barcode: <input type="text" name="barcode" id="barcode" />
|
|
|
2245 |
<input type="hidden" name="ab_id" id="change_ab_id" value=""/>
|
|
|
2246 |
<input type="submit" style="display:none;" id="change_amount_btn" />
|
|
|
2247 |
</form>
|
|
|
2248 |
</div>
|
|
|
2249 |
|
| 1372 |
lars |
2250 |
<div id="labelReturn" title="Rückmeldung von Labeldruck"></div>
|
| 1176 |
lars |
2251 |
<div id="updReturn" title="Ergebnis Bestellupdate"></div>
|
| 1295 |
lars |
2252 |
<div id="delShipmentQuestion" title="Wirklich löschen?">
|
|
|
2253 |
Wollen Sie die Trackingnummer <strong><span id="delTrackNumber"></span></strong> wirklich löschen?<br />
|
| 1371 |
lars |
2254 |
ACHTUNG: Dadurch wird das Versandlabel UNGÜLTIG und muß neu erstellt werden!
|
| 1176 |
lars |
2255 |
<input type="hidden" id="delDokId" />
|
|
|
2256 |
<input type="hidden" id="returnCode" />
|
|
|
2257 |
</div>
|
|
|
2258 |
|
| 1372 |
lars |
2259 |
<div id="VersandDialog" title="Parameter für die Erstellung von Versandetiketten festlegen">
|
| 1176 |
lars |
2260 |
</div>
|
| 1372 |
lars |
2261 |
<div id="refundDlg" title="Erstattung für {$order.kk_info.anbieter} Käufe">
|
| 1176 |
lars |
2262 |
<form id="refundForm">
|
|
|
2263 |
<table>
|
|
|
2264 |
<tr>
|
|
|
2265 |
<td>Bestellnummer</td>
|
|
|
2266 |
<td colspan="2">
|
|
|
2267 |
{$order.ID}
|
|
|
2268 |
<input type="hidden" name="bestell_id" value="{$order.ID}" />
|
|
|
2269 |
</td>
|
|
|
2270 |
</tr>
|
|
|
2271 |
<tr>
|
|
|
2272 |
<td>Betrag</td>
|
|
|
2273 |
<td>
|
|
|
2274 |
<input type="text" name="betrag" value="{$order.gesamtsumme_buffer}" id="refundAmount" />
|
|
|
2275 |
</td>
|
|
|
2276 |
<td>
|
|
|
2277 |
{if $order.kk_info.anbieter=="Amazon"}
|
|
|
2278 |
<span id="amazonRefunded" style="display:none;">{$order.refunded}</span>
|
|
|
2279 |
<span id="amazonMax" style="display:none;">{$order.max}</span>
|
|
|
2280 |
<span id="amazonDiff" style="display:none;">{$order.diff}</span>
|
|
|
2281 |
{$order.refunded|money_format_red} bereits erstattet<br />
|
|
|
2282 |
maximal {$order.max|money_format_red} erstattbar<br />
|
| 1372 |
lars |
2283 |
noch {$order.diff|money_format_red} übrig
|
| 1176 |
lars |
2284 |
<input type="hidden" name="diff" value="{$order.diff}" />
|
|
|
2285 |
<input type="hidden" name="env" value="{$order.kk_info.env}" />
|
|
|
2286 |
{/if}
|
|
|
2287 |
</td>
|
|
|
2288 |
</tr>
|
|
|
2289 |
{if $order.kk_info.anbieter=="Amazon"}
|
|
|
2290 |
<tr>
|
|
|
2291 |
<td>Grund</td>
|
|
|
2292 |
<td>
|
| 1372 |
lars |
2293 |
<textarea name="grund" cols="30" rows="5">Rückzahlung zu Bestellung {$order.ID}.</textarea>
|
| 1176 |
lars |
2294 |
</td>
|
|
|
2295 |
<td></td>
|
|
|
2296 |
</tr>
|
|
|
2297 |
{/if}
|
|
|
2298 |
</table>
|
|
|
2299 |
<input type="hidden" name="shops_id" value="{$order.shops_ID}" />
|
|
|
2300 |
</form>
|
|
|
2301 |
</div>
|
| 1174 |
lars |
2302 |
<!-- $Id: single_order.tpl 2048 2017-02-17 23:41:59Z lars $ END -->
|
| 1279 |
lars |
2303 |
{include file="footer.tpl"}^
|