| 24 |
lars |
1 |
{extends file="admin/index.tpl"}
|
|
|
2 |
{block name="maincontent"}
|
|
|
3 |
<div class="inner">
|
|
|
4 |
{assign var=verborgeneArtikel value=false}
|
|
|
5 |
{foreach $order->orderItem as $artikel}
|
|
|
6 |
{if $artikel.status=="verborgen"}
|
|
|
7 |
{assign var=verborgeneArtikel value=true}
|
|
|
8 |
{/if}
|
|
|
9 |
{/foreach}
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
| 25 |
lars |
13 |
<link rel="stylesheet" type="text/css" href="/styles/bestellung.css?{$smarty.now}"/>
|
|
|
14 |
<link rel="stylesheet" type="text/css" href="/styles/print.css" media="print" />
|
|
|
15 |
<link rel="stylesheet" type="text/css" href="/buttons.css" />
|
| 24 |
lars |
16 |
|
| 25 |
lars |
17 |
<script src="/js/common.js"></script>
|
| 24 |
lars |
18 |
|
| 25 |
lars |
19 |
<script type="text/javascript" src="/js/DataTables-1.10.5/media/js/jquery.dataTables.min.js"></script>
|
|
|
20 |
<script type="text/javascript" src="/js/DataTables-1.10.5/extensions/TableTools/js/dataTables.tableTools.js"></script>
|
|
|
21 |
<link rel="stylesheet" type="text/css" href="/js/DataTables-1.10.5/media/css/jquery.dataTables.css" />
|
|
|
22 |
<link rel="stylesheet" type="text/css" href="/js/DataTables-1.10.5/extensions/TableTools/css/dataTables.tableTools.css" />
|
| 24 |
lars |
23 |
|
|
|
24 |
|
|
|
25 |
<script>
|
|
|
26 |
function display_ba_id()
|
|
|
27 |
{
|
|
|
28 |
if(document.getElementById('ba_id').style.display=='none')
|
|
|
29 |
{
|
|
|
30 |
document.getElementById('ba_id').style.display='inline';
|
|
|
31 |
document.getElementById("ba_name").style.display='none';
|
|
|
32 |
}
|
|
|
33 |
else
|
|
|
34 |
{
|
|
|
35 |
document.getElementById('ba_id').style.display='none';
|
|
|
36 |
document.getElementById("ba_name").style.display='inline';
|
|
|
37 |
document.getElementById("ba_changed").value=0;
|
|
|
38 |
}
|
|
|
39 |
}
|
|
|
40 |
{if $order->login_id<100}
|
|
|
41 |
function confirmUmwandeln()
|
|
|
42 |
{
|
|
|
43 |
$.getJSON("checkAccount.php?email={$order->email}",function(json) {
|
|
|
44 |
$('#umwandelnCheckResult').html(json.msg)
|
|
|
45 |
$('#umwandelnDlg').dialog("open");
|
|
|
46 |
});
|
|
|
47 |
}
|
|
|
48 |
function umwandeln()
|
|
|
49 |
{
|
|
|
50 |
$.post("createAccount.php", {
|
|
|
51 |
basisBestellId:"{$order->id}",
|
|
|
52 |
Anrede: "{$order->salutation}",
|
|
|
53 |
Vorname: "{$order->name}",
|
|
|
54 |
Name1: "{$order->lastname}",
|
|
|
55 |
Name2: "{$order->company}",
|
|
|
56 |
Strasse: "{$order->street}",
|
|
|
57 |
Hausnummer: "{$order->houseno}",
|
|
|
58 |
PLZ: "{$order->zip}",
|
|
|
59 |
Ort: "{$order->city}",
|
|
|
60 |
E_Mail: "{$order->email}",
|
|
|
61 |
Land: "{$order->country_id}",
|
|
|
62 |
Telefon: "{$order->phone}",
|
|
|
63 |
Fax: "{$order->fax}",
|
|
|
64 |
shop: "{$order->shop_ID}",
|
|
|
65 |
vat_id: "{$order->vat_id}",
|
|
|
66 |
AP_Bemerkung: "{$order->AP_Bemerkung|escape:'javascript'}",
|
|
|
67 |
|
|
|
68 |
},function(){
|
|
|
69 |
document.location.reload();
|
|
|
70 |
})
|
|
|
71 |
}
|
|
|
72 |
{/if}
|
|
|
73 |
$(function(){
|
|
|
74 |
{if $order->login_id<100}
|
|
|
75 |
$('#umwandelnDlg').dialog({
|
|
|
76 |
autoOpen:false,
|
|
|
77 |
modal:true,
|
|
|
78 |
width:600,
|
|
|
79 |
buttons:[{
|
|
|
80 |
text: "Nein",
|
|
|
81 |
click: function () {
|
|
|
82 |
$(this).dialog("close");
|
|
|
83 |
},
|
|
|
84 |
},
|
|
|
85 |
{
|
|
|
86 |
text:"Ja",
|
|
|
87 |
click:function(){
|
|
|
88 |
$(this).dialog("close");
|
|
|
89 |
umwandeln();
|
|
|
90 |
}
|
|
|
91 |
}]
|
|
|
92 |
})
|
|
|
93 |
$('#umwandeln').button().click(confirmUmwandeln);
|
|
|
94 |
{/if}
|
|
|
95 |
$('#dokumentDlg').dialog({
|
|
|
96 |
autoOpen:false,
|
|
|
97 |
width:1024,
|
|
|
98 |
height:600,
|
|
|
99 |
modal:true,
|
|
|
100 |
})
|
|
|
101 |
$(".layer_dok").click(function(e){
|
|
|
102 |
e.preventDefault();
|
|
|
103 |
let url=$(this).attr("href");
|
|
|
104 |
$('#dokumentDlg').load("getDok.php?id="+$(this).attr("data-id"),function(){
|
|
|
105 |
$('#dokUrl').attr("href",url);
|
|
|
106 |
$('#dokumentDlg').dialog("open")
|
|
|
107 |
})
|
|
|
108 |
})
|
|
|
109 |
$('.edit_title').css("cursor","pointer").click(editDokTitle);
|
|
|
110 |
$('#dialogDokTitle').dialog({
|
|
|
111 |
autoOpen:false,
|
|
|
112 |
modal:true,
|
|
|
113 |
width:"90%",
|
|
|
114 |
buttons:[
|
|
|
115 |
{
|
|
|
116 |
text:"speichern",
|
|
|
117 |
icons: {
|
|
|
118 |
primary: "ui-icon-check"
|
|
|
119 |
},
|
|
|
120 |
showText: false,
|
|
|
121 |
click:function()
|
|
|
122 |
{
|
|
|
123 |
$.post("editDokTitle.php",$('#dokTitleForm').serializeArray(),function(){
|
|
|
124 |
document.location.reload();
|
|
|
125 |
$('#dialogDokTitle').dialog("close");
|
|
|
126 |
})
|
|
|
127 |
}
|
|
|
128 |
},
|
|
|
129 |
{
|
|
|
130 |
text:"abbrechen",
|
|
|
131 |
icons: {
|
|
|
132 |
primary: "ui-icon-close"
|
|
|
133 |
},
|
|
|
134 |
showText: false,
|
|
|
135 |
click:function()
|
|
|
136 |
{
|
|
|
137 |
$(this).dialog("close");
|
|
|
138 |
}
|
|
|
139 |
},
|
|
|
140 |
]
|
|
|
141 |
})
|
|
|
142 |
$('#ba_name').dblclick(display_ba_id);
|
|
|
143 |
|
|
|
144 |
$('#export').click(exportOrder);
|
|
|
145 |
|
|
|
146 |
// doktabs START
|
|
|
147 |
$('#doktabs').uitabs();
|
|
|
148 |
$('#doktable-Alle').DataTable({
|
|
|
149 |
"filter":false,
|
|
|
150 |
"responsive":true,
|
|
|
151 |
"paging": false,
|
|
|
152 |
"language": {
|
|
|
153 |
"sEmptyTable": "Keine Daten in der Tabelle vorhanden",
|
|
|
154 |
"sInfo": "_START_ bis _END_ von _TOTAL_ Einträgen",
|
|
|
155 |
"sInfoEmpty": "0 bis 0 von 0 Einträgen"
|
|
|
156 |
},
|
|
|
157 |
});
|
|
|
158 |
$(".doktabs_li").click(function(){
|
|
|
159 |
let href = $("a",this).attr("href");
|
|
|
160 |
let id = href.replace("doktabs","doktable");
|
|
|
161 |
if($(id + "_wrapper").length===0) {
|
|
|
162 |
$(id).DataTable({
|
|
|
163 |
"filter":false,
|
|
|
164 |
"responsive":true,
|
|
|
165 |
"paging": false,
|
|
|
166 |
"language": {
|
|
|
167 |
"sEmptyTable": "Keine Daten in der Tabelle vorhanden",
|
|
|
168 |
"sInfo": "_START_ bis _END_ von _TOTAL_ Einträgen",
|
|
|
169 |
"sInfoEmpty": "0 bis 0 von 0 Einträgen"
|
|
|
170 |
},
|
|
|
171 |
});
|
|
|
172 |
}
|
|
|
173 |
});
|
|
|
174 |
// doktabs ENDE
|
|
|
175 |
|
|
|
176 |
// start Disable Dropdown
|
|
|
177 |
$( ".select_tax_mode" ).dblclick(function(){
|
|
|
178 |
if($(this).is(":visible")) {
|
|
|
179 |
$(".select_tax_mode").hide("slow");
|
|
|
180 |
}
|
|
|
181 |
});
|
|
|
182 |
//stop Disable Dropdown
|
|
|
183 |
|
|
|
184 |
//ajax safe
|
|
|
185 |
$('#s_id').on('change', function() {
|
|
|
186 |
let shopID = $(this).val();
|
|
|
187 |
$.ajax({
|
|
|
188 |
type: "POST",
|
|
|
189 |
url: "bestellungen_neu.php",
|
|
|
190 |
data: {
|
|
|
191 |
'update': true,
|
|
|
192 |
's_changed': 1,
|
|
|
193 |
'bestellID': '{$order->id}',
|
|
|
194 |
's_id': shopID,
|
|
|
195 |
},
|
|
|
196 |
cache: false,
|
|
|
197 |
success: function() {
|
|
|
198 |
let new_shop = $('#s_id :selected').text();
|
|
|
199 |
$('#s_name').html(new_shop).css('display', 'inline');
|
|
|
200 |
$('#s_id').css('display', 'none');
|
|
|
201 |
}
|
|
|
202 |
});
|
|
|
203 |
});
|
|
|
204 |
$('#ba_id').on('change', function() {
|
|
|
205 |
let baID = $(this).val();
|
|
|
206 |
$.ajax({
|
|
|
207 |
type: "POST",
|
|
|
208 |
url: "bestellungen_neu.php",
|
|
|
209 |
data: {
|
|
|
210 |
'update': true,
|
|
|
211 |
'ba_changed': 1,
|
|
|
212 |
'bestellID': '{$order->id}',
|
|
|
213 |
'ba_id': baID,
|
|
|
214 |
},
|
|
|
215 |
cache: false,
|
|
|
216 |
success: function() {
|
|
|
217 |
let new_ba = $('#ba_id :selected').text();
|
|
|
218 |
$('#ba_name').html(new_ba).css('display', 'inline');
|
|
|
219 |
$('#ba_id').css('display', 'none');
|
|
|
220 |
}
|
|
|
221 |
});
|
|
|
222 |
});
|
|
|
223 |
|
|
|
224 |
//
|
|
|
225 |
|
|
|
226 |
$('.showHiddenItems').click(showHiddenItems).css("cursor","pointer");
|
|
|
227 |
$('.hideHiddenItems').click(hideHiddenItems).css("cursor","pointer");
|
|
|
228 |
{if $dialog}
|
|
|
229 |
$('#mailTemplates').dialog({
|
|
|
230 |
autoOpen:false,
|
|
|
231 |
resizable:false,
|
|
|
232 |
modal:true,
|
|
|
233 |
width:"90%"
|
|
|
234 |
})
|
|
|
235 |
$('#mailTemplatesResult').dialog({
|
|
|
236 |
autoOpen:false,
|
|
|
237 |
resizable:false,
|
|
|
238 |
modal:true,
|
|
|
239 |
width:"90%"
|
|
|
240 |
})
|
|
|
241 |
$('#mailTemplateButton').click(function(){
|
|
|
242 |
$('#mailTemplates').dialog("open");
|
|
|
243 |
let width=0;
|
|
|
244 |
$(".vorlage").each(function(index){
|
|
|
245 |
bWidth=$(this).width();
|
|
|
246 |
if(bWidth > width)
|
|
|
247 |
{
|
|
|
248 |
width=bWidth;
|
|
|
249 |
}
|
|
|
250 |
});
|
|
|
251 |
if(width>$('#mailTemplates').width())
|
|
|
252 |
{
|
|
|
253 |
width=$('#mailTemplates').width();
|
|
|
254 |
}
|
|
|
255 |
$(".vorlage").width(width).css("textAlign","left");
|
|
|
256 |
})
|
|
|
257 |
$('button.vorlage').css("cursor","pointer").button().click(function(e){
|
|
|
258 |
e.preventDefault();
|
|
|
259 |
let tid=parseInt($(this).attr("data-value"));
|
|
|
260 |
$('#mailTemplates').dialog("close");
|
|
|
261 |
window.open("/Warenwirtschaft/MailClient/index.php?id=0&shop={$order->shop_id}&Bestellung={$order->id}&button=Mailausgang&templateId="+tid, 'MailClient', 'status, menubar, height=600, width=900, scrollbars=yes'); })
|
|
|
262 |
{/if}
|
|
|
263 |
$('.dokstatus').css("cursor","pointer").on('click',function(){
|
|
|
264 |
let dokId=$(this).attr("data-dokid");
|
|
|
265 |
$.getJSON("setStatus.php?id="+dokId,function(erg)
|
|
|
266 |
{
|
|
|
267 |
if(erg.status==="offen")
|
|
|
268 |
{
|
| 25 |
lars |
269 |
$('.img_status_'+dokId).attr("src","/images/Icons/icon-rote-fahne.png").show();
|
| 24 |
lars |
270 |
}
|
|
|
271 |
else
|
|
|
272 |
{
|
| 25 |
lars |
273 |
$('.img_status_'+dokId).attr("src","/images/Icons/icon-gruener-haken.png").show();
|
| 24 |
lars |
274 |
}
|
|
|
275 |
$('#aenderung_'+dokId).html(erg.updated_at);
|
|
|
276 |
$('#bearbeiter_'+dokId).html(erg.updated_by);
|
|
|
277 |
})
|
|
|
278 |
})
|
|
|
279 |
let script="";
|
|
|
280 |
{if $order->zahlart_name=="amazon" || $order->kk_info.anbieter=="Amazon"}
|
|
|
281 |
script="amazonRefund.php";
|
|
|
282 |
{elseif $order->zahlart_name_intern=="PayPalPlus" || $order->kk_info.anbieter=="PayPalPlus"}
|
|
|
283 |
script="paypalRefund.php?mode=paypalPlus";
|
|
|
284 |
{elseif $order->zahlart_name_intern=="PayPalExpress" || $order->kk_info.anbieter=="PayPalExpress"}
|
|
|
285 |
script="paypalRefund.php?mode=paypalExpress";
|
|
|
286 |
{elseif $order->zahlart_name_intern=="paypal" || $order->kk_info.anbieter=="PayPal"}
|
|
|
287 |
script="paypalRefund.php?mode=paypal";
|
|
|
288 |
{elseif $order->zahlart_name_intern=="klarna" || $order->kk_info.anbieter=="klarna"}
|
|
|
289 |
script="klarnaRefund.php";
|
|
|
290 |
{elseif $order->zahlart_name_intern=="billie" || $order->kk_info.anbieter=="billie"}
|
|
|
291 |
script="billieRefund.php";
|
|
|
292 |
{/if}
|
|
|
293 |
$('#refundDlg').dialog({
|
|
|
294 |
autoOpen:false,
|
|
|
295 |
modal:true,
|
|
|
296 |
resizable:false,
|
|
|
297 |
width:700,
|
|
|
298 |
buttons:{
|
|
|
299 |
"erstatten":function(){
|
|
|
300 |
daten = $('#refundForm').serializeArray();
|
|
|
301 |
$.post("/Warenwirtschaft/"+script,daten,function(json){
|
|
|
302 |
alert(json);
|
|
|
303 |
$('#refundDlg').dialog("close");
|
|
|
304 |
document.location.reload();
|
|
|
305 |
})
|
|
|
306 |
}
|
|
|
307 |
}
|
|
|
308 |
})
|
|
|
309 |
$('.refund').click(function(){
|
|
|
310 |
if($(this).attr("data-refund"))
|
|
|
311 |
{
|
|
|
312 |
$('#refundAmount').val($(this).attr("data-refund"));
|
|
|
313 |
}
|
|
|
314 |
else
|
|
|
315 |
{
|
|
|
316 |
$('#refundAmount').val("{$order->total_amount_buffer|number_format:2:',':'.'}")
|
|
|
317 |
}
|
|
|
318 |
{if $order->zahlart_name=="amazon" || $order->kk_info.anbieter=="Amazon"}
|
|
|
319 |
if($('#refundAmount').val()>{$order->diff})
|
|
|
320 |
{
|
|
|
321 |
$('#refundAmount').val({$order->diff})
|
|
|
322 |
}
|
|
|
323 |
{/if}
|
|
|
324 |
$('#refundDlg').dialog("open");
|
|
|
325 |
})
|
|
|
326 |
})
|
|
|
327 |
function editDokTitle()
|
|
|
328 |
{
|
|
|
329 |
$('#dokTitle').val($(this).attr("data-title"))
|
|
|
330 |
$('#dokId').val($(this).attr("data-id"))
|
|
|
331 |
$('#dialogDokTitle').dialog("open");
|
|
|
332 |
}
|
|
|
333 |
function exportOrder()
|
|
|
334 |
{
|
|
|
335 |
url="exportOrder.php?orderId={$order->id}";
|
|
|
336 |
$.get(url,function(){
|
|
|
337 |
document.location.reload();
|
|
|
338 |
});
|
|
|
339 |
}
|
|
|
340 |
|
|
|
341 |
function hideHiddenItems()
|
|
|
342 |
{
|
|
|
343 |
$.get("/Online-Shop/save_to_db.php?val=showHiddenItems=0",function(){
|
|
|
344 |
document.location.reload();
|
|
|
345 |
})
|
|
|
346 |
}
|
|
|
347 |
function showHiddenItems()
|
|
|
348 |
{
|
|
|
349 |
$.get("/Online-Shop/save_to_db.php?val=showHiddenItems=1",function(){
|
|
|
350 |
document.location.reload();
|
|
|
351 |
})
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
|
|
|
355 |
</script>
|
|
|
356 |
<style>
|
|
|
357 |
.artikelDaten img
|
|
|
358 |
{
|
|
|
359 |
display: inline!important;
|
|
|
360 |
}
|
|
|
361 |
.select_tax_container {
|
|
|
362 |
float:left;
|
|
|
363 |
margin-left:10px;
|
|
|
364 |
}
|
|
|
365 |
.select_tax_mode {
|
|
|
366 |
z-index:1;
|
|
|
367 |
width:121px;
|
|
|
368 |
height:30px;
|
|
|
369 |
position:absolute;
|
|
|
370 |
background:#fff;
|
|
|
371 |
opacity:.7;
|
|
|
372 |
}
|
|
|
373 |
|
|
|
374 |
.ui-tooltip, .arrow:after {
|
|
|
375 |
border: 2px solid white;
|
|
|
376 |
}
|
|
|
377 |
.ui-tooltip {
|
|
|
378 |
padding: 10px 20px;
|
|
|
379 |
border-radius: 20px;
|
|
|
380 |
font: bold 14px "Helvetica Neue", Sans-Serif;
|
|
|
381 |
box-shadow: 0 0 7px black;
|
|
|
382 |
}
|
|
|
383 |
.arrow {
|
|
|
384 |
width: 70px;
|
|
|
385 |
height: 16px;
|
|
|
386 |
overflow: hidden;
|
|
|
387 |
position: absolute;
|
|
|
388 |
left: 50%;
|
|
|
389 |
margin-left: -35px;
|
|
|
390 |
bottom: -16px;
|
|
|
391 |
}
|
|
|
392 |
.arrow.top {
|
|
|
393 |
top: -16px;
|
|
|
394 |
bottom: auto;
|
|
|
395 |
}
|
|
|
396 |
.arrow.left {
|
|
|
397 |
left: 20%;
|
|
|
398 |
}
|
|
|
399 |
.arrow:after {
|
|
|
400 |
content: "";
|
|
|
401 |
background: black;
|
|
|
402 |
position: absolute;
|
|
|
403 |
left: 20px;
|
|
|
404 |
top: -20px;
|
|
|
405 |
width: 25px;
|
|
|
406 |
height: 25px;
|
|
|
407 |
box-shadow: 6px 5px 9px -9px black;
|
|
|
408 |
-webkit-transform: rotate(45deg);
|
|
|
409 |
-moz-transform: rotate(45deg);
|
|
|
410 |
-ms-transform: rotate(45deg);
|
|
|
411 |
-o-transform: rotate(45deg);
|
|
|
412 |
tranform: rotate(45deg);
|
|
|
413 |
}
|
|
|
414 |
.arrow.top:after {
|
|
|
415 |
bottom: -20px;
|
|
|
416 |
top: auto;
|
|
|
417 |
}
|
|
|
418 |
.doc_link {
|
|
|
419 |
float:left;
|
|
|
420 |
vertical-align: middle;
|
|
|
421 |
overflow:hidden;
|
|
|
422 |
max-width:100%;
|
|
|
423 |
font-weight:bold;
|
|
|
424 |
}
|
|
|
425 |
table.dataTable thead th, table.dataTable thead td {
|
|
|
426 |
padding:5px 18px 5px 10px!important;
|
|
|
427 |
}
|
|
|
428 |
.doktable thead {
|
|
|
429 |
font-weight:bold;
|
|
|
430 |
}
|
|
|
431 |
.doktable td {
|
|
|
432 |
font-size:12px;
|
|
|
433 |
text-align:left;
|
|
|
434 |
vertical-align:top;
|
|
|
435 |
}
|
|
|
436 |
.doktable tr td:nth-of-type(2) {
|
|
|
437 |
min-width:65%;
|
|
|
438 |
}
|
|
|
439 |
.doktable thead td:nth-of-type(2) {
|
|
|
440 |
padding-left:67px!important;
|
|
|
441 |
}
|
|
|
442 |
.doktable tbody tr:nth-of-type(2n) td {
|
|
|
443 |
background-color:#e7e7e7;
|
|
|
444 |
}
|
|
|
445 |
.doktable tbody tr:hover td {
|
|
|
446 |
background-color:#ccc;
|
|
|
447 |
}
|
|
|
448 |
|
|
|
449 |
.bestellung_buttons input {
|
|
|
450 |
margin:2px;
|
|
|
451 |
}
|
|
|
452 |
.zweite_zelle {
|
|
|
453 |
width:90%;
|
|
|
454 |
}
|
|
|
455 |
.artikel_beschreibung {
|
|
|
456 |
clear:both;
|
|
|
457 |
float:none;
|
|
|
458 |
display:block;
|
|
|
459 |
width:96%;
|
|
|
460 |
height:12vh;
|
|
|
461 |
}
|
|
|
462 |
.artikel_aktionen {
|
|
|
463 |
display:flex!important;
|
|
|
464 |
float:right;
|
|
|
465 |
background:#fff;
|
|
|
466 |
border:1px solid #000!important;
|
|
|
467 |
}
|
|
|
468 |
.artikel_aktionen a {
|
|
|
469 |
display:block;
|
|
|
470 |
padding:3px;
|
|
|
471 |
border:1px solid #ccc;
|
|
|
472 |
margin:3px;
|
|
|
473 |
border-radius:3px;
|
|
|
474 |
}
|
|
|
475 |
</style>
|
|
|
476 |
{if isset($user_rechte.Warenwirtschaft.bestellung.html_editor)}
|
|
|
477 |
<script type="text/javascript" src="../js/tinymce/tinymce.min.js"></script>
|
|
|
478 |
<script type="text/javascript">
|
|
|
479 |
|
|
|
480 |
tinyMCE.init({
|
|
|
481 |
// General options
|
|
|
482 |
mode : "none",
|
|
|
483 |
selector: "textarea#bemerkung",
|
|
|
484 |
theme : "modern",
|
|
|
485 |
language: "de",
|
|
|
486 |
plugins: [
|
|
|
487 |
"advlist autolink lists link image charmap preview anchor",
|
|
|
488 |
"searchreplace visualblocks code fullscreen",
|
|
|
489 |
"insertdatetime media table contextmenu paste" ],
|
|
|
490 |
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
|
|
|
491 |
|
|
|
492 |
|
|
|
493 |
|
|
|
494 |
});
|
|
|
495 |
</script>
|
|
|
496 |
|
|
|
497 |
{/if}
|
|
|
498 |
<script>
|
|
|
499 |
|
|
|
500 |
$(document).ready(function()
|
|
|
501 |
{
|
|
|
502 |
|
|
|
503 |
{if $labeldruck===true}
|
|
|
504 |
$('.retoureLabel').click(retoureLabel)
|
|
|
505 |
{/if}
|
|
|
506 |
$( ".schufa" ).uitooltip({
|
|
|
507 |
items:'.schufa',
|
|
|
508 |
width:800,
|
|
|
509 |
position: {
|
|
|
510 |
my: "center bottom-20",
|
|
|
511 |
at: "center top",
|
|
|
512 |
using: function( position, feedback ) {
|
|
|
513 |
$( this ).css( position );
|
|
|
514 |
$( "<div>" )
|
|
|
515 |
.addClass( "arrow" )
|
|
|
516 |
.addClass( feedback.vertical )
|
|
|
517 |
.addClass( feedback.horizontal )
|
|
|
518 |
.appendTo( this );
|
|
|
519 |
}
|
|
|
520 |
}
|
|
|
521 |
});
|
|
|
522 |
$( document ).uitooltip({
|
|
|
523 |
items:'.popup',
|
|
|
524 |
width:800,
|
|
|
525 |
position: {
|
|
|
526 |
my: "center bottom-20",
|
|
|
527 |
at: "center top",
|
|
|
528 |
using: function( position, feedback ) {
|
|
|
529 |
$( this ).css( position );
|
|
|
530 |
$( "<div>" )
|
|
|
531 |
.addClass( "arrow" )
|
|
|
532 |
.addClass( feedback.vertical )
|
|
|
533 |
.addClass( feedback.horizontal )
|
|
|
534 |
.appendTo( this );
|
|
|
535 |
}
|
|
|
536 |
}
|
|
|
537 |
});
|
|
|
538 |
|
|
|
539 |
$( ".popupImg" ).uitooltip({
|
|
|
540 |
items:'.popupImg',
|
|
|
541 |
position: {
|
|
|
542 |
my: "center bottom-20",
|
|
|
543 |
at: "center top",
|
|
|
544 |
using: function( position, feedback ) {
|
|
|
545 |
$( this ).css( position );
|
|
|
546 |
|
|
|
547 |
$( "<div>" )
|
|
|
548 |
.addClass( "arrow" )
|
|
|
549 |
.addClass( feedback.vertical )
|
|
|
550 |
.addClass( feedback.horizontal )
|
|
|
551 |
.appendTo( this );
|
|
|
552 |
}
|
|
|
553 |
},
|
|
|
554 |
content:function(){
|
|
|
555 |
let url = $(this).attr("id");
|
|
|
556 |
return "<img src='"+ url +"' style='width:50%;'/>";
|
|
|
557 |
}
|
|
|
558 |
});
|
|
|
559 |
$('.change_amount').click(change_amount);
|
|
|
560 |
$('#change_amount_form').submit(submitAmountForm);
|
|
|
561 |
|
|
|
562 |
$('#change_amount_dlg').dialog({
|
|
|
563 |
autoOpen:false,
|
|
|
564 |
modal:true,
|
|
|
565 |
resizable:false,
|
|
|
566 |
buttons:{
|
|
|
567 |
"aendern":function()
|
|
|
568 |
{
|
|
|
569 |
submitAmountForm();
|
|
|
570 |
}
|
|
|
571 |
}
|
|
|
572 |
});
|
|
|
573 |
$('#delShipmentQuestion').dialog({
|
|
|
574 |
modal:true,
|
|
|
575 |
resizable:false,
|
|
|
576 |
autoOpen:false,
|
|
|
577 |
buttons:{
|
|
|
578 |
"ja":function(){
|
|
|
579 |
let dokId=$('#delDokId').val();
|
|
|
580 |
let logistiker=$('#delDokLogistiker').val();
|
|
|
581 |
//console.log(logistiker);
|
|
|
582 |
let url = "delShipment.php?dokId="+dokId+"&logistiker="+logistiker;
|
|
|
583 |
$.get(url,function(html){
|
|
|
584 |
$('#delShipmentQuestion').dialog("close");
|
|
|
585 |
let arr=html.split("|");
|
|
|
586 |
$('#returnCode').val(arr[0]);
|
|
|
587 |
let msg=arr[1];
|
|
|
588 |
$('#labelReturn').html(msg);
|
|
|
589 |
$('#labelReturn').dialog("open");
|
|
|
590 |
})
|
|
|
591 |
},
|
|
|
592 |
"nein":function(){
|
|
|
593 |
$(this).dialog("close");
|
|
|
594 |
}
|
|
|
595 |
}
|
|
|
596 |
});
|
|
|
597 |
$('#labelReturn').dialog({
|
|
|
598 |
modal:true,
|
|
|
599 |
width:800,
|
|
|
600 |
resizable:false,
|
|
|
601 |
autoOpen:false,
|
|
|
602 |
buttons:{
|
|
|
603 |
"ok":function(){
|
|
|
604 |
$(this).dialog("close");
|
|
|
605 |
if ($('#returnCode').val()==0)
|
|
|
606 |
{
|
|
|
607 |
document.location.reload();
|
|
|
608 |
}
|
|
|
609 |
}
|
|
|
610 |
}
|
|
|
611 |
});
|
|
|
612 |
$('#updReturn').dialog({
|
|
|
613 |
modal:true,
|
|
|
614 |
resizable:false,
|
|
|
615 |
autoOpen:false,
|
|
|
616 |
buttons:{
|
|
|
617 |
"ok":function(){
|
|
|
618 |
$(this).dialog("close");
|
|
|
619 |
document.location.reload();
|
|
|
620 |
}
|
|
|
621 |
}
|
|
|
622 |
});
|
|
|
623 |
|
|
|
624 |
function submitAmountForm(e)
|
|
|
625 |
{
|
|
|
626 |
//e.preventDefault();
|
|
|
627 |
barcode=$('#barcode').val();
|
|
|
628 |
$.get("/Warenwirtschaft/change_amount.php",$("#change_amount_form").serialize(),function(html){
|
|
|
629 |
$('#change_amount_form').dialog("close");
|
|
|
630 |
document.location.reload();
|
|
|
631 |
})
|
|
|
632 |
}
|
|
|
633 |
|
|
|
634 |
function change_amount(e)
|
|
|
635 |
{
|
|
|
636 |
e.preventDefault();
|
|
|
637 |
a_id=this.id;
|
|
|
638 |
a_id=a_id.split("_");
|
|
|
639 |
a_id=a_id[1];
|
|
|
640 |
$('#change_ab_id').val(a_id);
|
|
|
641 |
$('#change_amount_dlg').dialog("open");
|
|
|
642 |
}
|
|
|
643 |
|
|
|
644 |
{if isset($user_rechte.Warenwirtschaft.logistiker.tracking_input)}
|
|
|
645 |
$('#send_tracking').click(save_tracking);
|
|
|
646 |
$('#add_tracking_nr_form').submit(save_tracking);
|
|
|
647 |
{/if}
|
|
|
648 |
$('#b_tax').change(function(){
|
|
|
649 |
let sel = $(this).prop('selectedIndex');
|
|
|
650 |
if(!confirm("Wollen Sie wirklich die Besteuerung dieser Bestellung umstellen?\nDies hat Auswirkungen auf die Rechnungsschreibung.")) {
|
|
|
651 |
// ME: Bei Abbruch muss der ursprüngliche Wert wiederhergestellt werden!
|
|
|
652 |
if(sel==0) {
|
|
|
653 |
$(this).prop('selectedIndex',1);
|
|
|
654 |
}else{
|
|
|
655 |
$(this).prop('selectedIndex',0);
|
|
|
656 |
}
|
|
|
657 |
}else{
|
|
|
658 |
// ME: den neuen Wert in der Tabelle Bestellung speichern.
|
|
|
659 |
$('#ajax').load("/Warenwirtschaft/update_bestellung.php?tax="+sel+"&id={$order->id}");
|
|
|
660 |
}
|
|
|
661 |
});
|
|
|
662 |
|
|
|
663 |
// ME: Logistiker SelectBox bei Change sofort speichern
|
|
|
664 |
$('#logistiker_id').change(function(){
|
|
|
665 |
let logistiker_id = $(this).val();
|
|
|
666 |
|
|
|
667 |
// die Selectbox im trackingnummern-Dialog updaten
|
|
|
668 |
$('#logistiker_id_dlg').val(logistiker_id);
|
|
|
669 |
$('#ajax').load("/Warenwirtschaft/update_logistiker.php?id={$order->id}&logistiker_id="+logistiker_id, function(html){
|
|
|
670 |
if(html==="Der Logistiker wurde gespeichert")
|
|
|
671 |
{
|
|
|
672 |
document.location.href="/Warenwirtschaft/bestellungen.php?Bestellung={$order->id}";
|
|
|
673 |
}
|
|
|
674 |
} );
|
|
|
675 |
});
|
|
|
676 |
});
|
|
|
677 |
|
|
|
678 |
// ME: Trackingnummer löschen mit Sicherheitsabfrage
|
|
|
679 |
function delete_trackingnummer(trackingnummer){
|
|
|
680 |
let text = "Soll die Trackingnummer "+trackingnummer+" wirklich gelöscht werden?";
|
|
|
681 |
let check = confirm( decodeHtml(text) );
|
|
|
682 |
if(check===true) {
|
|
|
683 |
$('#ajax').load("/Warenwirtschaft/update_tracking.php?action=delete&id={$order->id}&trackingnummer="+trackingnummer+"" );
|
|
|
684 |
|
|
|
685 |
$('#tracking').load('gettracking.php?bestell_id={$order->id}').show().delay(100);
|
|
|
686 |
}
|
|
|
687 |
}
|
|
|
688 |
|
|
|
689 |
function decodeHtml(html) {
|
|
|
690 |
let txt = document.createElement("textarea");
|
|
|
691 |
txt.innerHTML = html;
|
|
|
692 |
return txt.value;
|
|
|
693 |
}
|
|
|
694 |
|
|
|
695 |
function del_document(dokId)
|
|
|
696 |
{
|
|
|
697 |
let erg = confirm('Wollen Sie dieses Dokument wirklich löschen?');
|
|
|
698 |
if(erg)
|
|
|
699 |
{
|
|
|
700 |
window.open('../dokumente/index.php?action=unlink&id='+dokId, 'DokumentUpload', 'status, menubar, height=110, width=500');
|
|
|
701 |
}
|
|
|
702 |
return false;
|
|
|
703 |
}
|
|
|
704 |
|
|
|
705 |
{if $labeldruck===true}
|
|
|
706 |
function retoureLabel(e){
|
|
|
707 |
e.preventDefault();
|
|
|
708 |
let receiverid=$(this).attr("data-receiverid");
|
|
|
709 |
let id=$(this).attr("data-id");
|
|
|
710 |
let script = $(this).attr("data-script");
|
|
|
711 |
let bemerkung=$(this).attr("data-bemerkung");
|
|
|
712 |
$.getJSON(script+"?mode=retoure&receiverid="+receiverid+"&b_id={$order->id}&id="+id,function(html){
|
|
|
713 |
if(html.code==200)
|
|
|
714 |
{
|
|
|
715 |
alert(bemerkung);
|
|
|
716 |
$('#bemerkung').append(bemerkung);
|
|
|
717 |
{$emailLink}
|
|
|
718 |
$('#cur').click();
|
|
|
719 |
}
|
|
|
720 |
else
|
|
|
721 |
{
|
|
|
722 |
alert(html.msg);
|
|
|
723 |
}
|
|
|
724 |
})
|
|
|
725 |
}
|
|
|
726 |
function del_shipment(dokId,logistiker)
|
|
|
727 |
{
|
|
|
728 |
$.get("getTrackNumber.php?dokId="+dokId,function(html){
|
|
|
729 |
$('#delTrackNumber').html(html);
|
|
|
730 |
$('#delDokId').val(dokId);
|
|
|
731 |
$('#delDokLogistiker').val(logistiker);
|
|
|
732 |
$('#delShipmentQuestion').dialog("open");
|
|
|
733 |
})
|
|
|
734 |
}
|
|
|
735 |
{/if}
|
|
|
736 |
</script>
|
| 25 |
lars |
737 |
<script type="text/javascript" src="/js/overlib.js"></script>
|
| 24 |
lars |
738 |
<script>
|
|
|
739 |
|
|
|
740 |
// increase the default animation speed to exaggerate the effect
|
|
|
741 |
$.fx.speeds._default = 450;
|
|
|
742 |
$(function() {
|
|
|
743 |
$( "#dialog" ).dialog({
|
|
|
744 |
autoOpen: false,
|
|
|
745 |
minWidth: 700,
|
|
|
746 |
minHeight:350
|
|
|
747 |
});
|
|
|
748 |
|
|
|
749 |
$( "#opener" ).click(function() {
|
|
|
750 |
$( "#dialog" ).dialog( "open" );
|
|
|
751 |
return false;
|
|
|
752 |
});
|
|
|
753 |
{if isset($user_rechte.Warenwirtschaft.bestellung.kommissionierungskontrolle)}
|
|
|
754 |
$('.kommissionierungskontrolle').click(function(){
|
|
|
755 |
$("<div>").dialog({
|
|
|
756 |
minWidth: 550,
|
|
|
757 |
position: { my: 'top', at: 'top+60' },
|
|
|
758 |
open: function() {
|
|
|
759 |
$(this).load('kommissionierungskontrolle.php?b_id={$order->id}');
|
|
|
760 |
},
|
|
|
761 |
close: function(event, ui) {
|
|
|
762 |
$(this).dialog('destroy').remove();
|
|
|
763 |
location.reload();
|
|
|
764 |
},
|
|
|
765 |
buttons: {
|
|
|
766 |
"Beenden": function() {
|
|
|
767 |
$( this ).dialog('destroy').remove();
|
|
|
768 |
location.reload();
|
|
|
769 |
}
|
|
|
770 |
},
|
|
|
771 |
title: 'Kommissionierungskontrolle Bestellung: {$order->id}'
|
|
|
772 |
});
|
|
|
773 |
});
|
|
|
774 |
{/if}
|
|
|
775 |
{if isset($user_rechte.Warenwirtschaft.bestellung.steuersatz_aendern) && isset($laenderMwSt)}
|
|
|
776 |
$("#changeMwStDialog").dialog({
|
|
|
777 |
autoOpen: false,
|
|
|
778 |
minWidth: 400,
|
|
|
779 |
resizable: false,
|
|
|
780 |
buttons: {
|
|
|
781 |
"Speichern": function() {
|
|
|
782 |
let mwst = $(".mwstLand").val();
|
|
|
783 |
let data = $("#bestellungFormular").serializeArray();
|
|
|
784 |
|
|
|
785 |
$('#ajax').load("/Warenwirtschaft/update_bestellung.php?mwst="+mwst+"&id={$order->id}",data, function(html){
|
|
|
786 |
alert(html);
|
|
|
787 |
location.reload();
|
|
|
788 |
});
|
|
|
789 |
},
|
|
|
790 |
"Abbrechen": function() {
|
|
|
791 |
$( this ).dialog( "close" );
|
|
|
792 |
|
|
|
793 |
}
|
|
|
794 |
}
|
|
|
795 |
});
|
|
|
796 |
$('.changeMwSt').click(function(){
|
|
|
797 |
$('#changeMwStDialog').dialog("open");
|
|
|
798 |
});
|
|
|
799 |
{/if}
|
|
|
800 |
{if isset($user_rechte.Warenwirtschaft.bestellung.lieferadresse_aendern)}
|
|
|
801 |
$('.changeLieferadresse').click(function(){
|
|
|
802 |
$('#dialogLieferadresse').dialog({
|
|
|
803 |
resizable: false,
|
|
|
804 |
modal:true,
|
|
|
805 |
width:600,
|
|
|
806 |
height:600,
|
|
|
807 |
open: function() {
|
|
|
808 |
$(this).load('change_lieferadresse.php?b_id={$order->id}&login={$order->Login}');
|
|
|
809 |
},
|
|
|
810 |
close: function(event, ui) {
|
|
|
811 |
$(this).dialog('close');
|
|
|
812 |
},
|
|
|
813 |
title: 'Lieferadresse dieser Bestellung ändern',
|
|
|
814 |
|
|
|
815 |
buttons: [{
|
|
|
816 |
text:"Abbrechen",
|
|
|
817 |
click: function() {
|
|
|
818 |
$( '#dialogLieferadresse' ).dialog( "close" );
|
|
|
819 |
}
|
|
|
820 |
},
|
|
|
821 |
{if $order->Login > 100 && $daten.Login.defaultLieferIdAdresse}
|
|
|
822 |
{
|
|
|
823 |
text:"Standard-Liefer-Adresse einlesen",
|
|
|
824 |
click: function() {
|
|
|
825 |
$( rDialog ).load("change_lieferadresse.php?shipAddrId=standard&l_id={$order->Login}");
|
|
|
826 |
}
|
|
|
827 |
}
|
|
|
828 |
{/if}
|
|
|
829 |
]
|
|
|
830 |
|
|
|
831 |
});
|
|
|
832 |
});
|
|
|
833 |
{/if}
|
|
|
834 |
{if isset($order->bill_addr_id) && $order->bill_addr_id != NULL && $order->bill_addr_id > 0 && $order->bill_addr_id != ""}
|
|
|
835 |
let rDialog = $('#dialogRechnungsadresse').dialog({
|
|
|
836 |
resizable: false,
|
|
|
837 |
modal:true,
|
|
|
838 |
width:600,
|
|
|
839 |
height:600,
|
|
|
840 |
autoOpen:false,
|
|
|
841 |
context: $(this),
|
|
|
842 |
open: function() {
|
|
|
843 |
$.ajax({
|
|
|
844 |
type: "GET",
|
|
|
845 |
url: 'change_rechnungsadresse.php',
|
|
|
846 |
data: {
|
|
|
847 |
b_id: '{$order->id}',
|
|
|
848 |
login: '{$order->Login}'
|
|
|
849 |
},
|
|
|
850 |
}).done( function (html) {
|
|
|
851 |
setTimeout(function() {
|
|
|
852 |
$('#dialogRechnungsadresse').html(html);
|
|
|
853 |
});
|
|
|
854 |
|
|
|
855 |
});
|
|
|
856 |
|
|
|
857 |
//$(this).load('change_rechnungsadresse.php?b_id={$order->id}');
|
|
|
858 |
},
|
|
|
859 |
title: 'Rechnungsadresse dieser Bestellung ändern',
|
|
|
860 |
|
|
|
861 |
buttons: [
|
|
|
862 |
{
|
|
|
863 |
text:"Abbrechen",
|
|
|
864 |
click: function() {
|
|
|
865 |
$( rDialog ).dialog( "close" );
|
|
|
866 |
}
|
|
|
867 |
},
|
|
|
868 |
{if $order->login_id > 100 && $daten.Login.defaultRechnungIdAdresse}
|
|
|
869 |
{
|
|
|
870 |
text:"Standard-RE-Adresse einlesen",
|
|
|
871 |
click: function() {
|
|
|
872 |
$( rDialog ).load("change_rechnungsadresse.php?billAddrId=standard&l_id={$order->Login}");
|
|
|
873 |
}
|
|
|
874 |
}
|
|
|
875 |
{/if}
|
|
|
876 |
]
|
|
|
877 |
|
|
|
878 |
});
|
|
|
879 |
|
|
|
880 |
$('.changeRechnungsadresse').click(function(){
|
|
|
881 |
$('#dialogRechnungsadresse').dialog("open");
|
|
|
882 |
});
|
|
|
883 |
{/if}
|
|
|
884 |
{if isset($user_rechte.Warenwirtschaft.logistiker.tracking_input)}
|
|
|
885 |
$( "#add_tracking_nr" ).dialog({
|
|
|
886 |
autoOpen: false,
|
|
|
887 |
minWidth: 400,
|
|
|
888 |
resizable: false
|
|
|
889 |
});
|
|
|
890 |
$('.button').css("cursor","pointer").click(add_tracking_nr);
|
|
|
891 |
|
|
|
892 |
$('#datum').datepicker();
|
|
|
893 |
|
|
|
894 |
{/if}
|
|
|
895 |
$('#VersandDialog').dialog({
|
|
|
896 |
modal:true,
|
|
|
897 |
autoOpen:false,
|
|
|
898 |
width:"90%",
|
|
|
899 |
resizable:false,
|
|
|
900 |
buttons:{
|
|
|
901 |
"drucken":function(){
|
|
|
902 |
printLabel();
|
|
|
903 |
},
|
|
|
904 |
"abbrechen":function()
|
|
|
905 |
{
|
|
|
906 |
$(this).dialog("close");
|
|
|
907 |
}
|
|
|
908 |
}
|
|
|
909 |
});
|
|
|
910 |
{if $VersandDialog==true}
|
|
|
911 |
$('.labeldruck').css("cursor","pointer").click(showVersandDialog);
|
|
|
912 |
{else}
|
|
|
913 |
$('.labeldruck').css("cursor","pointer").click(printLabel);
|
|
|
914 |
{/if}
|
|
|
915 |
|
|
|
916 |
{if isset($user_rechte.Warenwirtschaft.bestellung.billsafe)}
|
|
|
917 |
$('.billsafe_phone').click(billsafe_phone);
|
|
|
918 |
{/if}
|
|
|
919 |
//$("input[type=button],input[type=submit],button,input[type=reset]").button();
|
|
|
920 |
|
|
|
921 |
|
|
|
922 |
{if isset($user_rechte.Warenwirtschaft.bestellung.lieferschein)}
|
|
|
923 |
$('.lieferschein_vorschalt_druck').click(function(){
|
|
|
924 |
$('<div id="dialogLieferschein">').dialog({
|
|
|
925 |
modal: true,
|
|
|
926 |
resizable: true,
|
|
|
927 |
position: "center top",
|
|
|
928 |
open: function() {
|
|
|
929 |
$(this).load('lieferschein.php?b_id={$order->id}');
|
|
|
930 |
},
|
|
|
931 |
close: function(event, ui) {
|
|
|
932 |
$(this).dialog('destroy').remove();
|
|
|
933 |
},
|
|
|
934 |
width: 1050,
|
|
|
935 |
title: 'Lieferschein erstellen',
|
|
|
936 |
position: ['center',30],
|
|
|
937 |
});
|
|
|
938 |
});
|
|
|
939 |
{/if}
|
|
|
940 |
|
|
|
941 |
{if isset($user_rechte.Warenwirtschaft.bestellung.proforma_rechnung)}
|
|
|
942 |
$('.proforma_vorschalt_druck').click(function(){
|
|
|
943 |
$('<div id="dialogRechnung">').dialog({
|
|
|
944 |
modal: true,
|
|
|
945 |
resizable: true,
|
|
|
946 |
position: "center top",
|
|
|
947 |
open: function() {
|
|
|
948 |
$(this).load('{if $rechnung_v2}rechnung_v2.php{elseif $rechnung_v3}rechnung_v3.php{elseif $rechnung_v4}rechnung_v4.php{else}rechnung.php{/if}?b_id={$order->id}&proforma_rechnung=1');
|
|
|
949 |
},
|
|
|
950 |
close: function(event, ui) {
|
|
|
951 |
$(this).dialog('destroy').remove();
|
|
|
952 |
},
|
|
|
953 |
width: 1050,
|
|
|
954 |
title: 'Proformarechnung erstellen',
|
|
|
955 |
position: ['center',30],
|
|
|
956 |
});
|
|
|
957 |
});
|
|
|
958 |
{/if}
|
|
|
959 |
|
|
|
960 |
{if isset($user_rechte.Warenwirtschaft.bestellung.rechnung)}
|
|
|
961 |
$('.rechnung_vorschalt_druck').click(function(){
|
|
|
962 |
$('<div id="dialogRechnung">').dialog({
|
|
|
963 |
modal: true,
|
|
|
964 |
resizable: true,
|
|
|
965 |
position: "center top",
|
|
|
966 |
open: function() {
|
|
|
967 |
$(this).load('{if $rechnung_v2}rechnung_v2.php{elseif $rechnung_v3}rechnung_v3.php{elseif $rechnung_v4}rechnung_v4.php{else}rechnung.php{/if}?b_id={$order->id}&action=rechnungDrucken&versandAuswaehlen=1');
|
|
|
968 |
},
|
|
|
969 |
close: function(event, ui) {
|
|
|
970 |
$(this).dialog('destroy').remove();
|
|
|
971 |
},
|
|
|
972 |
width: 1050,
|
|
|
973 |
title: 'Rechnung erstellen',
|
|
|
974 |
position: ['center',30],
|
|
|
975 |
});
|
|
|
976 |
});
|
|
|
977 |
{/if}
|
|
|
978 |
|
|
|
979 |
//Wenn Recht gesetzt ist "vorschaltseite" dann Dialog mit Angebot.
|
|
|
980 |
{if strpos($web_rechte.Warenwirtschaft.bestellung.angebot,'vorschaltseite')!= false}
|
|
|
981 |
$('.angebot_vorschalt_druck').click(function(){
|
|
|
982 |
$('<div id="dialogAngebot">').dialog({
|
|
|
983 |
modal: true,
|
|
|
984 |
resizable: true,
|
|
|
985 |
position: "center top",
|
|
|
986 |
open: function() {
|
|
|
987 |
$(this).load('angebot.php?b_id={$order->id}&Userdata_anrede={$order->Anrede}&Userdata_Nachname={$order->Name1|urlencode}&action=angebotvorschaltseite');
|
|
|
988 |
},
|
|
|
989 |
close: function(event, ui) {
|
|
|
990 |
$(this).dialog('destroy').remove();
|
|
|
991 |
},
|
|
|
992 |
width: 1050,
|
|
|
993 |
title: 'Angebot erstellen',
|
|
|
994 |
position: ['center',30],
|
|
|
995 |
});
|
|
|
996 |
});
|
|
|
997 |
{/if}
|
|
|
998 |
|
|
|
999 |
|
|
|
1000 |
|
|
|
1001 |
{if isset($web_rechte.Warenwirtschaft.lagerwirtschaft.meldebestandsliste) && $produktionsverbuchung === true}
|
|
|
1002 |
$(".produktionsverbuchung").click(function(){
|
|
|
1003 |
$("<div id='produktionsverbuchung'></div>").dialog({
|
|
|
1004 |
position: "center",
|
|
|
1005 |
zIndex: 5,
|
|
|
1006 |
modal: true,
|
|
|
1007 |
title: "Produktionsverbuchung",
|
|
|
1008 |
width: 750,
|
|
|
1009 |
open : function(){
|
|
|
1010 |
$(this).load('{$verbuchungsScript}');
|
|
|
1011 |
},
|
|
|
1012 |
close : function(){
|
|
|
1013 |
$(this).dialog('destroy').remove();
|
|
|
1014 |
},
|
|
|
1015 |
buttons: [
|
|
|
1016 |
{
|
|
|
1017 |
text: "Abbrechen",
|
|
|
1018 |
click: function() {
|
|
|
1019 |
$(this).dialog('destroy').remove();
|
|
|
1020 |
}
|
|
|
1021 |
},
|
|
|
1022 |
{
|
|
|
1023 |
text: "Verbuchen",
|
|
|
1024 |
click: function() {
|
|
|
1025 |
let data = [];
|
|
|
1026 |
let istGueltig = true;
|
|
|
1027 |
|
|
|
1028 |
$(".produktionsAnzahlInput").each(function(){
|
|
|
1029 |
if( ( $(this).val().length == 0 || $(this).val() == "" ) && istGueltig ){
|
|
|
1030 |
istGueltig = false;
|
|
|
1031 |
}
|
|
|
1032 |
});
|
|
|
1033 |
|
|
|
1034 |
if( istGueltig ){
|
|
|
1035 |
let produktionsArtikel = $("#produktionArtikelListe").serialize();
|
|
|
1036 |
$.ajax({
|
|
|
1037 |
type: "POST",
|
|
|
1038 |
url : "{$verbuchungsScript}",
|
|
|
1039 |
data: produktionsArtikel
|
|
|
1040 |
}).done(function(msg){
|
|
|
1041 |
alert(msg);
|
|
|
1042 |
document.location.href="/Warenwirtschaft/bestellungen.php?Bestellung={$order->id}";
|
|
|
1043 |
})
|
|
|
1044 |
} else {
|
|
|
1045 |
alert( "Bitte zu jedem Artikel die Menge angeben!" );
|
|
|
1046 |
}
|
|
|
1047 |
}
|
|
|
1048 |
}
|
|
|
1049 |
]
|
|
|
1050 |
});
|
|
|
1051 |
})
|
|
|
1052 |
{/if}
|
|
|
1053 |
});
|
|
|
1054 |
|
|
|
1055 |
function showVersandDialog()
|
|
|
1056 |
{
|
|
|
1057 |
let logistiker_id=$('#logistiker_id').val();
|
|
|
1058 |
let pScript="{$druckScript}"+"&id="+logistiker_id+"&mode=druckdialog";
|
|
|
1059 |
$('#VersandDialog').load(pScript,function(){
|
|
|
1060 |
$('#VersandDialog').dialog("open");
|
|
|
1061 |
});
|
|
|
1062 |
}
|
|
|
1063 |
|
|
|
1064 |
function printLabel()
|
|
|
1065 |
{
|
|
|
1066 |
let logistiker_id=$('#logistiker_id').val();
|
|
|
1067 |
let pScript="{$druckScript}"+"&json=1&id="+logistiker_id;
|
|
|
1068 |
{if $labeldruck===true}
|
|
|
1069 |
$('#loadingDLG').dialog("open");
|
|
|
1070 |
$.getJSON(pScript,$('#Versandoptionen').serialize(),function(html){
|
|
|
1071 |
$('#loadingDLG').dialog("close");
|
|
|
1072 |
if(html.code[1]==0)
|
|
|
1073 |
{
|
|
|
1074 |
for(let i=1;i<=html.anzahl;i++)
|
|
|
1075 |
{
|
|
|
1076 |
window.open(html.msg[i]);
|
|
|
1077 |
}
|
|
|
1078 |
document.location.href="/Warenwirtschaft/bestellungen.php?Bestellung={$order->id}";
|
|
|
1079 |
}
|
|
|
1080 |
else
|
|
|
1081 |
{
|
|
|
1082 |
let msgs=html.msg;
|
|
|
1083 |
let msg=msgs[1];
|
|
|
1084 |
$('#labelReturn').html(msg).dialog("open");
|
|
|
1085 |
}
|
|
|
1086 |
});
|
|
|
1087 |
{elseif $labeldruck=="export"}
|
|
|
1088 |
window.open(pScript);
|
|
|
1089 |
{/if}
|
|
|
1090 |
}
|
|
|
1091 |
{if isset($user_rechte.Warenwirtschaft.bestellung.billsafe)}
|
|
|
1092 |
function billsafe_phone()
|
|
|
1093 |
{
|
|
|
1094 |
//alert(this.id);
|
|
|
1095 |
let bs_id=this.id;
|
|
|
1096 |
bs_id=bs_id.split("_");
|
|
|
1097 |
let shop_id=bs_id[3];
|
|
|
1098 |
let best_id=bs_id[2];
|
|
|
1099 |
let url="/Warenwirtschaft/billsafe.php?shops_id="+shop_id+"&bestell_id="+best_id;
|
|
|
1100 |
window.open(url);
|
|
|
1101 |
}
|
|
|
1102 |
{/if}
|
|
|
1103 |
{if isset($user_rechte.Warenwirtschaft.logistiker.tracking_input)}
|
|
|
1104 |
function save_tracking(e)
|
|
|
1105 |
{
|
|
|
1106 |
if(this.id=="send_tracking")
|
|
|
1107 |
{
|
|
|
1108 |
e.preventDefault();
|
|
|
1109 |
}
|
|
|
1110 |
$.post("/Warenwirtschaft/add_tracking_nr.php",$('#add_tracking_nr_form').serializeArray(),function(html){
|
|
|
1111 |
let erg=html.split("|");
|
|
|
1112 |
if(erg[0]==1)
|
|
|
1113 |
{
|
|
|
1114 |
alert(erg[1]);
|
|
|
1115 |
}
|
|
|
1116 |
else
|
|
|
1117 |
{
|
|
|
1118 |
$('#tracking').load('gettracking.php',$('#add_tracking_nr_form').serialize()).show();
|
|
|
1119 |
$('#add_tracking_nr').dialog("close");
|
|
|
1120 |
}
|
|
|
1121 |
})
|
|
|
1122 |
//alert("Test");
|
|
|
1123 |
}
|
|
|
1124 |
function add_tracking_nr()
|
|
|
1125 |
{
|
|
|
1126 |
$('#add_tracking_nr').dialog("open");
|
|
|
1127 |
}
|
|
|
1128 |
{/if}
|
|
|
1129 |
|
|
|
1130 |
function setzeTermin(rechnungsName,bestellID)
|
|
|
1131 |
{
|
|
|
1132 |
$('#response').load('storno.php?rid='+rechnungsName+'&bid='+bestellID, function() {
|
|
|
1133 |
alert('Termin wurde erstellt.');
|
|
|
1134 |
});
|
|
|
1135 |
}
|
|
|
1136 |
|
|
|
1137 |
// ME: Dialog für Kundenbemerkung
|
|
|
1138 |
{if isset($web_rechte.Warenwirtschaft.bestellung.kundenbemerkung_layer)}
|
|
|
1139 |
$(function() {
|
|
|
1140 |
$( "#kundenbemerkung_layer" ).dialog({
|
|
|
1141 |
autoOpen: true,
|
|
|
1142 |
minWidth: 400,
|
|
|
1143 |
minHeight:250
|
|
|
1144 |
|
|
|
1145 |
});
|
|
|
1146 |
});
|
|
|
1147 |
{/if}
|
|
|
1148 |
|
|
|
1149 |
$(function() {
|
|
|
1150 |
$( "#invoice_dlg" ).dialog({
|
|
|
1151 |
autoOpen: false,
|
|
|
1152 |
minWidth: 400,
|
|
|
1153 |
minHeight:250
|
|
|
1154 |
});
|
|
|
1155 |
});
|
|
|
1156 |
|
|
|
1157 |
{if $order->notiz}
|
|
|
1158 |
$(function(){
|
|
|
1159 |
$( "#notizDlg" ).dialog({
|
|
|
1160 |
modal:true,
|
|
|
1161 |
minWidth: 400,
|
|
|
1162 |
minHeight:250,
|
|
|
1163 |
buttons:
|
|
|
1164 |
{
|
|
|
1165 |
"abbrechen":function()
|
|
|
1166 |
{
|
|
|
1167 |
$(this).dialog("close");
|
|
|
1168 |
},
|
|
|
1169 |
"nicht mehr anzeigen": function()
|
|
|
1170 |
{
|
|
|
1171 |
$("#updReturn").load("update_bestellung.php?id={$order->id}¬iz=dismiss",function(){
|
|
|
1172 |
$('#updReturn').dialog("open");
|
|
|
1173 |
$('#notizDlg').dialog("close");
|
|
|
1174 |
})
|
|
|
1175 |
}
|
|
|
1176 |
}
|
|
|
1177 |
|
|
|
1178 |
});
|
|
|
1179 |
});
|
|
|
1180 |
{/if}
|
|
|
1181 |
|
|
|
1182 |
{if $order->mwst_befreiung=="on"}
|
|
|
1183 |
$(function() {
|
|
|
1184 |
$( "#ustid_layer" ).dialog({
|
|
|
1185 |
autoOpen: true,
|
|
|
1186 |
minWidth: 400,
|
|
|
1187 |
minHeight:250
|
|
|
1188 |
|
|
|
1189 |
});
|
|
|
1190 |
});
|
|
|
1191 |
{/if}
|
|
|
1192 |
</script>
|
|
|
1193 |
<style>
|
|
|
1194 |
|
|
|
1195 |
#kundenbemerkung_layer,
|
|
|
1196 |
#notizDlg,
|
|
|
1197 |
#updReturn,
|
|
|
1198 |
#ustid_layer
|
|
|
1199 |
{
|
|
|
1200 |
background-color:#ccc;
|
|
|
1201 |
}
|
|
|
1202 |
|
|
|
1203 |
|
|
|
1204 |
.stornoGrau , .stornoGrau a{
|
|
|
1205 |
color:grey;
|
|
|
1206 |
}
|
|
|
1207 |
.title {
|
|
|
1208 |
float:right;
|
|
|
1209 |
}
|
|
|
1210 |
</style>
|
|
|
1211 |
{assign var=artikel_anzahl value=$order->orderItem|@count}
|
|
|
1212 |
<span class="noprint">
|
|
|
1213 |
{if isset($user_rechte.Warenwirtschaft.bestellung.preise_anzeigen)}
|
|
|
1214 |
<a href="javascript:drucken_ohne_preis();">Drucken ohne Preise</a>
|
|
|
1215 |
{/if}
|
|
|
1216 |
</span>
|
|
|
1217 |
|
|
|
1218 |
<form method="post" action="{$SCRIPT_NAME}#{$order->id}" name="formname" enctype="multipart/form-data" id="bestellungFormular">
|
|
|
1219 |
<input type="hidden" name="_token" value="{csrf_token()}">
|
|
|
1220 |
<input type="hidden" name="_method" value="PATCH">
|
|
|
1221 |
<input type="hidden" name="Bestellung" value="{$order->id}" id="best_id"/>
|
|
|
1222 |
<table border="0" cellspacing="0" cellpadding="3" class="bestellungFormular">
|
|
|
1223 |
<tr>
|
|
|
1224 |
<td colspan="3" class="links noprint">Bestellung: Bearbeiten
|
|
|
1225 |
|
|
|
1226 |
{if $showtitle===1}
|
|
|
1227 |
<div class="title">
|
|
|
1228 |
<input id="titel" type="text" name="titel" value="{$order->titel}" placeholder="Bestelltitel" />
|
|
|
1229 |
</div>
|
|
|
1230 |
{/if}
|
|
|
1231 |
|
|
|
1232 |
</td>
|
|
|
1233 |
</tr>
|
|
|
1234 |
|
|
|
1235 |
|
|
|
1236 |
<tr>
|
|
|
1237 |
<td class="links noprint">Bestellnummer:</td>
|
|
|
1238 |
<td class="bestellnummer">
|
|
|
1239 |
<div style="float:left;">
|
|
|
1240 |
{$order->id}- {$order->language} - Shop: {html_options options=$c_shops name="s_id" id="s_id" style="display:none" selected=$order->shop_id onchange="document.getElementById('s_changed').value=1"}<span {if $order->status!='storniert'} ondblclick="display_s_id();"{/if} id="s_name">{$order->shop->name}</span> , {html_options name="ba_id" options=$c_bestellarten id="ba_id" style="display:none" selected="{$order->order_type_id}"} <span id="ba_name">{$order->orderType->name}</span>
|
|
|
1241 |
{if $order->order_type->name=="Verleih"}
|
|
|
1242 |
<input type="button" id="vertrag_oeffnen" value="Vertrag öffnen" />
|
|
|
1243 |
{/if}
|
|
|
1244 |
{if $order->order_type->name=="Tortenbestellung"}
|
|
|
1245 |
<input type="button" id="vertrag_oeffnen_individual" value="Vertrag öffnen" />
|
|
|
1246 |
{/if}
|
|
|
1247 |
</div>
|
|
|
1248 |
<input type="hidden" name="s_changed" id="s_changed" value="0"/>
|
|
|
1249 |
<input type="hidden" name="ba_changed" id="ba_changed" value="0"/>
|
|
|
1250 |
{if isset($order->tax)}
|
|
|
1251 |
<div class="select_tax_container">
|
|
|
1252 |
<div class="select_tax_mode"></div>
|
|
|
1253 |
<select name="b_tax" id="b_tax" class="noprint">
|
|
|
1254 |
<option {if $order->tax==0}selected="selected"{/if} value="0">Nettobestellung</option>
|
|
|
1255 |
<option {if $order->tax==1}selected="selected"{/if} value="1">Bruttobestellung</option>
|
|
|
1256 |
</select>
|
|
|
1257 |
</div>
|
|
|
1258 |
<div class="onprint">{if $order->tax==0}Nettobestellung{else}Bruttobestellung{/if}</div>
|
|
|
1259 |
{if $order->kk_info.anbieter=="klarna"}
|
| 25 |
lars |
1260 |
<span style="font-size: 14px; color: red; text-decoration: underline; font-weight: bold; float: right; margin-right: 5px;"><img src="/images/Icons/Info_icon.png" alt="(!)" />Klarna Bestellung</span>
|
| 24 |
lars |
1261 |
{/if}
|
|
|
1262 |
{/if}
|
|
|
1263 |
|
|
|
1264 |
{if $barcode_bestNr_src}
|
|
|
1265 |
<img class="onprint" src="{$barcode_bestNr_src}" alt=""/>
|
|
|
1266 |
{/if}
|
|
|
1267 |
|
|
|
1268 |
{if $order->status=='storniert'}<strong>STORNIERT</strong>{/if}
|
|
|
1269 |
</td>
|
|
|
1270 |
{*if $d_colspan*}
|
|
|
1271 |
<td class="fremdBestellnummer">
|
|
|
1272 |
{if isset($user_rechte.Warenwirtschaft.bestellung.fremd_id)}
|
|
|
1273 |
{if !$web_rechte.Warenwirtschaft.bestellung.fremd_id}
|
|
|
1274 |
fremde Bestellnummer:
|
|
|
1275 |
{else}
|
|
|
1276 |
{$web_rechte.Warenwirtschaft.bestellung.fremd_id|trim:":"}
|
|
|
1277 |
{/if} {if $order->fremd_id}{$order->fremd_id}{else}<input type="text" name="fremd_id" value="" />{/if}
|
|
|
1278 |
{else}
|
|
|
1279 |
|
|
|
1280 |
{/if}
|
|
|
1281 |
<br />
|
|
|
1282 |
<!-- Bezahlstatus START -->
|
|
|
1283 |
{if isset($web_rechte.Warenwirtschaft.bezahlstatus.bezahlstatus)}
|
|
|
1284 |
<input type="hidden" name="bezahlt" value="{$order->bezahlt}"/>
|
|
|
1285 |
<script type="text/javascript">
|
|
|
1286 |
function buildBezahltBox(selID,bemerkung) {
|
|
|
1287 |
let optArr = [];
|
|
|
1288 |
optArr[0] = 'nicht bezahlt';
|
|
|
1289 |
{if isset($user_rechte.Warenwirtschaft.bezahlstatus.bezahlt_setzen)}
|
|
|
1290 |
optArr[1] = 'bezahlt';
|
|
|
1291 |
{/if}
|
|
|
1292 |
|
|
|
1293 |
{if isset($user_rechte.Warenwirtschaft.bezahlstatus.vorbezahlt_setzen)}
|
|
|
1294 |
optArr[2] = 'vorbezahlt';
|
|
|
1295 |
{/if}
|
|
|
1296 |
|
|
|
1297 |
|
|
|
1298 |
let bezahltBox = "";
|
|
|
1299 |
bezahltBox += "Bezahlstatus: <select style=\"padding:2px;\" id=\"bezahlstatus_select\" name=\"bezahlt\">\n";
|
|
|
1300 |
let selected="";
|
|
|
1301 |
if(optArr[0]) {
|
|
|
1302 |
if(selID==0) {
|
|
|
1303 |
selected = " selected=\"selected\" ";
|
|
|
1304 |
}
|
|
|
1305 |
bezahltBox += "<option value=\"0\" "+selected+">"+optArr[0]+"</option>";
|
|
|
1306 |
}
|
|
|
1307 |
if(optArr[2]) {
|
|
|
1308 |
if(selID==2) {
|
|
|
1309 |
selected = " selected=\"selected\" ";
|
|
|
1310 |
}
|
|
|
1311 |
bezahltBox += "<option value=\"2\" "+selected+">"+optArr[2]+"</option>";
|
|
|
1312 |
}
|
|
|
1313 |
if(optArr[1]) {
|
|
|
1314 |
if(selID==1) {
|
|
|
1315 |
selected = " selected=\"selected\" ";
|
|
|
1316 |
}
|
|
|
1317 |
bezahltBox += "<option value=\"1\" "+selected+">"+optArr[1]+"</option>";
|
|
|
1318 |
}
|
|
|
1319 |
bezahltBox += "</select><br/><br/>\n";
|
|
|
1320 |
bezahltBox += "Bemerkung:<br/><textarea id=\"bezahlt_bemerkung_text\" cols=\"45\" rows=\"6\">"+bemerkung+"</textarea>\n";
|
|
|
1321 |
|
|
|
1322 |
|
|
|
1323 |
return bezahltBox;
|
|
|
1324 |
}
|
|
|
1325 |
|
|
|
1326 |
function openBezahltDialog(bezahlt,bemerkung) {
|
|
|
1327 |
$('#bezahltDialog').dialog({
|
|
|
1328 |
title:'Bezahlstatus/Bemerkung: ',
|
|
|
1329 |
width:400,
|
|
|
1330 |
modal: true,
|
|
|
1331 |
buttons: {
|
|
|
1332 |
" Speichern und Schliessen ": function() {
|
|
|
1333 |
$('#bezahlt_hidden').val( $('#bezahlstatus_select').val() );
|
|
|
1334 |
$('#bezahlt_bemerkung_hidden').val( $('#bezahlt_bemerkung_text').val() );
|
|
|
1335 |
$( this ).dialog( "close" );
|
|
|
1336 |
$('#cur').trigger('click');
|
|
|
1337 |
},
|
|
|
1338 |
Abbrechen: function() {
|
|
|
1339 |
$( this ).dialog( "close" );
|
|
|
1340 |
}
|
|
|
1341 |
}
|
|
|
1342 |
}).html(buildBezahltBox(bezahlt,bemerkung));
|
|
|
1343 |
}
|
|
|
1344 |
|
|
|
1345 |
|
|
|
1346 |
</script>
|
|
|
1347 |
<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} >
|
|
|
1348 |
<div style="float:left;" {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}>Bezahlstatus: </div>
|
|
|
1349 |
<input value="{$order->bezahlt}" type="hidden" name="bezahlt" id="bezahlt_hidden" />
|
|
|
1350 |
<input value="{$order->bezahlt_bemerkung}" type="hidden" name="bezahlt_bemerkung" id="bezahlt_bemerkung_hidden" />
|
|
|
1351 |
<div style="float:left;" {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}>
|
|
|
1352 |
{if $order->bezahlt==1}
|
|
|
1353 |
<font style="font-weight:bold;color:#0f0">bezahlt</font>
|
|
|
1354 |
{elseif $order->bezahlt==2}
|
|
|
1355 |
<font style="font-weight:bold;color:#FCA600">vorbezahlt</font>
|
|
|
1356 |
{else}
|
|
|
1357 |
<font style="font-weight:bold;color:#f00">nicht bezahlt</font>
|
|
|
1358 |
{/if}
|
|
|
1359 |
</div>
|
|
|
1360 |
<div style="float:left">{if $order->zahlart_id} - Zahlart: <span {if $order->bezahlt_fremdid}onmouseover="overlib('{$order->bezahlt_fremdid}');" onmouseout="nd();"{/if}>{$order->zahlart_name}{/if}</span></div>
|
|
|
1361 |
</div>
|
|
|
1362 |
<div id="bezahltDialog"></div>
|
|
|
1363 |
{/if}
|
|
|
1364 |
<!-- Bezahlstatus ENDE -->
|
|
|
1365 |
</td>
|
|
|
1366 |
{*/if*}
|
|
|
1367 |
</tr>
|
|
|
1368 |
{if $bestellung_logistiker}
|
|
|
1369 |
<tr>
|
|
|
1370 |
<td class="links">Logistiker: </td>
|
|
|
1371 |
<td>
|
|
|
1372 |
<div style="float:left;padding:0 0 5px 0;">
|
|
|
1373 |
{if $order->status=="storniert"}
|
|
|
1374 |
{if $logistiker_sel}
|
|
|
1375 |
{$logistiker.$logistiker_sel}
|
|
|
1376 |
{else}
|
|
|
1377 |
kein Logistiker gewählt
|
|
|
1378 |
{/if}
|
|
|
1379 |
{else}
|
|
|
1380 |
<span class="print logistikerPrint"></span>
|
|
|
1381 |
{html_options id='logistiker_id' name="logistiker_id" options=$logistiker selected=$logistiker_sel class="noprint"}
|
|
|
1382 |
<script>
|
|
|
1383 |
$(document).ready(function(){
|
|
|
1384 |
$(".logistikerPrint").text($("#logistiker_id option:selected").text());
|
|
|
1385 |
});
|
|
|
1386 |
</script>
|
|
|
1387 |
{if $order->logistiker_mail==1}
|
|
|
1388 |
<i class="fa fa-envelope-o" title="Kunde möchte E-Mail an Logistiker übergeben"></i>
|
|
|
1389 |
{/if}
|
|
|
1390 |
{if $labeldruck===true}
|
|
|
1391 |
<a class="labeldruck noprint" title="Versandlabel drucken"><img src="/images/navigation/drucker.png" alt=""/></a>
|
|
|
1392 |
{elseif $labeldruck=="export"}
|
|
|
1393 |
<a class="labeldruck noprint" title="Bestellung exportieren"><img src="/images/navigation/drucker.png" alt=""/></a>
|
|
|
1394 |
{/if}
|
|
|
1395 |
{if $produktionsverbuchung === true}
|
| 25 |
lars |
1396 |
<a class="produktionsverbuchung noprint" title="Produktion verbuchen"><img src="/images/Icons/edit2.png" alt=""/></a>
|
| 24 |
lars |
1397 |
{/if}
|
|
|
1398 |
{/if}
|
|
|
1399 |
{if $order->status!='storniert'}
|
|
|
1400 |
<a class="button noprint" title="Paketverfolgungsnummern zuordnen"><img src="/images/navigation/kreuz.png" alt=""/></a>
|
|
|
1401 |
{/if}
|
|
|
1402 |
</div>
|
|
|
1403 |
|
|
|
1404 |
<span style="float:left;display:inline;{if !$daten.paketdienst.nummern}display:none;{/if}" id="tracking">
|
|
|
1405 |
{include file="trackingnr.tpl"}
|
|
|
1406 |
</span>
|
|
|
1407 |
|
|
|
1408 |
|
|
|
1409 |
</td>
|
|
|
1410 |
{if $order->kk_info.anbieter=="klarna"}
|
|
|
1411 |
<td>
|
|
|
1412 |
<img src="https://cdn.klarna.com/1.0/shared/image/generic/logo/de_de/basic/logo_black.png?width=70" alt="Klarna Logo" />
|
|
|
1413 |
<a style="font-weight: bold; margin-right: 5px; float: right;" href="https://eu.portal.klarna.com/" target="_blank">Zum Klarna Händlerportal</a>
|
|
|
1414 |
</td>
|
|
|
1415 |
{/if}
|
|
|
1416 |
</tr>
|
|
|
1417 |
{/if}
|
|
|
1418 |
<tr>
|
|
|
1419 |
<td valign="top" class="links noprint">
|
|
|
1420 |
{if $order->login_id>=100}
|
|
|
1421 |
<a href="/logins/logins.php?action=edit&ID={$order->login_id}">
|
|
|
1422 |
{/if}
|
|
|
1423 |
Kunde:
|
|
|
1424 |
{if $order->login_id>=100}
|
|
|
1425 |
{$order->login_id}
|
|
|
1426 |
</a>
|
|
|
1427 |
{if $order->status}
|
|
|
1428 |
<br/>
|
|
|
1429 |
Userlevel: {$order->status}
|
|
|
1430 |
{/if}
|
|
|
1431 |
{else}
|
|
|
1432 |
<span title="{$order->login_id}">
|
|
|
1433 |
{$daten.Login.name}
|
|
|
1434 |
</span>
|
|
|
1435 |
<input type="button" id="umwandeln" value="in Kundenkonto umwandeln">
|
|
|
1436 |
{/if}
|
|
|
1437 |
</td>
|
|
|
1438 |
<td class="" colspan="2" style="background-color:#eaeaea;">
|
|
|
1439 |
<table cellpadding="0" cellspacing="0" class="anschrift">
|
|
|
1440 |
<tr>
|
|
|
1441 |
<td>
|
|
|
1442 |
<div class="editButtons noprint">
|
|
|
1443 |
|
|
|
1444 |
{* Kommentar / Sprechblase *}
|
|
|
1445 |
{if $order->billAddr->comment}
|
|
|
1446 |
<i style="color:#ff4040;" class="fa fa-commenting-o" aria-hidden="true" title="{$order->billAddr->comment}"></i>
|
|
|
1447 |
{/if}
|
|
|
1448 |
|
|
|
1449 |
{if $order->billAddr->email}
|
|
|
1450 |
<a style="cursor:pointer;" {if $dialog}id="mailTemplateButton"{else} href="javascript:void(window.open('MailClient/index.php?id=0&Bestellung={$order->id}&shop={$order->shop_id}&button=Mailausgang', 'MailClient', 'status, menubar, height=600, width=900, scrollbars=yes'));"{/if} title="E-Mail an {$order->billAddr->email} verfassen"><i class="fa fa-envelope-o" aria-hidden="true"></i></a>
|
|
|
1451 |
{/if}
|
|
|
1452 |
|
|
|
1453 |
|
|
|
1454 |
|
|
|
1455 |
{if $order->billAddr->phone}
|
|
|
1456 |
<a title="Rechnungsadresse anrufen" href="callto:{$order->billAddr->phone}" class="noprint"><i class="fa fa-phone" aria-hidden="true"></i></a>
|
|
|
1457 |
{/if}
|
|
|
1458 |
{*if isset($order->bill_addr_id) && $order->bill_addr_id != NULL && $order->bill_addr_id > 0 && $order->bill_addr_id != ""*}
|
|
|
1459 |
<i title="Rechnungsadresse ändern" style="cursor:pointer;" class="fa fa-pencil noprint changeRechnungsadresse" aria-hidden="true"></i>
|
|
|
1460 |
{*/if*}
|
|
|
1461 |
</div>
|
|
|
1462 |
|
|
|
1463 |
{if $order->status!="storniert"}
|
|
|
1464 |
<strong>Rechnungsadresse:</strong>
|
|
|
1465 |
<!-- Firma -->
|
|
|
1466 |
{if $order->billAddr->company}
|
|
|
1467 |
<br />{$order->billAddr->compay}
|
|
|
1468 |
{/if}
|
|
|
1469 |
{if $order->billAddr->company2}
|
|
|
1470 |
<br />{$order->billAddr->company2}
|
|
|
1471 |
{/if}
|
|
|
1472 |
|
|
|
1473 |
{if $order->billAddr->name || $order->billAddr->lastname}
|
|
|
1474 |
<br />
|
|
|
1475 |
{if $order->billAddr->salutation!="Firma"}
|
|
|
1476 |
{$order->billAddr->salutation}
|
|
|
1477 |
{/if}
|
|
|
1478 |
{if $order->billAddr->pro_title}
|
|
|
1479 |
{$order->billAddr->pro_title}
|
|
|
1480 |
{/if}
|
|
|
1481 |
{if $order->billAddr->name}
|
|
|
1482 |
{$order->billAddr->name}
|
|
|
1483 |
{/if}
|
|
|
1484 |
|
|
|
1485 |
{if $order->billAddr->lastname}
|
|
|
1486 |
{$order->billAddr->lastname}
|
|
|
1487 |
{/if}
|
|
|
1488 |
{/if}
|
|
|
1489 |
|
|
|
1490 |
{if $order->billAddr->street}
|
|
|
1491 |
<br />{$order->billAddr->street} {$order->billAddr->houseno}
|
|
|
1492 |
{/if}
|
|
|
1493 |
{if $order->billAddr->street2}
|
|
|
1494 |
<br />{$order->billAddr->street2}
|
|
|
1495 |
{/if}
|
|
|
1496 |
|
|
|
1497 |
{if $order->billAddr->zip || $order->billAddr->city}
|
|
|
1498 |
<br />{$order->billAddr->zip} {$order->billAddr->city}
|
|
|
1499 |
{/if}
|
|
|
1500 |
|
|
|
1501 |
{if $order->billAddr->county->name}
|
|
|
1502 |
<br />
|
|
|
1503 |
{$order->billAddr->country->name}
|
|
|
1504 |
{/if}
|
|
|
1505 |
|
|
|
1506 |
{if $order->billAddr->phone}
|
|
|
1507 |
<br />Tel.: {$order->billAddr->phone}
|
|
|
1508 |
{/if}
|
|
|
1509 |
|
|
|
1510 |
{if $order->billAddr->phone2}
|
|
|
1511 |
<br />Mobil: {$order->billAddr->phone2}
|
|
|
1512 |
{/if}
|
|
|
1513 |
|
|
|
1514 |
{if $order->billAddr->fax}
|
|
|
1515 |
<br />Fax: {$order->billAddr->fax}
|
|
|
1516 |
{/if}
|
|
|
1517 |
|
|
|
1518 |
{if $order->billAddr->vat_id}
|
|
|
1519 |
<br />VAT ID: {$order->billAddr->vat_id}
|
|
|
1520 |
{/if}
|
|
|
1521 |
|
|
|
1522 |
{if $order->billAddr->email}
|
|
|
1523 |
<br />{$order->billAddr->email}
|
|
|
1524 |
{/if}
|
|
|
1525 |
|
|
|
1526 |
|
|
|
1527 |
{if $order->geburtsdatum}
|
|
|
1528 |
<br />Geburtsdatum: {$order->geburtsdatum|date_format:"%x"}
|
|
|
1529 |
{/if}
|
|
|
1530 |
{if $order->schufa_result}
|
|
|
1531 |
<br /><a class="schufa" title="{$order->schufa_result|nl2br}"> </a>
|
|
|
1532 |
{/if}
|
|
|
1533 |
|
|
|
1534 |
|
|
|
1535 |
{/if}
|
|
|
1536 |
|
|
|
1537 |
|
|
|
1538 |
</td>
|
|
|
1539 |
</tr>
|
|
|
1540 |
</table>
|
|
|
1541 |
|
|
|
1542 |
|
|
|
1543 |
{if $order->shipAddr->name}
|
|
|
1544 |
|
|
|
1545 |
<table cellpadding="0" cellspacing="0" class="lieferanschrift">
|
|
|
1546 |
<tr>
|
|
|
1547 |
<td>
|
|
|
1548 |
<div class="editButtons noprint">
|
|
|
1549 |
|
|
|
1550 |
{* Kommentar / Sprechblase *}
|
|
|
1551 |
{if $order->shipAddr->comment}
|
|
|
1552 |
<i style="color:#ff4040;" class="fa fa-commenting-o" aria-hidden="true" title="{$order->shipAddr->comment}"></i>
|
|
|
1553 |
{/if}
|
|
|
1554 |
|
|
|
1555 |
|
|
|
1556 |
{if $order->status!='storniert' && $order->shipAddr->email && $order->shipAddr->email!=$order->billAddr->email}
|
|
|
1557 |
<a style="cursor:pointer;" {if $dialog}id="mailTemplateButton"{else} href="javascript:void(window.open('MailClient/index.php?id=0&Bestellung={$order->id}&shop={$order->shops_ID}&button=Mailausgang{if $order->shipAddr->email != $order->liefer_E_Mail}&email={$order->liefer_E_Mail}{/if}', 'MailClient', 'status, menubar, height=600, width=900, scrollbars=yes'));"{/if} title="E-Mail an {$order->shipAddr->email} verfassen">
|
|
|
1558 |
<i class="fa fa-envelope-o" aria-hidden="true"></i></a>
|
|
|
1559 |
{/if}
|
|
|
1560 |
|
|
|
1561 |
{if $order->status!='storniert' && $order->shipAddr->phone}
|
|
|
1562 |
<a title="Lieferadresse anrufen" style="text-decoration:none" href="callto:{$order->shipAddr->phone}" class="noprint">
|
|
|
1563 |
<i class="fa fa-phone" aria-hidden="true"></i>
|
|
|
1564 |
</a>
|
|
|
1565 |
{/if}
|
|
|
1566 |
|
|
|
1567 |
{if $order->status!="storniert"}
|
|
|
1568 |
{if ( isset($user_rechte.Warenwirtschaft.bestellung.lieferadresse_aendern) )}
|
|
|
1569 |
<i title="Lieferadresse ändern" style="cursor:pointer;" class="fa fa-pencil noprint changeLieferadresse" aria-hidden="true"></i>
|
|
|
1570 |
|
|
|
1571 |
{*}
|
|
|
1572 |
<input type="button" value="Lieferadresse {if $order->liefer_Strasse||$order->liefer_Name||$order->liefer_PLZ||$order->liefer_Ort||$order->liefer_Land||$order->liefer_Firma||$order->liefer_Str_Nr}bearbeiten{else}anlegen{/if}" class="noprint changeLieferadresse"/>
|
|
|
1573 |
{*}
|
|
|
1574 |
{/if}
|
|
|
1575 |
{/if}
|
|
|
1576 |
</div>
|
|
|
1577 |
|
|
|
1578 |
<strong>Lieferadresse:</strong>
|
|
|
1579 |
|
|
|
1580 |
{if $order->shipAddr->company != ''}
|
|
|
1581 |
<br />{$order->company}
|
|
|
1582 |
{/if}
|
|
|
1583 |
{if $order->shipAddr->company2 != ''}
|
|
|
1584 |
<br />{$order->shipAddr->company2}
|
|
|
1585 |
{/if}
|
|
|
1586 |
|
|
|
1587 |
{if $order->shipAddr->salutation || $order->shipAddr->name || $order->shipAddr->lastname}
|
|
|
1588 |
<br />
|
|
|
1589 |
{if $order->shipAddr->salutation!="Firma"}
|
|
|
1590 |
{$order->shipAddr->salutation}
|
|
|
1591 |
{/if}
|
|
|
1592 |
{if $order->shipAddr->pro_title}
|
|
|
1593 |
{$order->shipAddr->pro_title}
|
|
|
1594 |
{/if}
|
|
|
1595 |
{$order->shipAddr->name} {$order->shipAddr->lastname}
|
|
|
1596 |
{/if}
|
|
|
1597 |
|
|
|
1598 |
{if $order->shipAddr->street || $order->shipAddr->houseno}
|
|
|
1599 |
<br />{$order->shipAddr->street} {$order->shipAddr->houseno}
|
|
|
1600 |
{/if}
|
|
|
1601 |
|
|
|
1602 |
{if $order->shipAddr->street2}
|
|
|
1603 |
<br />{$order->shipAddr->street2}
|
|
|
1604 |
{/if}
|
|
|
1605 |
|
|
|
1606 |
{if $order->shipAddr->zip || $order->shipAddr->city}
|
|
|
1607 |
<br />{$order->shipAddr->zip} {$order->shipAddr->city}
|
|
|
1608 |
{/if}
|
|
|
1609 |
|
|
|
1610 |
{if $order->shipAddr->country->name}
|
|
|
1611 |
<br />{$order->shipAddr->country->name}
|
|
|
1612 |
{/if}
|
|
|
1613 |
|
|
|
1614 |
{if $order->status!='storniert' && $order->shipAddr->phone}
|
|
|
1615 |
<br />Tel.: {$order->shipAddr->phone}
|
|
|
1616 |
{/if}
|
|
|
1617 |
|
|
|
1618 |
{if $order->shipAddr->phone2}
|
|
|
1619 |
<br />Mobil: {$order->shipAddr->phone2}
|
|
|
1620 |
{/if}
|
|
|
1621 |
|
|
|
1622 |
{if $order->shipAddr->fax}
|
|
|
1623 |
<br />Fax: {$order->shipAddr->fax}
|
|
|
1624 |
{/if}
|
|
|
1625 |
|
|
|
1626 |
{if $order->shipAddr->email}
|
|
|
1627 |
<br />{$order->shipAddr->email}
|
|
|
1628 |
{/if}
|
|
|
1629 |
|
|
|
1630 |
{if $order->shipAddr->birthday}
|
|
|
1631 |
<br />Geburtsdatum: {$order->shipAddr->birthday|date_format:"%x"}
|
|
|
1632 |
{if $order->shipAddr->schufa_result}
|
|
|
1633 |
<a class="schufa ui-icon ui-icon-info" style="float:left;cursor:help;margin-right:10px;" title="{$order->shipAddr->schufa_result|nl2br}"> </a>
|
|
|
1634 |
{/if}
|
|
|
1635 |
{/if}
|
|
|
1636 |
|
|
|
1637 |
|
|
|
1638 |
|
|
|
1639 |
|
|
|
1640 |
</td>
|
|
|
1641 |
</tr>
|
|
|
1642 |
</table>
|
|
|
1643 |
{else}
|
|
|
1644 |
<input type="button" value="Lieferadresse anlegen" class="noprint changeLieferadresse addLieferadresse"/>
|
|
|
1645 |
{/if}
|
|
|
1646 |
</td>
|
|
|
1647 |
</tr>
|
|
|
1648 |
<tr>
|
|
|
1649 |
<td valign="top" class="links noprint">
|
|
|
1650 |
<p>
|
|
|
1651 |
Artikel:
|
|
|
1652 |
{if $verborgeneArtikel===true}
|
|
|
1653 |
{if $view_data.showHiddenItems===true}
|
|
|
1654 |
<a class="hideHiddenItems">verborgene Artikel ausblenden</a>
|
|
|
1655 |
{else}
|
|
|
1656 |
<a class="showHiddenItems">verborgene Artikel einblenden</a>
|
|
|
1657 |
{/if}
|
|
|
1658 |
{/if}
|
|
|
1659 |
</p>
|
|
|
1660 |
</td>
|
|
|
1661 |
<td align="right" class="rechts artikelTabelle" colspan="2">
|
|
|
1662 |
<table class="artikelListe">
|
|
|
1663 |
<tr>
|
|
|
1664 |
<td class="leereUeberschrift"> </td>
|
|
|
1665 |
<td class="leereUeberschrift"> </td>
|
|
|
1666 |
<td class="leereUeberschrift">
|
|
|
1667 |
<div class="artikelDaten tabelle">
|
|
|
1668 |
<div>
|
|
|
1669 |
<div class="ersteZelle"> </div>
|
|
|
1670 |
<div class="zweiteZelle"> </div>
|
|
|
1671 |
<div class="dritteZelle noprint">EP {0|money_format_red:0:$order->locale:true}
|
|
|
1672 |
</div>
|
|
|
1673 |
<div class="noprint" style="width:26px;"></div>
|
|
|
1674 |
</div>
|
|
|
1675 |
</div>
|
|
|
1676 |
</td>
|
|
|
1677 |
<td class="leereUeberschrift noprint">Ges. {0|money_format_red:0:$order->locale:true}</td>
|
|
|
1678 |
<td class="rechts ueberschrift">Artikelstatus</td>
|
|
|
1679 |
{if isset($user_rechte.Warenwirtschaft.bestellung.rechnungStatus)}
|
|
|
1680 |
<td class="rechts ueberschrift">Rechnung</td>
|
|
|
1681 |
{/if}
|
|
|
1682 |
{if isset($user_rechte.Warenwirtschaft.bestellung.lieferscheinStatus)}
|
|
|
1683 |
<td class="rechts ueberschrift">Lieferschein</td>
|
|
|
1684 |
{/if}
|
|
|
1685 |
{if isset($user_rechte.Warenwirtschaft.bestellung.mahnungStatus)}
|
|
|
1686 |
<td class="rechts ueberschrift">Mahnung</td>
|
|
|
1687 |
{/if}
|
|
|
1688 |
{if isset($user_rechte.Warenwirtschaft.bestellung.garantieStatus)}
|
|
|
1689 |
<td class="rechts ueberschrift">Garantieantrag</td>
|
|
|
1690 |
{/if}
|
|
|
1691 |
</tr>
|
|
|
1692 |
{assign var=i value=0}
|
|
|
1693 |
{foreach $order->orderItem as $orderItem}
|
|
|
1694 |
{if $orderItem->item->directory_id!=-3 && ($orderItem->status!="verborgen"||$view_data.showHiddenItems==true)}
|
|
|
1695 |
<tr class="{cycle values="darkgray,lightgray"}">
|
|
|
1696 |
<td>
|
|
|
1697 |
{if !$orderItem->order_item_id}
|
|
|
1698 |
{assign var=i value=$i+1}
|
|
|
1699 |
{$i}
|
|
|
1700 |
{else}
|
|
|
1701 |
<img class="ui-icon ui-icon-arrowreturnthick-1-e" style="border:0" />
|
|
|
1702 |
{/if}
|
|
|
1703 |
</td>
|
|
|
1704 |
<td class="artikelKennung" style="width:50px;">
|
|
|
1705 |
{if $orderItem->status=="storniert"}
|
|
|
1706 |
{$orderItem->kennung|strike}
|
|
|
1707 |
{else}
|
|
|
1708 |
{$orderItem->kennung}
|
|
|
1709 |
{/if}
|
|
|
1710 |
</td>
|
|
|
1711 |
<td {if $order->status!='storniert'} ondblclick="display_artikel({$orderItem->id},'');"{/if} >
|
|
|
1712 |
<input type="hidden" id="artikel_{$orderItem->id}_changed" name="artikel_{$orderItem->id}_changed" value="0"/>
|
|
|
1713 |
<div class="artikelDaten tabelle">
|
|
|
1714 |
<div>
|
|
|
1715 |
<div class="ersteZelle">
|
|
|
1716 |
{if !$orderItem->order_item_id}
|
|
|
1717 |
<span id="eingabe_menge_{$orderItem->id}" style="display:none;">
|
|
|
1718 |
<input type="text" name="cmd[artikel_to_Bestellung][{$orderItem->id}][Menge]" size="2" value="{$orderItem->amount}"/>
|
|
|
1719 |
</span>
|
|
|
1720 |
{/if}
|
|
|
1721 |
<span id="ausgabe_menge_{$orderItem->id}">
|
|
|
1722 |
{if $orderItem->status=="storniert"}
|
|
|
1723 |
{$orderItem->amount|number_format:3:",":"."|rtrim:0|rtrim:","|strike}<strike> x </strike>
|
|
|
1724 |
{else}
|
|
|
1725 |
{if $orderItem->bestellte_menge!=$orderItem->gelieferte_menge && $orderItem->bestellte_menge!=0}{$orderItem->bestellte_menge|number_format:3:",":"."|rtrim:0|rtrim:","|strike} {$orderItem->einheit|strike}{/if}
|
|
|
1726 |
{if $orderItem->einheit}{$orderItem->gelieferte_menge|number_format:3:",":"."|rtrim:0|rtrim:","} {$orderItem->einheit}{else}{$orderItem->amount|number_format:3:",":"."|rtrim:0|rtrim:","} x{/if}
|
|
|
1727 |
{/if}
|
|
|
1728 |
</span>
|
|
|
1729 |
</div>
|
|
|
1730 |
<div class="zweiteZelle" style="display:contents;">
|
|
|
1731 |
{if !$orderItem->order_item_id}
|
|
|
1732 |
<span id="eingabe_bez_{$orderItem->id}" style="display:none;">
|
|
|
1733 |
<input type="text" name="cmd[artikel_to_Bestellung][{$orderItem->id}][Bezeichnung]" size="45" value="{$orderItem->name|htmlentities:$smarty.const.ENT_COMPAT:$smarty.session.charset|default:$orderItem->kurzbezeichnung|htmlentities}"/>
|
|
|
1734 |
|
|
|
1735 |
</span>
|
|
|
1736 |
{/if}
|
|
|
1737 |
<span id="ausgabe_bez_{$orderItem->id}" class="bestandskennzeichnung" {if $orderItem->bestandsmenge > 0}style="background-color: {$bestandskennzeichnungsfarbe};" {/if}>
|
|
|
1738 |
{if $orderItem->order_item_id}
|
|
|
1739 |
<img class="ui-icon ui-icon-arrowreturnthick-1-e" style="border:0;display:inline;" />
|
|
|
1740 |
{/if}
|
|
|
1741 |
{if $orderItem->status=="storniert"}
|
|
|
1742 |
{$orderItem->hersteller|strike} {$orderItem->name|default:$orderItem->kurzbezeichnung|strike} {$orderItem->option_eingabe|strike}
|
|
|
1743 |
{else}
|
|
|
1744 |
{$orderItem->hersteller} {$orderItem->name|default:$orderItem->kurzbezeichnung} {$orderItem->option_eingabe}
|
|
|
1745 |
{/if}
|
|
|
1746 |
</span>
|
|
|
1747 |
|
|
|
1748 |
<span class="noprint">(
|
|
|
1749 |
{if $orderItem->item_id}
|
|
|
1750 |
{if $order->status!='storniert'}
|
|
|
1751 |
|
|
|
1752 |
|
| 25 |
lars |
1753 |
<a href="{if $d_shops[$order->shops_ID].domain}https://webanos.{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={$orderItem->child_id|default:$orderItem->item_id}" target="_blank" class="noprint">{/if}<img src="/images/Icons/Info_icon.png" align="absmiddle" class="popup" title="Artikelverwaltung" />{if $order->status!='storniert'}</a>{/if}
|
| 24 |
lars |
1754 |
{if $d_shops[$order->shops_ID].domain}
|
|
|
1755 |
|
|
|
|
1756 |
{if $order->status!='storniert'}
|
| 25 |
lars |
1757 |
<a href="https://www.{$d_shops[$order->shops_ID].domain}/index.php?item={$orderItem->child_id|default:$orderItem->item_id}" target="_blank">{/if}<img src="/images/Icons/Warenkorb_icon.png" align="absmiddle" class="popup" title="Artikel im Shop aufrufen" />{if $order->status!='storniert'}</a>{/if}
|
| 24 |
lars |
1758 |
{/if}
|
|
|
1759 |
{if $order->status!='storniert' && $orderItem->item->medium[0]->medium->name}|
|
| 25 |
lars |
1760 |
<img src="/images/Icons/fotoaperat_icon.png" align="absmiddle" class="popupImg" id="{$d_shops[$order->shops_ID].domain}/images/upload/{$orderItem->item->medium[0]->medium->folder}/mini/{$orderItem->item->medium[0]->medium->name}" alt=""/>
|
| 24 |
lars |
1761 |
{/if}
|
|
|
1762 |
{/if}
|
|
|
1763 |
{include file="admin/ipad_edit.tpl" id=$orderItem->id art=""}
|
|
|
1764 |
{if ( isset( $user_rechte["Warenwirtschaft"]["bestellung"]["lieferantenbestellung"] ) )}
|
|
|
1765 |
{if $orderItem->price > 0}
|
| 25 |
lars |
1766 |
| {if $order->status!='storniert'}<a class="lager" id="lager_{$orderItem->item_id}_{$order->id}_{$order->shop_id}_{$orderItem->amount}_{$orderItem->id}" style="display:inline;">{/if}<img src="/images/Icons/Order_icon.png" align="absmiddle" class="popup" title="Lieferantenbestellung" />{if $order->status!='storniert'}</a>{/if}
|
| 24 |
lars |
1767 |
{/if}
|
|
|
1768 |
{/if}
|
|
|
1769 |
|
|
|
1770 |
{if $orderItem->lieferstatusPicBest}
|
|
|
1771 |
| <a style="cursor:pointer">
|
|
|
1772 |
<img class="popup" align="absmiddle" src="{$orderItem->lieferstatusPicBest}" title="{$orderItem->lieferstatusPopUp}" /></a>
|
|
|
1773 |
{else}
|
|
|
1774 |
| <a style="cursor:pointer" class="popup" title="{$orderItem->lieferstatusPopUp}">LS</a>
|
|
|
1775 |
{/if}
|
|
|
1776 |
|
|
|
1777 |
| <i title="Artikelbeschreibung bearbeiten" data-id="{$orderItem->id}" style="cursor:pointer;" class="fa fa-pencil edit_beschreibung noprint" aria-hidden="true"></i>
|
|
|
1778 |
|
|
|
1779 |
{if $order->kk_info}
|
|
|
1780 |
<!--
|
|
|
1781 |
<a style="cursor:pointer" class="refund" title="Betrag über {$order->kk_info.anbieter} erstatten" data-refund="{$orderItem->price*$orderItem->amount}">{$order->kk_info.anbieter} Refund</a>
|
|
|
1782 |
-->
|
|
|
1783 |
{/if}
|
|
|
1784 |
{if !$orderItem->bestellte_menge && $orderItem->einheit}
|
|
|
1785 |
| <a style="cursor:pointer" title="Menge ändern" class="change_amount" id="m_{$orderItem->id}">M</a>
|
|
|
1786 |
{/if}
|
|
|
1787 |
)
|
|
|
1788 |
</span>
|
|
|
1789 |
{if $orderItem->ebay_art_id}
|
|
|
1790 |
{if $orderItem->status=="storniert"}
|
|
|
1791 |
<strike>
|
|
|
1792 |
{/if}
|
|
|
1793 |
(<a href="https://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&rd=1&item={$orderItem->ebay_art_id}" target="_blank">ebay-Auktion</a>)
|
|
|
1794 |
{if $orderItem->status=="storniert"}
|
|
|
1795 |
</strike>
|
|
|
1796 |
{/if}
|
|
|
1797 |
{/if}
|
|
|
1798 |
{if $orderItem->beschreibung}
|
|
|
1799 |
<span id="beschreibung_indikator_{$orderItem->id}"><br />[...]</span>
|
|
|
1800 |
{/if}
|
|
|
1801 |
|
|
|
1802 |
<textarea style="display:none;" id="beschreibung_{$orderItem->id}" class="artikel_beschreibung"
|
|
|
1803 |
name="cmd[artikel_to_Bestellung][{$orderItem->id}][beschreibung]"
|
|
|
1804 |
placeholder="Artikelbeschreibung">{$orderItem->beschreibung}</textarea>
|
|
|
1805 |
|
|
|
1806 |
</div>
|
|
|
1807 |
<div class="dritteZelle">
|
|
|
1808 |
{if $preise_anzeigen}
|
|
|
1809 |
{if !$orderItem->order_item_id}
|
|
|
1810 |
{if ( isset( $user_rechte.Warenwirtschaft.bestellung.steuersatz_aendern ) )}
|
|
|
1811 |
<span id="eingabe_mwst_{$orderItem->id}" style="display:none;">
|
|
|
1812 |
<select id="landMwSt_{$orderItem->id}" name="landMwSt_{$orderItem->id}" class="eingabe_landMwSt">
|
|
|
1813 |
{foreach $laenderMwSt as $index => $laenderDaten}
|
|
|
1814 |
<option id="{$laenderDaten["id"]}" value="{$laenderDaten["typ_id"]}" {if $orderItem->tax == $laenderDaten["typ_id"]}selected{/if}>{$laenderDaten["bezeichnung"]}</option>
|
|
|
1815 |
{/foreach}
|
|
|
1816 |
</select>
|
|
|
1817 |
<input type="hidden" value="{$laenderDaten["typ_id"]}" class="mwstLand"/>
|
|
|
1818 |
</span>
|
|
|
1819 |
{/if}
|
|
|
1820 |
<span id="eingabe_preis_{$orderItem->id}" style="display:none;">
|
|
|
1821 |
|
|
|
1822 |
<input style="margin:3px 0!important;" type="text" name="cmd[artikel_to_Bestellung][{$orderItem->id}][price]" size="5" value="{$orderItem->price|number_format:2:",":""}" />
|
|
|
1823 |
|
|
|
1824 |
<div class="artikel_aktionen">
|
|
|
1825 |
<a onmouseover="overlib('Artikel als storniert markieren.');" onmouseout="return nd();" onclick="change_status('a',{$order->id},{$orderItem->id},'S','storniert');" style="cursor:pointer">X</a>
|
|
|
1826 |
|
|
|
1827 |
{if isset($user_rechte.Warenwirtschaft.bestellung.artikel_loeschen)}
|
|
|
1828 |
|
|
|
1829 |
<a onclick="javascript:return confirm('Soll dieser Artikel wirklich gelöscht werden?\nDie Aktion kann nicht rückgängig gemacht werden.');" href="/Warenwirtschaft/artikel_loeschen.php?ID={$orderItem->id}&Bestellung={$order->id}"><img onmouseover="overlib('Artikel dauerhaft loeschen.');" onmouseout="return nd();" src="/images/navigation/trashcan.gif" /></a>
|
|
|
1830 |
|
|
|
1831 |
{/if}
|
|
|
1832 |
</div>
|
|
|
1833 |
</span>
|
|
|
1834 |
{/if}
|
|
|
1835 |
<span id="ausgabe_preis_{$orderItem->id}" class="preise" style="text-align:right;white-space: nowrap">
|
|
|
1836 |
{if $orderItem->status=="storniert"}
|
|
|
1837 |
{$orderItem->price|money_format_red:2:$order->locale:false:false|strike}
|
|
|
1838 |
{else}
|
|
|
1839 |
{if $orderItem->original_preis>0}{$orderItem->original_preis|money_format_red:2:$order->locale:false:false|strike}<br />{/if}
|
|
|
1840 |
{$orderItem->price|money_format_red:2:$order->locale:false:false}
|
|
|
1841 |
{/if}
|
|
|
1842 |
{if $mwst_ausgabe==1}
|
|
|
1843 |
|
|
|
1844 |
<span style="text-align:right;vertical-align:top;">
|
|
|
1845 |
{if isset($orderItem->tax)}
|
|
|
1846 |
{$tax=$orderItem->tax}
|
|
|
1847 |
{else}
|
|
|
1848 |
{$tax=$orderItem->item->tax}
|
|
|
1849 |
{/if}
|
|
|
1850 |
<sup onmouseover="return overlib('<b> {if $tax==0}19{elseif $tax==1}7{elseif $tax==2}0{/if}% MwSt.</b>', CAPTION, '', HAUTO, VAUTO,WIDTH,90,BORDER,2);" onmouseout="return nd();" style="cursor:help;">
|
|
|
1851 |
{$tax+1}
|
|
|
1852 |
</sup>
|
|
|
1853 |
</span>
|
|
|
1854 |
{/if}
|
|
|
1855 |
</span>
|
|
|
1856 |
{/if}
|
|
|
1857 |
</div>
|
|
|
1858 |
{if isset($web_rechte["Warenwirtschaft"]["bestellung"]["artikel_sortieren"])}
|
|
|
1859 |
<div class="noprint" style="width:32px;">
|
|
|
1860 |
{if $order->status!='storniert'&&!$orderItem->order_item_id}
|
|
|
1861 |
{if $i!=1}
|
|
|
1862 |
<a href="{$script_name}?Bestellung={$order->id}&dir=up&id={$orderItem->id}"><img src="../images/Online-Shop/directory/Pfeil_oben.png" alt="auf" border="0" width="14" /></a>
|
|
|
1863 |
{/if}
|
|
|
1864 |
{if $smarty.section.a_ind.index < $artikel_anzahl -1 && ($orderItem->isKombi===false||$i==1)}
|
|
|
1865 |
<a href="{$script_name}?Bestellung={$order->id}&dir=down&id={$orderItem->id}"><img src="../images/Online-Shop/directory/Pfeil_unten.png" alt="ab" border="0" width="14" /></a>
|
|
|
1866 |
{/if}
|
|
|
1867 |
{/if}
|
|
|
1868 |
</div>
|
|
|
1869 |
{/if}
|
|
|
1870 |
</div>
|
|
|
1871 |
</div>
|
|
|
1872 |
</td>
|
|
|
1873 |
<td class="preise noprint" style="text-align:right;white-space: nowrap;width:50px;vertical-align:middle">
|
|
|
1874 |
{if $preise_anzeigen}
|
|
|
1875 |
{if $orderItem->status=="storniert"}
|
|
|
1876 |
{if $orderItem->einheit!=""}
|
|
|
1877 |
{$orderItem->price*$orderItem->gelieferte_menge/($orderItem->bestellte_menge/$orderItem->amount)|money_format_red:2:$order->locale:false:false|strike}
|
|
|
1878 |
{else}
|
|
|
1879 |
{$orderItem->price* $orderItem->amount|money_format_red:2:$order->locale:false:false|strike}
|
|
|
1880 |
{/if}
|
|
|
1881 |
{else}
|
|
|
1882 |
{if $orderItem->einheit!=""}
|
|
|
1883 |
{$orderItem->price*$orderItem->gelieferte_menge/($orderItem->bestellte_menge/$orderItem->amount)|money_format_red:2:$order->locale:false:false}
|
|
|
1884 |
{else}
|
|
|
1885 |
{($orderItem->price* $orderItem->amount)|money_format_red:2:$order->locale:false:false}
|
|
|
1886 |
{/if}
|
|
|
1887 |
{/if}
|
|
|
1888 |
{/if}
|
|
|
1889 |
</td>
|
|
|
1890 |
<td class="statusVierKaestchen" bgcolor="#eaeaea">
|
|
|
1891 |
<input type="hidden" id="a_{$orderItem->id}_status_f" value="{$orderItem->status}"/>
|
|
|
1892 |
<div class="kaestchenWrapper">
|
|
|
1893 |
{section loop=$daten.artikel_stati name=as_ind}
|
|
|
1894 |
{if $orderItem->status==$daten.artikel_stati[as_ind].name}
|
|
|
1895 |
{assign var=class value=$daten.artikel_stati[as_ind].class}
|
|
|
1896 |
{else}
|
|
|
1897 |
{assign var=class value="status_off"}
|
|
|
1898 |
{/if}
|
|
|
1899 |
<span nowrap="nowrap" {if $daten.artikel_stati[as_ind].name} class="darkgray kaestchen"{/if}>
|
|
|
1900 |
<a class="{$class}" {if $order->status!='storniert'}onclick="change_status('a', {$order->id},{$orderItem->id},'{$daten.artikel_stati[as_ind].short}','{$daten.artikel_stati[as_ind].name}');return false;" style="cursor:pointer"{/if} id="a_{$orderItem->id}_{$daten.artikel_stati[as_ind].short}" title="{$daten.artikel_stati[as_ind].name}"> {$daten.artikel_stati[as_ind].short} </a>
|
|
|
1901 |
</span>
|
|
|
1902 |
{/section}
|
|
|
1903 |
</div>
|
|
|
1904 |
</td>
|
|
|
1905 |
|
|
|
1906 |
{if isset($user_rechte.Warenwirtschaft.bestellung.rechnungStatus)}
|
|
|
1907 |
<td class="statusDreiKaestchen" bgcolor="#eaeaea">
|
|
|
1908 |
<input type="hidden" id="r_{$orderItem->id}_status_f" value="{$orderItem->rechnungstatus}"/>
|
|
|
1909 |
<div class="kaestchenWrapper">
|
|
|
1910 |
{section loop=$daten.rechnung_stati name=rs_ind}
|
|
|
1911 |
{if $orderItem->rechnungstatus==$daten.rechnung_stati[rs_ind].name}
|
|
|
1912 |
{assign var=class value=$daten.rechnung_stati[rs_ind].class}
|
|
|
1913 |
{else}
|
|
|
1914 |
{assign var=class value="status_off"}
|
|
|
1915 |
{/if}
|
|
|
1916 |
<span nowrap="nowrap" {if $daten.rechnung_stati[rs_ind].name} class="darkgray kaestchen"{/if}>
|
|
|
1917 |
<a class="{$class}" {if $order->status!='storniert'}onclick="change_status('r', {$order->id},{$orderItem->id},'{$daten.rechnung_stati[rs_ind].short}','{$daten.rechnung_stati[rs_ind].name}');return false;" style="cursor:pointer"{/if} id="r_{$orderItem->id}_{$daten.rechnung_stati[rs_ind].short}" title="{$daten.rechnung_stati[rs_ind].name}"> {$daten.rechnung_stati[rs_ind].short} </a>
|
|
|
1918 |
</span>
|
|
|
1919 |
{/section}
|
|
|
1920 |
</div>
|
|
|
1921 |
</td>
|
|
|
1922 |
{/if}
|
|
|
1923 |
{if isset($user_rechte.Warenwirtschaft.bestellung.lieferscheinStatus)}
|
|
|
1924 |
<td class="statusDreiKaestchen" bgcolor="#eaeaea">
|
|
|
1925 |
<input type="hidden" id="l_{$orderItem->id}_status_f" value="{$orderItem->lieferscheinStatus}"/>
|
|
|
1926 |
<div class="kaestchenWrapper">
|
|
|
1927 |
{section loop=$daten.lieferschein_stati name=ls_ind}
|
|
|
1928 |
{if $orderItem->lieferscheinStatus==$daten.lieferschein_stati[ls_ind].name}
|
|
|
1929 |
{assign var=class value=$daten.lieferschein_stati[ls_ind].class}
|
|
|
1930 |
{else}
|
|
|
1931 |
{assign var=class value="status_off"}
|
|
|
1932 |
{/if}
|
|
|
1933 |
<span nowrap="nowrap" {if $daten.lieferschein_stati[ls_ind].name} class="darkgray kaestchen"{/if}>
|
|
|
1934 |
<a class="{$class}" {if $order->status!='storniert'}onclick="change_status('l', {$order->id},{$orderItem->id},'{$daten.lieferschein_stati[ls_ind].short}','{$daten.lieferschein_stati[ls_ind].name}');return false;" style="cursor:pointer"{/if} id="l_{$orderItem->id}_{$daten.lieferschein_stati[ls_ind].short}" title="{$daten.lieferschein_stati[ls_ind].name}"> {$daten.lieferschein_stati[ls_ind].short} </a>
|
|
|
1935 |
</span>
|
|
|
1936 |
{/section}
|
|
|
1937 |
</div>
|
|
|
1938 |
</td>
|
|
|
1939 |
{/if}
|
|
|
1940 |
{if isset($user_rechte.Warenwirtschaft.bestellung.mahnungStatus)}
|
|
|
1941 |
<td class="statusDreiKaestchen" bgcolor="#eaeaea">
|
|
|
1942 |
<input type="hidden" id="m_{$orderItem->id}_status_f" value="{$orderItem->mahnungStatus}"/>
|
|
|
1943 |
<div class="kaestchenWrapper">
|
|
|
1944 |
{section loop=$daten.mahnung_stati name=ms_ind}
|
|
|
1945 |
{if $orderItem->mahnungStatus==$daten.mahnung_stati[ms_ind].name}
|
|
|
1946 |
{assign var=class value=$daten.mahnung_stati[ms_ind].class}
|
|
|
1947 |
{else}
|
|
|
1948 |
{assign var=class value="status_off"}
|
|
|
1949 |
{/if}
|
|
|
1950 |
<span nowrap="nowrap" {if $daten.mahnung_stati[ms_ind].name} class="darkgray kaestchen"{/if}>
|
|
|
1951 |
<a class="{$class}" {if $order->status!='storniert'}onclick="change_status('m', {$order->id},{$orderItem->id},'{$daten.mahnung_stati[ms_ind].short}','{$daten.mahnung_stati[ms_ind].name}');return false;" style="cursor:pointer"{/if} id="m_{$orderItem->id}_{$daten.mahnung_stati[ms_ind].short}" title="{$daten.mahnung_stati[ms_ind].name}"> {$daten.mahnung_stati[ms_ind].short} </a>
|
|
|
1952 |
</span>
|
|
|
1953 |
{/section}
|
|
|
1954 |
</div>
|
|
|
1955 |
</td>
|
|
|
1956 |
{/if}
|
|
|
1957 |
{if isset($user_rechte.Warenwirtschaft.bestellung.garantieStatus)}
|
|
|
1958 |
<td class="statusDreiKaestchen" bgcolor="#eaeaea">
|
|
|
1959 |
<input type="hidden" id="g_{$orderItem->id}_status_f" value="{$orderItem->garantieStatus}"/>
|
|
|
1960 |
<div class="kaestchenWrapper">
|
|
|
1961 |
{section loop=$daten.garantie_stati name=gs_ind}
|
|
|
1962 |
{if $orderItem->garantieStatus==$daten.garantie_stati[gs_ind].name}
|
|
|
1963 |
{assign var=class value=$daten.garantie_stati[gs_ind].class}
|
|
|
1964 |
{else}
|
|
|
1965 |
{assign var=class value="status_off"}
|
|
|
1966 |
{/if}
|
|
|
1967 |
<span nowrap="nowrap" {if $daten.garantie_stati[gs_ind].name} class="darkgray kaestchen"{/if}>
|
|
|
1968 |
<a class="{$class}" {if $order->status!='storniert'}onclick="change_status('g', {$order->id},{$orderItem->id},'{$daten.garantie_stati[gs_ind].short}','{$daten.garantie_stati[gs_ind].name}');return false;" style="cursor:pointer"{/if} id="g_{$orderItem->id}_{$daten.garantie_stati[gs_ind].short}" title="{$daten.garantie_stati[gs_ind].name}"> {$daten.garantie_stati[gs_ind].short} </a>
|
|
|
1969 |
</span>
|
|
|
1970 |
{/section}
|
|
|
1971 |
</div>
|
|
|
1972 |
</td>
|
|
|
1973 |
{/if}
|
|
|
1974 |
{if isset($user_rechte.Warenwirtschaft.bestellung.EbayPaymentStatus) && $orderItem->ebay_PaymentStatus}
|
|
|
1975 |
<td style="text-align:center;width:14px;">
|
|
|
1976 |
{if $orderItem->ebay_PaymentStatus == 1}
|
| 25 |
lars |
1977 |
<img width="14" border="0" alt="" src="../images/Icons/ebay{$orderItem->ebay_PaymentStatus}.png" onmouseover="return overlib('Zahlungsdatum: {$orderItem->ebay_PaymentTime} <br />Zahlungsart: {$orderItem->ebay_PaymentMethodUsed}{$orderItem->ebay_PaymentID}', WIDTH, 250);" onmouseout="return nd();" />
|
| 24 |
lars |
1978 |
{else}
|
| 25 |
lars |
1979 |
<img width="14" border="0" alt="" src="../images/Icons/ebay{$orderItem->ebay_PaymentStatus}.png" onmouseover="return overlib('Artikel wurde noch nicht bezahlt', WIDTH, 300)" onmouseout="return nd();" />
|
| 24 |
lars |
1980 |
{/if}
|
|
|
1981 |
</td>
|
|
|
1982 |
{/if}
|
|
|
1983 |
</tr>
|
|
|
1984 |
|
|
|
1985 |
{if $orderItem->status=="storniert"}
|
|
|
1986 |
{assign var="preis" value=0}
|
|
|
1987 |
{assign var="menge" value=0}
|
|
|
1988 |
{else}
|
|
|
1989 |
{assign var="preis" value=$orderItem->price* $orderItem->amount}
|
|
|
1990 |
{assign var="menge" value=$orderItem->amount}
|
|
|
1991 |
{/if}
|
|
|
1992 |
{assign var="gesamtPreis" value=$gesamtPreis + $preis}
|
|
|
1993 |
{assign var="gesamtMenge" value = $gesamtMenge + $menge}
|
|
|
1994 |
{/if}
|
|
|
1995 |
{/foreach}
|
|
|
1996 |
|
|
|
1997 |
{foreach $order->orderItem as $orderItem}
|
|
|
1998 |
{if $orderItem->item->directory_id==-3}
|
|
|
1999 |
{assign var=versand_artikel value=$orderItem->id}
|
|
|
2000 |
{assign var=versand_status value=$orderItem->status}
|
|
|
2001 |
{assign var=versand_name value=$orderItem->short_line_1}
|
|
|
2002 |
{assign var=versand_datum value=$orderItem->exported}
|
|
|
2003 |
<tr class="{cycle values="darkgray,lightgray"}">
|
|
|
2004 |
<td> </td>
|
|
|
2005 |
<td> </td>
|
|
|
2006 |
<td {if $order->status!='storniert'}ondblclick="display_artikel({$orderItem->id},'V')"{/if}>
|
|
|
2007 |
<input type="hidden" id="a_{$orderItem->id}_status_f" value="{$orderItem->status}"/>
|
|
|
2008 |
<input type="hidden" id="artikel_{$orderItem->id}_changed" name="artikel_{$orderItem->id}_changed" value="0"/>
|
|
|
2009 |
<div border="0" cellspacing="0" cellpadding="0" class="tabelle artikelDaten">
|
|
|
2010 |
<div>
|
|
|
2011 |
<div class="ersteZelle" nowrap="nowrap">Versand:</div>
|
|
|
2012 |
<div class="zweiteZelle">
|
|
|
2013 |
|
|
|
2014 |
<span id="eingabe_bez_{$orderItem->id}" style="display:none;">
|
|
|
2015 |
<input
|
|
|
2016 |
|
|
|
2017 |
{if isset($web_rechte.Warenwirtschaft.bestellung.versandname_aenderbar) && !isset($user_rechte.Warenwirtschaft.bestellung.versandname_aenderbar)}
|
|
|
2018 |
readonly="readonly"
|
|
|
2019 |
{/if}
|
|
|
2020 |
|
|
|
2021 |
type="text" name="cmd[artikel_to_Bestellung][{$orderItem->id}][Bezeichnung]" size="45" value="{$orderItem->name|default:$orderItem->kurzbezeichnung|trim}" onchange="document.getElementById('artikel_'+{$orderItem->id}+'_changed').value='1';"/>
|
|
|
2022 |
|
|
|
2023 |
{if isset($user_rechte.Warenwirtschaft.bestellung.artikel_loeschen)}
|
|
|
2024 |
|
|
|
2025 |
<a onclick="javascript:return confirm('Soll diese Versandart wirklich gelöscht werden?\nDie Aktion kann nicht rückgängig gemacht werden.');" href="/Warenwirtschaft/artikel_loeschen.php?ID={$orderItem->id}&Bestellung={$order->id}"><img onmouseover="overlib('Versandartikel dauerhaft loeschen.');" onmouseout="return nd();" src="/images/navigation/trashcan.gif" /></a>
|
|
|
2026 |
|
|
|
2027 |
{/if}
|
|
|
2028 |
|
|
|
2029 |
</span>
|
|
|
2030 |
<span id="ausgabe_bez_{$orderItem->id}">
|
|
|
2031 |
{$orderItem->name|default:$orderItem->kurzbezeichnung}
|
|
|
2032 |
</span>
|
|
|
2033 |
{if $orderItem->item_id}
|
|
|
2034 |
(
|
|
|
2035 |
{include file="admin/ipad_edit.tpl" id=$orderItem->id art="V"}
|
|
|
2036 |
)
|
|
|
2037 |
{/if}
|
|
|
2038 |
{if $order->kk_info}
|
|
|
2039 |
<!--
|
|
|
2040 |
<a style="cursor:pointer" class="refund" title="Betrag über {$order->kk_info.anbieter} erstatten" data-refund="{$orderItem->price*$orderItem->amount}">{$order->kk_info.anbieter} Refund</a>
|
|
|
2041 |
-->
|
|
|
2042 |
{/if}
|
|
|
2043 |
</div>
|
|
|
2044 |
<div class="dritteZelle" nowrap="nowrap">
|
|
|
2045 |
{if $preise_anzeigen}
|
|
|
2046 |
{if ( isset( $user_rechte.Warenwirtschaft.bestellung.steuersatz_aendern ) )}
|
|
|
2047 |
<span id="eingabe_mwst_{$orderItem->id}" style="display:none;">
|
|
|
2048 |
<select id="landMwSt_{$orderItem->id}" name="landMwSt_{$orderItem->id}" class="eingabe_landMwSt">
|
|
|
2049 |
{foreach $laenderMwSt as $index => $laenderDaten}
|
|
|
2050 |
<option id="{$laenderDaten["id"]}" value="{$laenderDaten["typ_id"]}" {if $orderItem->tax == $laenderDaten["typ_id"]}selected{/if}>{$laenderDaten["bezeichnung"]}</option>
|
|
|
2051 |
{/foreach}
|
|
|
2052 |
</select>
|
|
|
2053 |
<input type="hidden" value="{$laenderDaten["typ_id"]}" class="mwstLand"/>
|
|
|
2054 |
</span>
|
|
|
2055 |
{/if}
|
|
|
2056 |
<span id="eingabe_preis_{$orderItem->id}" style="display:none;">
|
|
|
2057 |
<input type="text" name="cmd[artikel_to_Bestellung][{$orderItem->id}][price]" size="3" value="{$orderItem->price|number_format:2:",":""}" onchange="document.getElementById('artikel_'+{$orderItem->id}+'_changed').value='1';" /> €
|
|
|
2058 |
</span>
|
|
|
2059 |
<span id="ausgabe_preis_{$orderItem->id}" class="preise">
|
|
|
2060 |
{$orderItem->price|money_format_red:2:$order->locale:false:false}
|
|
|
2061 |
</span>
|
|
|
2062 |
</div>
|
|
|
2063 |
{/if}
|
|
|
2064 |
{if isset($web_rechte["Warenwirtschaft"]["bestellung"]["artikel_sortieren"])}
|
|
|
2065 |
<div class="noprint" style="width:32px;"></div>
|
|
|
2066 |
{/if}
|
|
|
2067 |
</div>
|
|
|
2068 |
</div>
|
|
|
2069 |
</td>
|
|
|
2070 |
<td class="preise noprint" style="text-align:right;">
|
|
|
2071 |
{if $preise_anzeigen}
|
|
|
2072 |
{$orderItem->price|money_format_red:2:$order->locale:false:false}
|
|
|
2073 |
{/if}
|
|
|
2074 |
</td>
|
|
|
2075 |
</tr>
|
|
|
2076 |
{/if}
|
|
|
2077 |
{/foreach}
|
|
|
2078 |
{if !$versand_artikel}
|
|
|
2079 |
<tr class="{cycle values="darkgray,lightgray"} noprint" align="left">
|
|
|
2080 |
<td> </td>
|
|
|
2081 |
<td> </td>
|
|
|
2082 |
<td>
|
|
|
2083 |
{if $order->status!='storniert'}
|
|
|
2084 |
{html_options options=$daten.Versand name="versandItem"}
|
|
|
2085 |
<input type="submit" name="enterVersand" value="OK"/>
|
|
|
2086 |
{/if}
|
|
|
2087 |
</td>
|
|
|
2088 |
</tr>
|
|
|
2089 |
{/if}
|
|
|
2090 |
<tr class="{cycle values="darkgray,lightgray"}">
|
|
|
2091 |
<td style="border-top: 1px solid #666"></td>
|
|
|
2092 |
<td style="border-top: 1px solid #666"></td>
|
|
|
2093 |
<td style="border-top: 1px solid #666">
|
|
|
2094 |
{if (count($order->orderItem) - 1) > 1 && $gesamtMenge > 0}
|
|
|
2095 |
<span style="text-align:left;">Summe Artikel: {$gesamtMenge}</span><br />
|
|
|
2096 |
{/if}
|
|
|
2097 |
{if $preise_anzeigen}
|
|
|
2098 |
<span style="text-align:right;float:right;">Bestellwert:</span>
|
|
|
2099 |
{/if}
|
|
|
2100 |
</td>
|
|
|
2101 |
<td class="preise" style="text-align:right;border-top: 1px solid #666">
|
|
|
2102 |
{if $preise_anzeigen}
|
|
|
2103 |
{$order->total_amount_buffer|money_format_red:2:$order->locale:false:false}
|
|
|
2104 |
{/if}
|
|
|
2105 |
</td>
|
|
|
2106 |
<td bgcolor="#eaeaea" style="text-align: center;">
|
|
|
2107 |
{section loop=$daten.artikel_stati name=as_ind}
|
|
|
2108 |
<span {if $daten.artikel_stati[as_ind].name} class="darkgray"{/if} style="border: 1px solid #cccccc;">
|
|
|
2109 |
{assign var=class value=$daten.artikel_stati[as_ind].class}
|
|
|
2110 |
<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>
|
|
|
2111 |
</span>
|
|
|
2112 |
{/section}
|
|
|
2113 |
</td>
|
|
|
2114 |
{if isset($user_rechte.Warenwirtschaft.bestellung.rechnungStatus)}
|
|
|
2115 |
<td bgcolor="#eaeaea" style="text-align: center;">
|
|
|
2116 |
{section loop=$daten.rechnung_stati name=rs_ind}
|
|
|
2117 |
<span {if $daten.rechnung_stati[rs_ind].name} class="darkgray"{/if} style="border: 1px solid #cccccc;">
|
|
|
2118 |
{assign var=class value=$daten.rechnung_stati[rs_ind].class}
|
|
|
2119 |
<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>
|
|
|
2120 |
</span>
|
|
|
2121 |
{/section}
|
|
|
2122 |
</td>
|
|
|
2123 |
{/if}
|
|
|
2124 |
{if isset($user_rechte.Warenwirtschaft.bestellung.lieferscheinStatus)}
|
|
|
2125 |
<td bgcolor="#eaeaea" style="text-align: center;">
|
|
|
2126 |
{section loop=$daten.lieferschein_stati name=ls_ind}
|
|
|
2127 |
<span {if $daten.lieferschein_stati[ls_ind].name} class="darkgray"{/if} style="border: 1px solid #cccccc;">
|
|
|
2128 |
{assign var=class value=$daten.lieferschein_stati[ls_ind].class}
|
|
|
2129 |
<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>
|
|
|
2130 |
</span>
|
|
|
2131 |
{/section}
|
|
|
2132 |
</td>
|
|
|
2133 |
{/if}
|
|
|
2134 |
{if isset($user_rechte.Warenwirtschaft.bestellung.mahnungStatus)}
|
|
|
2135 |
<td bgcolor="#eaeaea" style="text-align: center;">
|
|
|
2136 |
{section loop=$daten.mahnung_stati name=ms_ind}
|
|
|
2137 |
<span nowrap="nowrap" {if $daten.mahnung_stati[ms_ind].name} class="darkgray"{/if} style="border: 1px solid #cccccc;">
|
|
|
2138 |
{assign var=class value=$daten.mahnung_stati[ms_ind].class}
|
|
|
2139 |
<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>
|
|
|
2140 |
</span>
|
|
|
2141 |
{/section}
|
|
|
2142 |
</td>
|
|
|
2143 |
{/if}
|
|
|
2144 |
{if isset($user_rechte.Warenwirtschaft.bestellung.garantieStatus)}
|
|
|
2145 |
<td bgcolor="#eaeaea" style="text-align: center;">
|
|
|
2146 |
{section loop=$daten.garantie_stati name=gs_ind}
|
|
|
2147 |
<span nowrap="nowrap" {if $daten.garantie_stati[gs_ind].name} class="darkgray"{/if} style="border: 1px solid #cccccc;">
|
|
|
2148 |
{assign var=class value=$daten.garantie_stati[gs_ind].class}
|
|
|
2149 |
<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>
|
|
|
2150 |
</span>
|
|
|
2151 |
{/section}
|
|
|
2152 |
</td>
|
|
|
2153 |
{/if}
|
|
|
2154 |
</tr>
|
|
|
2155 |
<tr>
|
|
|
2156 |
<td></td>
|
|
|
2157 |
<td></td>
|
|
|
2158 |
<td align="right" class="right">
|
|
|
2159 |
|
|
|
2160 |
</td>
|
|
|
2161 |
<td colspan="3" align="left" class="noprint">
|
|
|
2162 |
{if $order->status!='storniert'}
|
|
|
2163 |
<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')"/>
|
|
|
2164 |
{/if}
|
|
|
2165 |
</td>
|
|
|
2166 |
</tr>
|
|
|
2167 |
{if $versand_artikel}
|
|
|
2168 |
<tr>
|
|
|
2169 |
<td class=""> </td>
|
|
|
2170 |
<td> </td>
|
|
|
2171 |
<td class="noprint" title="Logistiker-Export am {$versand_datum|date_format:"%x %X"}">
|
|
|
2172 |
Versandstatus (O=offen; F=freigegeben; V=versand)
|
|
|
2173 |
</td>
|
|
|
2174 |
<td></td>
|
|
|
2175 |
<td bgcolor="#eaeaea">
|
|
|
2176 |
<span class="darkgray">
|
|
|
2177 |
{if $versand_status=="offen"}
|
|
|
2178 |
{assign var=class value="status_red"}
|
|
|
2179 |
{else}
|
|
|
2180 |
{assign var=class value="status_off"}
|
|
|
2181 |
{/if}
|
|
|
2182 |
<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>
|
|
|
2183 |
</span>
|
|
|
2184 |
|
|
|
2185 |
<span class="darkgray">
|
|
|
2186 |
{if $versand_status=="freigegeben"}
|
|
|
2187 |
{assign var=class value="status_yellow"}
|
|
|
2188 |
{else}
|
|
|
2189 |
{assign var=class value="status_off"}
|
|
|
2190 |
{/if}
|
|
|
2191 |
<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>
|
|
|
2192 |
</span>
|
|
|
2193 |
|
|
|
2194 |
<span class="darkgray">
|
|
|
2195 |
{if $versand_status=="versand"}
|
|
|
2196 |
{assign var=class value="status_green"}
|
|
|
2197 |
{else}
|
|
|
2198 |
{assign var=class value="status_off"}
|
|
|
2199 |
{/if}
|
|
|
2200 |
<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>
|
|
|
2201 |
</span>
|
|
|
2202 |
</td>
|
|
|
2203 |
</tr>
|
|
|
2204 |
{/if}
|
|
|
2205 |
</table>
|
|
|
2206 |
</td>
|
|
|
2207 |
</tr>
|
|
|
2208 |
{if isset($user_rechte.Warenwirtschaft.bestellung.shortline1)}
|
|
|
2209 |
<tr>
|
|
|
2210 |
<td valign="top" class="links noprint">{$daten.sl1.name}</td>
|
|
|
2211 |
<td class="rechts" colspan="2">
|
|
|
2212 |
<span class="print">{$daten.sl1.name} {$order->shortline1}</span>
|
|
|
2213 |
{if $order->status!='storniert'}
|
|
|
2214 |
<input type="text" name="shortline1" value="{$order->shortline1}" size="{$daten.sl1.size}" maxlength="{$daten.sl1.size}" class="noprint"/>
|
|
|
2215 |
{else}
|
|
|
2216 |
{$order->shortline1}
|
|
|
2217 |
{/if}
|
|
|
2218 |
</td>
|
|
|
2219 |
</tr>
|
|
|
2220 |
{/if}
|
|
|
2221 |
{if isset($user_rechte.Warenwirtschaft.bestellung.shortline2)}
|
|
|
2222 |
<tr>
|
|
|
2223 |
<td valign="top" class="links">{$daten.sl2.name}</td>
|
|
|
2224 |
<td class="rechts" colspan="2">
|
|
|
2225 |
{if $order->status!='storniert'}
|
|
|
2226 |
<input type="text" name="shortline2" value="{$order->shortline2}" size="{$daten.sl2.size}" maxlength="{$daten.sl2.size}" class="noprint"/>
|
|
|
2227 |
{else}
|
|
|
2228 |
{$order->shortline2}
|
|
|
2229 |
{/if}
|
|
|
2230 |
</td>
|
|
|
2231 |
</tr>
|
|
|
2232 |
{/if}
|
|
|
2233 |
{if isset($user_rechte.Warenwirtschaft.bestellung.status1)}
|
|
|
2234 |
<tr>
|
|
|
2235 |
<td valign="top" class="links">{$status1_name}</td>
|
|
|
2236 |
<td class="rechts" colspan="2">
|
|
|
2237 |
{if $order->status!='storniert'}
|
|
|
2238 |
{html_options options=$status1_options name="status1" selected=$order->status1}
|
|
|
2239 |
{else}
|
|
|
2240 |
{if $order->status1}
|
|
|
2241 |
{$status1_options.$order->status1}
|
|
|
2242 |
{/if}
|
|
|
2243 |
{/if}
|
|
|
2244 |
</td>
|
|
|
2245 |
</tr>
|
|
|
2246 |
{/if}
|
|
|
2247 |
<tr>
|
|
|
2248 |
<td class="links noprint">Bemerkung:</td>
|
|
|
2249 |
<td class="rechts" colspan="2">
|
|
|
2250 |
{if $order->status!='storniert'}
|
|
|
2251 |
<span class="noprint">
|
|
|
2252 |
<textarea cols="70" rows="8" name="Bemerkung" id="bemerkung" style="width:98%;padding:1%">{$order->comment}</textarea>
|
|
|
2253 |
</span>
|
|
|
2254 |
{else}
|
|
|
2255 |
<span style="font-family:courier;">{$order->comment|nl2br}</span>
|
|
|
2256 |
{/if}
|
|
|
2257 |
{if $order->comment}
|
|
|
2258 |
<div class="print bemerkung">Bemerkung:<br/>{$order->comment|nl2br}</div>
|
|
|
2259 |
{/if}
|
|
|
2260 |
</td>
|
|
|
2261 |
</tr>
|
|
|
2262 |
{if isset($user_rechte.Warenwirtschaft.bestellung.Bemerkung_extern)}
|
|
|
2263 |
<tr>
|
|
|
2264 |
<td class="links noprint">Bemerkung extern:</td>
|
|
|
2265 |
<td class="rechts" colspan="2">
|
|
|
2266 |
{if $order->status!='storniert'}
|
|
|
2267 |
<textarea cols="70" rows="8" name="Bemerkung_extern" class="noprint" style="width:98%;padding:1%;">{$order->external_comment}</textarea>
|
|
|
2268 |
{else}
|
|
|
2269 |
<span style="font-family:courier;">{$order->external_comment|nl2br}</span>
|
|
|
2270 |
{/if}
|
|
|
2271 |
{if $order->external_comment}
|
|
|
2272 |
<div class="print bemerkung">Bemerkung extern:<br/>{$order->external_comment|nl2br}</div>
|
|
|
2273 |
{/if}
|
|
|
2274 |
</td>
|
|
|
2275 |
</tr>
|
|
|
2276 |
{/if}
|
|
|
2277 |
|
|
|
2278 |
{if isset($user_rechte.Warenwirtschaft.bestellung.dokument_read)}
|
|
|
2279 |
<tr>
|
|
|
2280 |
<td class="links noprint">Dokumente</td>
|
|
|
2281 |
<td class="rechts" colspan="2">
|
|
|
2282 |
<div id="doktabs">
|
|
|
2283 |
<ul>
|
|
|
2284 |
{if is_array($doktabs)}
|
|
|
2285 |
{foreach $doktabs as $key => $value}
|
|
|
2286 |
<li class="doktabs_li"><a href="#doktabs-{$key}">{$key}</a></li>
|
|
|
2287 |
{/foreach}
|
|
|
2288 |
|
|
|
2289 |
{if isset($user_rechte.Warenwirtschaft.bestellung.dokument_add)}
|
|
|
2290 |
<li style="float:right;font-weight:bold!important;">
|
|
|
2291 |
<a style="font-weight:bold" class="ui-button" title="Dokument hochladen" onclick="window.open('../dokumente/index.php?table_foreign=Bestellung&row_foreign=ID&data_foreign={$order->id}#', 'DokumentUpload', 'location=0, status=0, menubar=0, height=400, width=800');">+</a>
|
|
|
2292 |
</li>
|
|
|
2293 |
{/if}
|
|
|
2294 |
{/if}
|
|
|
2295 |
</ul>
|
|
|
2296 |
|
|
|
2297 |
{* dritte Spalte *}
|
|
|
2298 |
{*}
|
|
|
2299 |
<td class="noprint">
|
|
|
2300 |
{if isset($user_rechte.Warenwirtschaft.bestellung.dokument_add)}
|
| 25 |
lars |
2301 |
{html_image file="/images/gfx/add.gif" onclick="{$dokument.add_document}" border="0" style="cursor:pointer" class="noprint"}
|
| 24 |
lars |
2302 |
{/if}
|
|
|
2303 |
</td>
|
|
|
2304 |
{*}
|
|
|
2305 |
|
|
|
2306 |
{foreach $doktabs as $key => $doktab}
|
|
|
2307 |
<div id="doktabs-{$key}" class="doktable">
|
|
|
2308 |
|
|
|
2309 |
{* datatables START *}
|
|
|
2310 |
<table id="doktable-{$key}">
|
|
|
2311 |
<thead>
|
|
|
2312 |
<tr>
|
|
|
2313 |
<td>Nr.</td>
|
|
|
2314 |
<td>Name</td>
|
|
|
2315 |
<td></td>
|
|
|
2316 |
<td>Datum/erstellt von</td>
|
|
|
2317 |
</tr>
|
|
|
2318 |
</thead>
|
|
|
2319 |
<tbody>
|
|
|
2320 |
{assign var="i" value=1}
|
|
|
2321 |
{foreach $daten.dokumente as $dokument}
|
|
|
2322 |
{if in_array($dokument.dokument_typ,$doktab.validIds)}
|
|
|
2323 |
<tr class="{if $dokument.storniert == 1}stornoGrau{/if}">
|
|
|
2324 |
{* erste Spalte *}
|
|
|
2325 |
<td>
|
|
|
2326 |
{$i++}
|
|
|
2327 |
</td>
|
|
|
2328 |
|
|
|
2329 |
{* zweite Spalte *}
|
|
|
2330 |
<td>
|
|
|
2331 |
<div style="float: left; display: inline;width:100%;">
|
|
|
2332 |
<div style="float:left;">
|
|
|
2333 |
<span class="unread_docs_helper noprint" id="unread_docs_{$order->id}_{$dokument.id}_helper"></span>
|
|
|
2334 |
{html_image file=$dokument.icon alt="Dateityp: {$dokument.type}" class="noprint" style="vertical-align:middle;"}
|
|
|
2335 |
</div>
|
|
|
2336 |
|
|
|
2337 |
{if $dokument.type == "link"}
|
|
|
2338 |
<div style="float:left;padding:0 3px;min-width:60px;">
|
|
|
2339 |
<a href="{$dokument.link}" target="{$dokument.target}" id="doc_link_{$dokument.id}_{$order->id}" class="doc_link">
|
|
|
2340 |
{$dokument.name}
|
|
|
2341 |
</a>
|
|
|
2342 |
</div>
|
|
|
2343 |
{else}
|
|
|
2344 |
<div style="float:left;padding:0 3px;min-width:30px;">
|
|
|
2345 |
<span style="width:18px!important;" id="status_{$dokument.id}" class="dokstatus" data-dokid="{$dokument.id}">
|
| 25 |
lars |
2346 |
<img {if !$dokument.status}style="display:none;"{/if} class="img_status_{$dokument.id}" {if $dokument.status}src="/images/Icons/icon-{if $dokument.status=="offen"}rote-fahne{elseif $dokument.status=="erledigt"}gruener-haken{/if}.png"{/if}/>{if !$dokument.status} {/if}
|
| 24 |
lars |
2347 |
</span>
|
|
|
2348 |
</div>
|
|
|
2349 |
<div style="float:left;padding:0 3px;width:calc(100% - 60px);">
|
|
|
2350 |
<a href="{$daten.dokPath}{$dokument.name}" target="_blank" id="doc_link_{$dokument.id}_{$order->id}" class="doc_link {if $dokument.layer}layer_dok{/if}" data-id="{$dokument.id}">
|
|
|
2351 |
{$dokument.titel|default:($dokument.name|basename)}
|
|
|
2352 |
</a>
|
|
|
2353 |
({$dokument.size|fsize_format:'':2:',':'.'})
|
| 25 |
lars |
2354 |
<img class="edit_title" data-id="{$dokument.id}" data-title="{$dokument.titel|default:($dokument.name|basename)}" src="/images/Icons/ icon_pencil.png" />
|
| 24 |
lars |
2355 |
</div>
|
|
|
2356 |
{/if}
|
|
|
2357 |
|
|
|
2358 |
{if isset($web_rechte.Warenwirtschaft.bestellung.re_zahhlungsstatusinfo)}
|
|
|
2359 |
{assign var="capital" value=$dokument.name|basename|substr:0:1}
|
|
|
2360 |
{if $capital=="R" || $capital=="G"}
|
|
|
2361 |
{assign var="name" value=substr($dokument.name|basename,1)}
|
|
|
2362 |
{assign var="name" value="{$capital}`$name`"}
|
|
|
2363 |
<span id="bezahlstatus_{$rechnung[$name]['rechnungsnummer']}" style="font-weight:bold;float:right;padding:0 10px;cursor:{if $rechnung[$name]['bezahlstatus']=="offen"}pointer{else if $rechnung[$name]['bezahlstatus']!=""}help{/if};" {if isset($web_rechte.Warenwirtschaft.rechnungsbuch.rechnungsbuch)&&(isset($user_rechte.Warenwirtschaft.bezahlstatus.bezahlt_setzen)||isset($user_rechte.Warenwirtschaft.bezahlstatus.vorbezahlt_setzen))}ondblclick = "buildSelectBox('{$rechnung[$name]['rechnungsnummer']}','{$rechnung[$name]['bezahlstatus']}');"{/if} onmouseover="return overlib('{if isset($web_rechte.Warenwirtschaft.rechnungsbuch.rechnungsbuch)&&(isset($user_rechte.Warenwirtschaft.bezahlstatus.bezahlt_setzen)||isset($user_rechte.Warenwirtschaft.bezahlstatus.vorbezahlt_setzen))}<b>Doppelklicken zum Bearbeiten</b><br />{/if}{$rechnung[$name]['bezahlstatus_history']}', CAPTION, '', HAUTO, VAUTO);" onmouseout="return nd();">
|
|
|
2364 |
{if $rechnung[$name]['bezahlstatus']!=""}
|
|
|
2365 |
{$rechnung[$name]['bezahlstatus']}
|
|
|
2366 |
{/if}
|
|
|
2367 |
</span>
|
|
|
2368 |
{if isset($user_rechte.Warenwirtschaft.bezahlstatus.bezahlt_setzen)||isset($user_rechte.Warenwirtschaft.bezahlstatus.vorbezahlt_setzen)}
|
|
|
2369 |
<script>
|
|
|
2370 |
$(document).ready(function(){
|
|
|
2371 |
$('#layer_bemerkung_{$rechnung[$name]["rechnungsnummer"]}').hide();
|
|
|
2372 |
});
|
|
|
2373 |
</script>
|
|
|
2374 |
{/if}
|
|
|
2375 |
{/if}
|
|
|
2376 |
</div>
|
|
|
2377 |
{/if}
|
|
|
2378 |
</div>
|
|
|
2379 |
</td>
|
|
|
2380 |
{* dritte Spalte *}
|
|
|
2381 |
<td class="noprint">
|
|
|
2382 |
{if isset($user_rechte.Warenwirtschaft.bestellung.dokument_delete) && $dokument.deleteable}
|
| 25 |
lars |
2383 |
{html_image file="/images/gfx/delete_record.gif" onclick="{$dokument.del_document}" border="0" style="cursor:pointer" class="noprint"}
|
| 24 |
lars |
2384 |
{/if}
|
|
|
2385 |
</td>
|
|
|
2386 |
{* vierte Spalte *}
|
|
|
2387 |
<td class="">
|
|
|
2388 |
erstellt: {$dokument.erstellt_am|date_format:"d.m.Y H:i"} - {$dokument.erstellt_von|default:" "}
|
|
|
2389 |
{if $dokument.erstellt_am!=$dokument.date}
|
|
|
2390 |
<br />
|
|
|
2391 |
geändert: <span id="aenderung_{$dokument.id}">{$dokument.date|date_format:"d.m.Y H:i"}</span> - <span id="bearbeiter_{$dokument.id}">{$dokument.author|default:" "}</span>
|
|
|
2392 |
{/if}
|
|
|
2393 |
</td>
|
|
|
2394 |
</tr>
|
|
|
2395 |
{/if}
|
|
|
2396 |
{/foreach}
|
|
|
2397 |
</tbody>
|
|
|
2398 |
</table>
|
|
|
2399 |
|
|
|
2400 |
</div>
|
|
|
2401 |
{/foreach}
|
|
|
2402 |
</div>
|
|
|
2403 |
|
|
|
2404 |
{* tabs dokumente END *}
|
|
|
2405 |
</td>
|
|
|
2406 |
</tr>
|
|
|
2407 |
|
|
|
2408 |
{else}
|
|
|
2409 |
{if isset($user_rechte.Warenwirtschaft.bestellung.dokument_add)}
|
|
|
2410 |
<tr class="noprint">
|
|
|
2411 |
<td class="links">Dokument</td>
|
|
|
2412 |
<td class="rechts" colspan="2">
|
|
|
2413 |
{if $order->status!='storniert'}
|
|
|
2414 |
<a onclick="{$daten.add_document}" style="cursor:pointer;" href="#">
|
| 25 |
lars |
2415 |
{html_image file="/images/add.gif" onclick="{$daten.add_document}" border="0" style="cursor:pointer"}Datei anhängen
|
| 24 |
lars |
2416 |
</a>
|
|
|
2417 |
{/if}
|
|
|
2418 |
</td>
|
|
|
2419 |
</tr>
|
|
|
2420 |
{/if}
|
|
|
2421 |
{/if}
|
|
|
2422 |
<tr>
|
|
|
2423 |
<td class="links noprint">Bestellt:</td>
|
|
|
2424 |
<td class="rechts" colspan="2">
|
|
|
2425 |
<span class="print">Bestellt: </span>
|
|
|
2426 |
{$order->created_at|date_format:"d.m.Y"}
|
|
|
2427 |
um: {$order->created_at|date_format:"H:i:s"}
|
|
|
2428 |
</td>
|
|
|
2429 |
</tr>
|
|
|
2430 |
|
|
|
2431 |
<tr id="erstellt_von_row"{if !$order->created_by}style="display:none;"{/if}>
|
|
|
2432 |
<td class="links noprint">Erstbearbeiter:</td>
|
|
|
2433 |
<td class="rechts" id="erstellt_von" colspan="2">
|
|
|
2434 |
<span class="print">Erstbearbeiter: </span>
|
|
|
2435 |
{$order->created_by}
|
|
|
2436 |
</td>
|
|
|
2437 |
</tr>
|
|
|
2438 |
<tr>
|
|
|
2439 |
<td class="links noprint">letzte Änderung:</td>
|
|
|
2440 |
<td class="rechts" id="letzte_Aenderung" colspan="2">
|
|
|
2441 |
<span class="print">letzte Änderung: </span>
|
|
|
2442 |
{$order->updated_at|date_format:"d.m.Y"}
|
|
|
2443 |
um: {$order->updated_at|date_format:"H:i:s"}
|
|
|
2444 |
von: {$order->updated_by}
|
|
|
2445 |
</td>
|
|
|
2446 |
</tr>
|
|
|
2447 |
{if isset($web_rechte.admin.toolbox.logbuch)}
|
|
|
2448 |
<tr class="noprint">
|
|
|
2449 |
<td class="links">Änderungsprotokoll</td>
|
|
|
2450 |
<td id="logbuch" class="rechts" colspan="2">
|
|
|
2451 |
<a href="/toolbox/logbuch.php?mode=bestellung&id={$order->id}" target="logbuch">anzeigen</a>
|
|
|
2452 |
</td>
|
|
|
2453 |
</tr>
|
|
|
2454 |
{/if}
|
|
|
2455 |
|
|
|
2456 |
{if $order->status!='storniert'}
|
|
|
2457 |
<!-- START BUTTONLEISTE UNTEN -->
|
|
|
2458 |
<tr class="noprint">
|
|
|
2459 |
<td class="links bestellung_buttons" colspan="3" align="right">
|
|
|
2460 |
{foreach $daten.buttons as $buttId => $button}
|
|
|
2461 |
<input type="{$button.type}" value="{$button.value}" onclick="{$button.onClick}" class="{$button.class}" id="button{$buttId+1}"/>
|
|
|
2462 |
{/foreach}
|
|
|
2463 |
<div> </div>
|
|
|
2464 |
{if isset($user_rechte.Warenwirtschaft.bestellung.gutscheinbutton)}
|
|
|
2465 |
<div>
|
|
|
2466 |
<input type="button" id="gutscheinErstellen" value="Gutschein erstellen"/>
|
|
|
2467 |
</div>
|
|
|
2468 |
<script>
|
|
|
2469 |
$(document).ready(function(){
|
|
|
2470 |
$("#gutscheinErstellen").click(function(){
|
|
|
2471 |
$("<div id='dialogGutschein'>").dialog({
|
|
|
2472 |
title: "Gutschein erstellen",
|
|
|
2473 |
position: "center top",
|
|
|
2474 |
zIndex: 5,
|
|
|
2475 |
|
|
|
2476 |
open: function() {
|
|
|
2477 |
$(this).load('/marketing/gutscheine.php?action=add&ref=bestellung&shopID={$order->shops_ID}&b_id={$order->id}');
|
|
|
2478 |
},
|
|
|
2479 |
close: function() {
|
|
|
2480 |
$(this).dialog('destroy').remove();
|
|
|
2481 |
},
|
|
|
2482 |
buttons:{
|
|
|
2483 |
"Speichern und versenden": function(){
|
|
|
2484 |
let data = $("#createGutschein").serialize();
|
|
|
2485 |
$.ajax({
|
|
|
2486 |
type: "POST",
|
|
|
2487 |
url : "/marketing/gutscheine.php",
|
|
|
2488 |
data: data
|
|
|
2489 |
}).done(function(gutscheinID){
|
|
|
2490 |
{if $site==$site_full}
|
|
|
2491 |
{if isset($user_rechte.Warenwirtschaft.bestellung.html_editor)}
|
|
|
2492 |
$("#bemerkung_ifr").contents().find('#tinymce').html("Gutschein erstellt und gemailt am {$smarty.now|date_format:'d.m.Y'} um {$smarty.now|date_format:'H:i'} durch {$smarty.session.USER}\n");
|
|
|
2493 |
{else}
|
|
|
2494 |
$('#bemerkung').html("Gutschein erstellt und gemailt am {$smarty.now|date_format:'d.m.Y'} um {$smarty.now|date_format:'H:i'} durch {$smarty.session.USER}\n");
|
|
|
2495 |
{/if}
|
|
|
2496 |
let data = [];
|
|
|
2497 |
let mailto;
|
|
|
2498 |
mailto= "{$order->E_Mail}";
|
|
|
2499 |
//data.push({ name: "action", value: "Gutscheinversand" });
|
|
|
2500 |
data.push({ name: "mailto", value: mailto });
|
|
|
2501 |
$.ajax({
|
|
|
2502 |
type: "POST",
|
|
|
2503 |
url : "MailClient/index.php?id=0&Bestellung={$order->id}&shop={$order->shops_ID}&button=Mailausgang",
|
|
|
2504 |
data: data,
|
|
|
2505 |
success: function(){
|
|
|
2506 |
$("#dialogGutschein").dialog('destroy').remove();
|
|
|
2507 |
$('#cur').click();
|
|
|
2508 |
}
|
|
|
2509 |
})
|
|
|
2510 |
{else}
|
|
|
2511 |
$("#dialogGutschein").dialog('destroy').remove();
|
|
|
2512 |
$('#cur').click();
|
|
|
2513 |
{/if}
|
|
|
2514 |
|
|
|
2515 |
});
|
|
|
2516 |
},
|
|
|
2517 |
"Schliessen": function(){
|
|
|
2518 |
$("#dialogGutschein").dialog('destroy').remove();
|
|
|
2519 |
$('#cur').click();
|
|
|
2520 |
}
|
|
|
2521 |
},
|
|
|
2522 |
width: "70%",
|
|
|
2523 |
maxWidth: "500px",
|
|
|
2524 |
})
|
|
|
2525 |
})
|
|
|
2526 |
})
|
|
|
2527 |
</script>
|
|
|
2528 |
{/if}
|
|
|
2529 |
<div>
|
|
|
2530 |
{if isset($user_rechte.Warenwirtschaft.bestellung.refund)}
|
|
|
2531 |
{if $order->zahlart_refund}
|
|
|
2532 |
<input type="button" style="cursor:pointer" class="refund" title="Betrag über {$order->zahlart_name} erstatten" value="{$order->zahlart_name} Rückzahlung"/>
|
|
|
2533 |
{/if}
|
|
|
2534 |
{/if}
|
|
|
2535 |
{if isset($user_rechte.Warenwirtschaft.bestellung.online_retoure)}
|
|
|
2536 |
{foreach $logistiker_retoure as $row}
|
|
|
2537 |
{if ($row.returnlink|substr:0:4)=="http"}
|
|
|
2538 |
<input type="button" onclick="window.open('{$row.returnlink}');$('#bemerkung').append('{$row.kname} Retoure{if $row.zusatz} {$row.zusatz}{/if} am {$smarty.now|date_format:'d.m.Y'} um {$smarty.now|date_format:'H:i'} durch {$smarty.session.USER}\n');$('#cur').click();return false;" value="{$row.kname} ONLINE Retoure{if $row.zusatz} {$row.zusatz}{/if}"/>
|
|
|
2539 |
{elseif $row.returnlink && $labeldruck===true}
|
|
|
2540 |
<input type="button" class="retoureLabel" value="{$row.kname} Retoure{if $row.zusatz} {$row.zusatz}{/if}" data-bemerkung="{$row.kname} Retoure{if $row.zusatz} {$row.zusatz}{/if} am {$smarty.now|date_format:'d.m.Y'} um {$smarty.now|date_format:'H:i'} durch {$smarty.session.USER}\n" data-receiverid="{$row.returnlink}" data-id="{$row.id}" data-script="{$row.script}" />
|
|
|
2541 |
{/if}
|
|
|
2542 |
{/foreach}
|
|
|
2543 |
{/if}
|
|
|
2544 |
</div>
|
|
|
2545 |
<div style="clear:both;float:none;"> </div>
|
|
|
2546 |
<fieldset style="float:right; padding:0px; border:none;">
|
|
|
2547 |
<legend>Speichern und ...</legend>
|
|
|
2548 |
<input type="submit" name="update[current]" id="cur" value="... nur speichern" />
|
|
|
2549 |
<input type="submit" name="update[prev]" value="... zurück" class="prevOrder"/>
|
|
|
2550 |
<input type="submit" name="update[list]" value="... zur Übersicht" />
|
|
|
2551 |
<input type="submit" name="update[next]" value="... weiter" class="nextOrder"/>
|
|
|
2552 |
<input type="hidden" name="anker" value="{$order->id}"/>
|
|
|
2553 |
</fieldset>
|
|
|
2554 |
<div style="clear:both;">
|
|
|
2555 |
<input type="reset" value="Zurücksetzen"/>
|
|
|
2556 |
</div>
|
|
|
2557 |
{if isset($user_rechte.Warenwirtschaft.bestellung.opentrans)}
|
|
|
2558 |
<br />
|
|
|
2559 |
<input type="button" id="export" value="Bestellung exportieren" />
|
|
|
2560 |
<br />
|
|
|
2561 |
<br />
|
|
|
2562 |
{/if}
|
|
|
2563 |
{if isset($user_rechte.Warenwirtschaft.bestellung.steuersatz_aendern) && isset($laenderMwSt)}
|
|
|
2564 |
<input name="button" type="button" value="Steuersatz ändern" class="changeMwSt"/>
|
|
|
2565 |
{/if}
|
|
|
2566 |
{if ( isset($user_rechte.Warenwirtschaft.bestellung.termin) )}
|
|
|
2567 |
<input name="button" type="button" onclick="systemtermin('Bestellung {$order->id}')" value="Termin"/>
|
|
|
2568 |
{/if}
|
|
|
2569 |
|
|
|
2570 |
|
|
|
2571 |
{if isset($user_rechte.Warenwirtschaft.best_manu.kundenauftrag_drucken)}
|
|
|
2572 |
<input name="button" type="button" onclick="kundenauftrag_drucken({$order->id});" value="Auftrag drucken"/>
|
|
|
2573 |
{/if}
|
|
|
2574 |
|
|
|
2575 |
<div><br/></div>
|
|
|
2576 |
|
|
|
2577 |
|
|
|
2578 |
|
|
|
2579 |
{if isset($user_rechte.Warenwirtschaft.bestellung.proforma_rechnung)}
|
|
|
2580 |
<input type="button" value="Proforma-Rechnung drucken" class="proforma_vorschalt_druck" />
|
|
|
2581 |
{/if}
|
|
|
2582 |
{if isset($user_rechte.Warenwirtschaft.bestellung.rechnung)}
|
|
|
2583 |
<input type="button" value="Rechnung drucken" id="rechnungSchreiben" class="rechnung_vorschalt_druck" />
|
|
|
2584 |
{/if}
|
|
|
2585 |
{if isset($user_rechte.Warenwirtschaft.bestellung.lieferschein)}
|
|
|
2586 |
<input type="button" value="Lieferschein drucken" id="lieferscheinDruck" class="lieferschein_vorschalt_druck" />
|
|
|
2587 |
{/if}
|
|
|
2588 |
{if isset($user_rechte.Warenwirtschaft.bestellung.drucken)}
|
|
|
2589 |
<script>
|
|
|
2590 |
$(document).ready(function() {
|
|
|
2591 |
$('#print_auftrag').click(function() {
|
|
|
2592 |
window.open('auftrag.php?b_id={$order->id}');
|
|
|
2593 |
|
|
|
2594 |
setTimeout(function(){
|
|
|
2595 |
location.reload();
|
|
|
2596 |
}, 2000);
|
|
|
2597 |
|
|
|
2598 |
});
|
|
|
2599 |
});
|
|
|
2600 |
|
|
|
2601 |
|
|
|
2602 |
</script>
|
|
|
2603 |
<input id="print_auftrag" type="button" {*}onclick="window.open('auftrag.php?b_id={$order->id}')"{*} value="Auftrag drucken" />
|
|
|
2604 |
{/if}
|
|
|
2605 |
<!--PE: Wenn Recht angebot["vorschaltseite"] gesetzt, dann gebe Action aus, um Auftrag vorschaltseite zu zeigen. -->
|
|
|
2606 |
{if isset($user_rechte.Warenwirtschaft.bestellung.angebot)}
|
|
|
2607 |
{if strpos($web_rechte.Warenwirtschaft.bestellung.angebot,'vorschaltseite')!= false}
|
|
|
2608 |
<input type="button" class="angebot_vorschalt_druck" value="Angebot drucken" />
|
|
|
2609 |
{else}
|
|
|
2610 |
<input type="button" onclick="window.open('angebot.php?b_id={$order->id}')" value="Angebot drucken" />
|
|
|
2611 |
{/if}
|
|
|
2612 |
{/if}
|
|
|
2613 |
{if isset($user_rechte.Warenwirtschaft.bestellung.billsafe)}
|
|
|
2614 |
<input type="button" class="billsafe_phone" value="per Billsafe bezahlen" id="billsafe_phone_{$order->id}_{$order->shops_ID}"/>
|
|
|
2615 |
{/if}
|
|
|
2616 |
{if isset($web_rechte.Warenwirtschaft.bestellung.kommissionierungskontrolle )}
|
|
|
2617 |
<input type="button" class="kommissionierungskontrolle" value="Kommissionierungskontrolle" id="kommissionierungskontrolle_{$order->id}_{$order->shops_ID}" />
|
|
|
2618 |
{/if}
|
|
|
2619 |
<div><br/></div>
|
|
|
2620 |
|
|
|
2621 |
{if isset($user_rechte.Warenwirtschaft.bestellung.bestconect)}
|
|
|
2622 |
<input type="hidden" name="b_id" value="{$order->id}"/>
|
|
|
2623 |
<input type="text" name="b_id_neu" value=""/>
|
|
|
2624 |
<input type="hidden" name="mode" value="combine"/>
|
|
|
2625 |
<input name="button" type="submit" value="Bestellpositionen verschieben"/>
|
|
|
2626 |
{/if}
|
|
|
2627 |
|
|
|
2628 |
<div><br/></div>
|
|
|
2629 |
|
|
|
2630 |
<!--MK: Dialog Rechnung löschen -->
|
|
|
2631 |
<div id="dialog" title="Rechnung löschen">
|
|
|
2632 |
|
|
|
2633 |
<table width="100%">
|
|
|
2634 |
{assign var="rechnungExists" value=0}
|
|
|
2635 |
{section loop=$daten.dokumente name=d_ind}
|
|
|
2636 |
{assign var="capital" value=$dokument.name|substr:0:1}
|
|
|
2637 |
{assign var="name" value="."|explode:$dokument.name}
|
|
|
2638 |
<!--ME: speichern, ob Rechnung existiert -->
|
|
|
2639 |
{if $capital=="R"}
|
|
|
2640 |
{assign var="rechnungExists" value=1}
|
|
|
2641 |
{/if}
|
|
|
2642 |
{if $capital == 'R'}
|
|
|
2643 |
<tr class="links">
|
|
|
2644 |
<td width="60%">
|
|
|
2645 |
|
|
|
2646 |
<span class="unread_docs_helper" id="unread_docs_{$order->id}_{$dokument.id}_helper"></span>
|
|
|
2647 |
{html_image file=$dokument.icon alt="Dateityp: {$dokument.type}"}
|
|
|
2648 |
<a href="{$daten.dokPath}{$dokument.name}" target="_blank" id="doc_link_{$dokument.id}_{$order->id}" class="doc_link">
|
|
|
2649 |
{$dokument.name|basename} ({$dokument.size|fsize_format:'':2:',':'.'})
|
|
|
2650 |
</a>
|
|
|
2651 |
</td>
|
|
|
2652 |
<td width="3%">
|
|
|
2653 |
|
| 25 |
lars |
2654 |
{html_image file="/images/gfx/delete_record.gif" onclick="setzeTermin(\"{$name[0]}\",{$order->id})" border="0" style="cursor:pointer" id="{$dokument.id}" class="deleteRechnung"}
|
| 24 |
lars |
2655 |
</td>
|
|
|
2656 |
</tr>
|
|
|
2657 |
{/if}
|
|
|
2658 |
{/section}
|
|
|
2659 |
</table>
|
|
|
2660 |
<div id="response"></div>
|
|
|
2661 |
</div>
|
|
|
2662 |
<!--MK: Webrecht gesetzt & Rechnung vorhanden? -->
|
|
|
2663 |
{if isset($web_rechte.Warenwirtschaft.bestellung.rechnungsstorno_button) && ($capital == 'R')}
|
|
|
2664 |
<button id="opener">Rechnung löschen</button>
|
|
|
2665 |
{/if}
|
|
|
2666 |
|
|
|
2667 |
|
|
|
2668 |
<!-- ME: Bestellung stornieren START -->
|
|
|
2669 |
{if isset($user_rechte.Warenwirtschaft.bestellung.bestellstorno)}
|
|
|
2670 |
|
|
|
2671 |
{if $bestellungen[b_ind].status!='storniert'}
|
|
|
2672 |
<input class="bestellstorno" type="button" id="storno_{$order->id}" value="Bestellung stornieren" />
|
|
|
2673 |
{else}
|
|
|
2674 |
<input class="bestellopen" type="button" id="open_{$order->id}" value="Bestellung freigeben" />
|
|
|
2675 |
{/if}
|
|
|
2676 |
{/if}
|
|
|
2677 |
<!-- ME: Bestellung stornieren START -->
|
|
|
2678 |
|
|
|
2679 |
|
|
|
2680 |
<!--ME: wenn Rechnungen existieren, darf die Bestellung nicht gelöscht werden können -->
|
|
|
2681 |
{if $rechnungExists!=1}
|
|
|
2682 |
{if isset($user_rechte.Warenwirtschaft.bestellung.loeschen2)}
|
|
|
2683 |
<input type="submit" name="delete2" value="Nur Bestellung löschen" onclick="return confirm('Wollen sie diese Bestellung wirklich löschen?')"/>
|
|
|
2684 |
{/if}
|
|
|
2685 |
{if isset($user_rechte.Warenwirtschaft.bestellung.loeschen)}
|
|
|
2686 |
<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?')"/>
|
|
|
2687 |
{/if}
|
|
|
2688 |
{/if}
|
|
|
2689 |
{assign var=kk value=false}
|
|
|
2690 |
{assign var=rufname value=$versand_name|lower}
|
|
|
2691 |
{assign var=status value=$order->kk_info.status|lower}
|
|
|
2692 |
{if $rufname == "kreditkarte" && $status == "offen"}
|
|
|
2693 |
{assign var=kk value=true}
|
|
|
2694 |
{/if}
|
|
|
2695 |
{if isset($user_rechte.Warenwirtschaft.bestellung["kk-zahlung"])}
|
|
|
2696 |
{if $kk}
|
|
|
2697 |
<input type="hidden" name="shops_ID" value="{$order->shops_ID}"/>
|
|
|
2698 |
<div><br/></div>
|
|
|
2699 |
{if $web_settings[$order->shops_ID][119] == "saferpay"}
|
|
|
2700 |
<input type="hidden" name="orderid" value="{$order->id}"/>
|
|
|
2701 |
<input type="hidden" name="kk_info" value="{$order->kk_info.code}"/>
|
|
|
2702 |
{elseif $web_settings[$order->shops_ID][119] == "acceptance"}
|
|
|
2703 |
<input type="hidden" name="orderid" value="{$order->id}"/>
|
|
|
2704 |
<input type="hidden" name="amount" value="{$order->kk_summe}"/>
|
|
|
2705 |
<input type="hidden" name="currency" value="EUR"/>
|
|
|
2706 |
<input type="hidden" name="language" value="de_DE"/>
|
|
|
2707 |
{/if}
|
|
|
2708 |
<input type="hidden" name="operation" value="SAS"/>
|
|
|
2709 |
<input name="anfordern" type="submit" value="Zahlung anfordern"/>
|
|
|
2710 |
{/if}
|
|
|
2711 |
{/if}
|
|
|
2712 |
{if isset($user_rechte.Warenwirtschaft.bestellung.gutscheinbutton) && $gs}
|
|
|
2713 |
<input type="button" value="Gutschein erstellen" id="gen_gutschein"/>
|
|
|
2714 |
</td>
|
|
|
2715 |
{/if}
|
|
|
2716 |
</tr>
|
|
|
2717 |
<!-- ENDE BUTTONLEISTE UNTEN -->
|
|
|
2718 |
{/if}
|
|
|
2719 |
{if isset($user_rechte.Warenwirtschaft.bestellung.bestellstorno)}
|
|
|
2720 |
{if $order->status=="storniert"}
|
|
|
2721 |
<tr>
|
|
|
2722 |
<td class="links bestellung_buttons" colspan="3">
|
|
|
2723 |
<input class="bestellopen" type="button" id="open_{$order->id}" value="Bestellung freigeben" style="float:right" />
|
|
|
2724 |
</td>
|
|
|
2725 |
</tr>
|
|
|
2726 |
{/if}
|
|
|
2727 |
{/if}
|
|
|
2728 |
</table>
|
|
|
2729 |
<br/>
|
|
|
2730 |
<div id="gutschein_meldung"></div>
|
|
|
2731 |
</form>
|
|
|
2732 |
|
|
|
2733 |
{if isset($web_rechte.Warenwirtschaft.rechnungsbuch.rechnungsbuch) && isset($web_rechte.Warenwirtschaft.bestellung.re_zahhlungsstatusinfo)}
|
|
|
2734 |
{foreach $daten.dokumente as $dokument}
|
|
|
2735 |
{assign var="capital" value=$dokument.name|basename|substr:0:1}
|
|
|
2736 |
|
|
|
2737 |
{if $capital == "R" || $capital == "G"}
|
|
|
2738 |
{*}
|
|
|
2739 |
{if $capital == "G"}
|
|
|
2740 |
{assign var="r" value="R"}
|
|
|
2741 |
{assign var="nameOhneErstenBuchstaben" value=$dokument.name|substr:1}
|
|
|
2742 |
{assign var="name" value=$r|cat:$nameOhneErstenBuchstaben}
|
|
|
2743 |
{else}
|
|
|
2744 |
{assign var="name" value=str_replace("G","R",$dokument.name|basename)}
|
|
|
2745 |
{/if}
|
|
|
2746 |
{*}
|
|
|
2747 |
{assign var="name" value=substr($dokument.name|basename,1)}
|
|
|
2748 |
{assign var="name" value="{$capital}`$name`"}
|
|
|
2749 |
|
|
|
2750 |
<div class="layer_bemerkung" id="layer_bemerkung_{$rechnung[$name]['rechnungsnummer']}">
|
|
|
2751 |
<form method="get" action="{$SCRIPT_NAME}">
|
|
|
2752 |
<div style="float:left;">
|
|
|
2753 |
<!--MK 22.01.13 Zeigt checkbox für bestellungstatus bezahlt an: onchange -->
|
|
|
2754 |
<select name="bezahlstatus" id="bezahlstatus" onchange="bezahlt(this.form.bezahlstatus.options[this.form.bezahlstatus.selectedIndex].value);
|
|
|
2755 |
return clearDate('bezahlstatus_datum_{$rechnung[$name]['rechnungsnummer']}',this.value,'{$rechnung[$name]['bezahlt_am']|date_format:"d.m.Y"}');">
|
|
|
2756 |
<option value="none">keine Auswahl</option>
|
|
|
2757 |
<option value="offen">offen</option>
|
|
|
2758 |
<option value="bezahlt" selected="selected">bezahlt</option>
|
|
|
2759 |
{if isset($user_rechte.Warenwirtschaft.Bestellung.rechnungsstorno_button)}
|
|
|
2760 |
<option value="storniert">storniert</option>
|
|
|
2761 |
{/if}
|
|
|
2762 |
</select>
|
|
|
2763 |
</div>
|
|
|
2764 |
|
|
|
2765 |
<div style="float:left;padding:0 0 0 10px;">
|
|
|
2766 |
|
|
|
2767 |
<label for="bezahlstatus_datum">Datum:</label>
|
|
|
2768 |
<input style="margin-top:5px;" 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="{if $rechnung[$name]['bezahlt_am']!='0000-00-00 00:00:00'}{$rechnung[$name]['bezahlt_am']|date_format:"d.m.Y"}{/if}" id="bezahlstatus_datum_{$rechnung[$name]['rechnungsnummer']}" />
|
|
|
2769 |
|
|
|
2770 |
|
|
|
2771 |
</div>
|
|
|
2772 |
<br /><br />
|
|
|
2773 |
|
|
|
2774 |
<div style="clear:both;" id="bezahlt" class="box"><input type="checkbox" name="bestellungbezahltstatus" value="bezahlt" checked="true"/>Soll die zugehörige Bestellung auf bezahlt gesetzt werden?</div>
|
|
|
2775 |
<input type="hidden" name="bid" value="{$order->id}" />
|
|
|
2776 |
<br /><br />
|
|
|
2777 |
|
|
|
2778 |
<input type="hidden" name="rid" value="{$rechnung[$name]['rechnungsnummer']}" />
|
|
|
2779 |
Aktueller Bemerkungstext:<p style="margin:0px;font-style:italic;">{$rechnung[$name]['bezahlt_bemerkung']}</p>
|
|
|
2780 |
<textarea id="bezahlstatus_bemerkung" name="bezahlstatus_bemerkung" cols="40" rows="5"></textarea><br /><br />
|
|
|
2781 |
|
|
|
2782 |
<input type="hidden" name="action" value="save_bezahlstatus" />
|
|
|
2783 |
<input type="submit" value="Bemerkung speichern" />
|
|
|
2784 |
</form>
|
|
|
2785 |
</div>
|
|
|
2786 |
{/if}
|
|
|
2787 |
{/foreach}
|
|
|
2788 |
<script>
|
|
|
2789 |
$(function(){
|
|
|
2790 |
$('.datum_input').datepicker();
|
|
|
2791 |
$('.layer_bemerkung').dialog({
|
|
|
2792 |
autoOpen:false,
|
|
|
2793 |
width:400
|
|
|
2794 |
})
|
|
|
2795 |
});
|
|
|
2796 |
function buildSelectBox(rid,currStatus) {
|
|
|
2797 |
$('#layer_bemerkung_'+rid).dialog({
|
|
|
2798 |
title:'Bezahlstatus/Bemerkung: '+rid
|
|
|
2799 |
}).dialog("open");
|
|
|
2800 |
}
|
|
|
2801 |
function bezahlt(wert){
|
|
|
2802 |
let i = wert;
|
|
|
2803 |
if(i=="bezahlt")
|
|
|
2804 |
{
|
|
|
2805 |
$(".box").css('display','block');
|
|
|
2806 |
}
|
|
|
2807 |
else
|
|
|
2808 |
{
|
|
|
2809 |
$(".box").css('display','none');
|
|
|
2810 |
}
|
|
|
2811 |
|
|
|
2812 |
}
|
|
|
2813 |
function clearDate(id,val,datum) {
|
|
|
2814 |
if(val=="offen") {
|
|
|
2815 |
$('#'+id).val('');
|
|
|
2816 |
}
|
|
|
2817 |
if(val=="bezahlt" || val=="storniert" || val=="none") {
|
|
|
2818 |
$('#'+id).val(datum);
|
|
|
2819 |
}
|
|
|
2820 |
return true;
|
|
|
2821 |
}
|
|
|
2822 |
</script>
|
|
|
2823 |
{/if}
|
|
|
2824 |
|
|
|
2825 |
{if $bestellarten && $order->Bestellart|stristr:"ebay"}
|
|
|
2826 |
<script charset="utf-8">
|
|
|
2827 |
$(document).ready(function(){
|
|
|
2828 |
$( "#vportalstorno" ).click(function(){
|
|
|
2829 |
$("<div id='vportalstornoDialog'>").dialog({
|
|
|
2830 |
width:"80%",
|
|
|
2831 |
open : function(){
|
|
|
2832 |
let data = [];
|
|
|
2833 |
data.push({ name: "bestellID", value: {$order->id} });
|
|
|
2834 |
data.push({ name: "bestellartID", value: {$order->bestellart_id} });
|
|
|
2835 |
$(this).load("vportal_stornierung.php", data);
|
|
|
2836 |
},
|
|
|
2837 |
close : function(){
|
|
|
2838 |
$('#vportalstornoDialog').empty().remove();
|
|
|
2839 |
},
|
|
|
2840 |
buttons : {
|
|
|
2841 |
"Schließen" : function(){
|
|
|
2842 |
$('#vportalstornoDialog').empty().remove();
|
|
|
2843 |
},
|
|
|
2844 |
"Senden" : function(){
|
|
|
2845 |
|
|
|
2846 |
}
|
|
|
2847 |
}
|
|
|
2848 |
});
|
|
|
2849 |
});
|
|
|
2850 |
});
|
|
|
2851 |
</script>
|
|
|
2852 |
{/if}
|
|
|
2853 |
|
|
|
2854 |
{if isset($user_rechte.Warenwirtschaft.bestellung.steuersatz_aendern) && isset($laenderMwSt)}
|
|
|
2855 |
<script>
|
|
|
2856 |
$(document).ready(function(){
|
|
|
2857 |
$( ".eingabe_landMwSt" ).change(function(){
|
|
|
2858 |
let mwst = $(this).val();
|
|
|
2859 |
let id = $(this).attr("id");
|
|
|
2860 |
id = id.split("_");
|
|
|
2861 |
let artikelID = id[1];
|
|
|
2862 |
|
|
|
2863 |
$.ajax({
|
|
|
2864 |
type: "GET",
|
|
|
2865 |
url: "/Warenwirtschaft/update_bestellung.php?mwstArtikel="+mwst+"&artikelID="+artikelID+"&id={$order->id}",
|
|
|
2866 |
}).done(function( html ){
|
|
|
2867 |
alert( html );
|
|
|
2868 |
});
|
|
|
2869 |
});
|
|
|
2870 |
});
|
|
|
2871 |
</script>
|
|
|
2872 |
<div id="changeMwStDialog">
|
|
|
2873 |
<script>
|
|
|
2874 |
$(document).ready(function(){
|
|
|
2875 |
$( ".landMwSt" ).change(function(){
|
|
|
2876 |
let mwst = $(this).val();
|
|
|
2877 |
$(".mwstLand").val(mwst);
|
|
|
2878 |
});
|
|
|
2879 |
});
|
|
|
2880 |
</script>
|
|
|
2881 |
<select name="landMwSt" class="landMwSt">
|
|
|
2882 |
{foreach $laenderMwSt as $index => $laenderDaten}
|
|
|
2883 |
<option id="{$laenderDaten["id"]}" value="{$laenderDaten["typ_id"]}" {if $order->orderItem[0].mwst == $laenderDaten["typ_id"]}selected{/if}>{$laenderDaten["bezeichnung"]}</option>
|
|
|
2884 |
{/foreach}
|
|
|
2885 |
</select>
|
|
|
2886 |
<input type="hidden" value="{$laenderDaten["mwst_satz"]}" class="mwstLand"/>
|
|
|
2887 |
</div>
|
|
|
2888 |
{/if}
|
|
|
2889 |
{if isset($user_rechte.Warenwirtschaft.logistiker.tracking_input)}
|
|
|
2890 |
<div id="add_tracking_nr" title="Eine Paketverfolgungsnummer hinzufügen">
|
|
|
2891 |
<form id="add_tracking_nr_form">
|
|
|
2892 |
<input type="hidden" name="_token" value="{csrf_token()}">
|
|
|
2893 |
<input type="hidden" name="_method" value="PATCH">
|
|
|
2894 |
<table>
|
|
|
2895 |
<tr>
|
|
|
2896 |
<td class="links">Trackingnummer</td>
|
|
|
2897 |
<td class="rechts">
|
|
|
2898 |
<input type="text" name="tracking_nr"/>
|
|
|
2899 |
</td>
|
|
|
2900 |
</tr>
|
|
|
2901 |
<tr>
|
|
|
2902 |
<td class="links">Logistiker:</td>
|
|
|
2903 |
<td class="rechts">
|
|
|
2904 |
{html_options id="logistiker_id_dlg" name="logistiker_id" options=$logistiker selected=$logistiker_sel}
|
|
|
2905 |
</td>
|
|
|
2906 |
</tr>
|
|
|
2907 |
<tr>
|
|
|
2908 |
<td class="links">Datum:</td>
|
|
|
2909 |
<td class="rechts">
|
|
|
2910 |
<input type="text" name="datum" value="{$smarty.now|date_format:"d.m.Y"}" id="datum"/>
|
|
|
2911 |
</td>
|
|
|
2912 |
</tr>
|
|
|
2913 |
</table>
|
|
|
2914 |
<input type="hidden" name="bestell_id" value="{$order->id}"/>
|
|
|
2915 |
<br />
|
|
|
2916 |
<input type="submit" value="Trackingnummer speichern und schliessen" id="send_tracking"/>
|
|
|
2917 |
<br /> <br />
|
|
|
2918 |
</form>
|
|
|
2919 |
</div>
|
|
|
2920 |
|
|
|
2921 |
{/if}
|
|
|
2922 |
|
|
|
2923 |
|
|
|
2924 |
|
|
|
2925 |
<div id="ajax" style="display:none;"></div>
|
|
|
2926 |
|
|
|
2927 |
|
|
|
2928 |
{if $path}
|
|
|
2929 |
<script type="text/javascript">
|
|
|
2930 |
|
|
|
2931 |
window.open("{$path}?shops_ID={$order->shops_ID}&bestell_id={$order->id}","PopUp","width=1000,height=800,scrollbars=yes,resizable=yes");
|
|
|
2932 |
|
|
|
2933 |
</script>
|
|
|
2934 |
{/if}
|
|
|
2935 |
<script>
|
|
|
2936 |
$(document).ready(function(){
|
|
|
2937 |
$('#vertrag_oeffnen').click(function(){
|
|
|
2938 |
let path = '/Warenwirtschaft/includes/verleih/leihvorlage_{$webs.domain}.php';
|
|
|
2939 |
window.open(path+"?shops_ID={$order->shops_ID}&bestell_id={$order->id}","PopUp","width=1000,height=800,scrollbars=yes,resizable=yes");
|
|
|
2940 |
});
|
|
|
2941 |
$('#vertrag_oeffnen_individual').click(function(){
|
|
|
2942 |
let path = '/Warenwirtschaft/includes/individual_formulare/tortenbestellung_{$webs.domain}.php';
|
|
|
2943 |
window.open(path+"?shops_ID={$order->shops_ID}&bestell_id={$order->id}","PopUp","width=1000,height=800,scrollbars=yes,resizable=yes");
|
|
|
2944 |
});
|
|
|
2945 |
});
|
|
|
2946 |
</script>
|
|
|
2947 |
|
|
|
2948 |
|
|
|
2949 |
{if isset($web_rechte.Warenwirtschaft.bestellung.kundenbemerkung_layer) && ($order->AP_Bemerkung||$order->liefer_comment)}
|
|
|
2950 |
<div id="kundenbemerkung_layer" title="Kundenbemerkung">
|
|
|
2951 |
{if $order->liefer_comment}
|
|
|
2952 |
{$order->liefer_comment|nl2br}
|
|
|
2953 |
{else}
|
|
|
2954 |
{$order->AP_Bemerkung|nl2br}
|
|
|
2955 |
{/if}
|
|
|
2956 |
</div>
|
|
|
2957 |
{/if}
|
|
|
2958 |
{if $order->notiz}
|
|
|
2959 |
<div id="notizDlg" title="Kundenbemerkung">
|
|
|
2960 |
{$order->notiz}
|
|
|
2961 |
</div>
|
|
|
2962 |
{/if}
|
|
|
2963 |
{if $order->mwst_befreiung=="on"}
|
|
|
2964 |
<div id="ustid_layer" title="Steuerinformation">
|
|
|
2965 |
ACHTUNG: Kunde ist von der Mehrwertsteuer befreit!
|
|
|
2966 |
<br />
|
|
|
2967 |
Umsatzsteuer-ID: {$order->ustid_nr}
|
|
|
2968 |
</div>
|
|
|
2969 |
{/if}
|
|
|
2970 |
|
|
|
2971 |
|
|
|
2972 |
{if isset( $user_rechte.Warenwirtschaft.bestellung.bestellstorno)}
|
|
|
2973 |
<script>
|
|
|
2974 |
// ME: bestellstorno dialog
|
|
|
2975 |
$(function() {
|
|
|
2976 |
{if isset($user_rechte.Warenwirtschaft.bestellung.bestellstorno)}
|
|
|
2977 |
$(".bestellopen").click(function(){
|
|
|
2978 |
|
|
|
2979 |
let bId={$order->id}
|
|
|
2980 |
$.get("/Warenwirtschaft/reopenOrder.php?bestelung="+bId,function(){
|
|
|
2981 |
$(location)[0].reload();
|
|
|
2982 |
})
|
|
|
2983 |
})
|
|
|
2984 |
{/if}
|
|
|
2985 |
$( "#bestellstorno_dlg" ).dialog({
|
|
|
2986 |
autoOpen: false,
|
|
|
2987 |
minWidth: 600,
|
|
|
2988 |
resize:false,
|
|
|
2989 |
title:'Bestellung stornieren',
|
|
|
2990 |
buttons:{
|
|
|
2991 |
Stornieren: function(){
|
|
|
2992 |
$('#storno_form').submit();
|
|
|
2993 |
},
|
|
|
2994 |
Abbrechen: function() {
|
|
|
2995 |
$(this).dialog("close");
|
|
|
2996 |
}
|
|
|
2997 |
}
|
|
|
2998 |
});
|
|
|
2999 |
$( ".bestellstorno" ).click(function() {
|
|
|
3000 |
$( "#bestellstorno_dlg" ).dialog( "open" );
|
|
|
3001 |
return false;
|
|
|
3002 |
});
|
|
|
3003 |
});
|
|
|
3004 |
|
|
|
3005 |
|
|
|
3006 |
|
|
|
3007 |
</script>
|
|
|
3008 |
<div id="bestellstorno_dlg">
|
|
|
3009 |
<form action="/Warenwirtschaft/bestellungen.php" method="post" id="storno_form">Bitte geben Sie den Grund der Stornierung ein:
|
|
|
3010 |
<input type="hidden" name="_token" value="{csrf_token()}">
|
|
|
3011 |
<input type="hidden" name="_method" value="PATCH">
|
|
|
3012 |
<br/><br/>
|
|
|
3013 |
<textarea cols="50" rows="6" name="stornogrund"></textarea>
|
|
|
3014 |
<input type="hidden" name="action" value="bestellstorno" />
|
|
|
3015 |
<input type="hidden" name="bestellID" value="{$order->id}" />
|
|
|
3016 |
{if $order->fremd_id && $order->portal_storno}
|
|
|
3017 |
<input type="hidden" name="fremd_id" value="{$order->fremd_id}" />
|
|
|
3018 |
<input type="hidden" name="vportal" value="0" />
|
|
|
3019 |
<br />
|
|
|
3020 |
<input id="vportal" type="checkbox" name="vportal" value="1" checked="checked" />
|
|
|
3021 |
<label for="vportal">Auch auf {$order->portal_name} stornieren</label>
|
|
|
3022 |
{if $order->portal_template=="idealo_de"}
|
|
|
3023 |
<select name="grund">
|
|
|
3024 |
<option label="Stornierung durch Kunden" value="1">Stornierung durch Kunden</option>
|
|
|
3025 |
<option label="nicht lieferbar" value="2">nicht lieferbar</option>
|
|
|
3026 |
<option label="Retoure" value="3">Retoure</option>
|
|
|
3027 |
</select>
|
|
|
3028 |
{/if}
|
|
|
3029 |
{/if}
|
|
|
3030 |
</form>
|
|
|
3031 |
</div>
|
|
|
3032 |
{/if}
|
|
|
3033 |
{if isset($user_rechte.Warenwirtschaft.bestellung.billsafe)}
|
|
|
3034 |
<div id="bs_return" title="Billsafe Rückmeldung"></div>
|
|
|
3035 |
{/if}
|
|
|
3036 |
|
|
|
3037 |
|
|
|
3038 |
<div id="change_amount_dlg" title="Artikeldaten erfassen">
|
|
|
3039 |
<p>
|
|
|
3040 |
Hier können Sie den Barcode des zu liefernden<br />
|
|
|
3041 |
Artikels einlesen und die Daten in die Bestellung eintragen.
|
|
|
3042 |
<br />
|
|
|
3043 |
Die daraus entstehende Differenz können Sie dann Ihrem Kunden<br />
|
|
|
3044 |
erstatten oder nachberechnen.
|
|
|
3045 |
<br />
|
|
|
3046 |
Dazu muss die Bestellung über Paypal, Kreditkarte oder sofortueberweisung bezahlt worden sein.
|
|
|
3047 |
</p>
|
|
|
3048 |
<form id="change_amount_form" onsubmit="return false;">
|
|
|
3049 |
<input type="hidden" name="_token" value="{csrf_token()}">
|
|
|
3050 |
<input type="hidden" name="_method" value="PATCH">
|
|
|
3051 |
Barcode: <input type="text" name="barcode" id="barcode" />
|
|
|
3052 |
<input type="hidden" name="ab_id" id="change_ab_id" value=""/>
|
|
|
3053 |
<input type="submit" style="display:none;" id="change_amount_btn" />
|
|
|
3054 |
</form>
|
|
|
3055 |
</div>
|
|
|
3056 |
|
|
|
3057 |
<div id="labelReturn" title="Rückmeldung von Labeldruck"></div>
|
|
|
3058 |
<div id="updReturn" title="Ergebnis Bestellupdate"></div>
|
|
|
3059 |
<div id="delShipmentQuestion" title="Wirklich löschen?">
|
|
|
3060 |
Wollen Sie die Trackingnummer <strong><span id="delTrackNumber"></span></strong> wirklich löschen?<br />
|
|
|
3061 |
ACHTUNG: Dadurch wird das Versandlabel UNGÜLTIG und muss neu erstellt werden!
|
|
|
3062 |
<input type="hidden" id="delDokId" />
|
|
|
3063 |
<input type="hidden" id="delDokLogistiker" />
|
|
|
3064 |
<input type="hidden" id="returnCode" />
|
|
|
3065 |
</div>
|
|
|
3066 |
<div id="VersandDialog" title="Parameter für die Erstellung von Versandetiketten festlegen">
|
|
|
3067 |
</div>
|
|
|
3068 |
<div id="refundDlg" title="Erstattung für {$order->kk_info.anbieter} Käufe">
|
|
|
3069 |
<form id="refundForm">
|
|
|
3070 |
<input type="hidden" name="_token" value="{csrf_token()}">
|
|
|
3071 |
<input type="hidden" name="_method" value="PATCH">
|
|
|
3072 |
<table>
|
|
|
3073 |
<tr>
|
|
|
3074 |
<td>Bestellnummer</td>
|
|
|
3075 |
<td colspan="2">
|
|
|
3076 |
{$order->id}
|
|
|
3077 |
<input type="hidden" name="bestell_id" value="{$order->id}" />
|
|
|
3078 |
</td>
|
|
|
3079 |
</tr>
|
|
|
3080 |
<tr>
|
|
|
3081 |
<td>Betrag</td>
|
|
|
3082 |
<td>
|
|
|
3083 |
<input type="text" name="betrag" value="{$order->total_amount_buffer}" id="refundAmount" />
|
|
|
3084 |
</td>
|
|
|
3085 |
<td>
|
|
|
3086 |
{if $order->kk_info.anbieter=="Amazon"}
|
|
|
3087 |
<span id="amazonRefunded" style="display:none;">{$order->refunded}</span>
|
|
|
3088 |
<span id="amazonMax" style="display:none;">{$order->max}</span>
|
|
|
3089 |
<span id="amazonDiff" style="display:none;">{$order->diff}</span>
|
|
|
3090 |
{$order->refunded|money_format_red} bereits erstattet<br />
|
|
|
3091 |
maximal {$order->max|money_format_red} erstattbar<br />
|
|
|
3092 |
noch {$order->diff|money_format_red} übrig
|
|
|
3093 |
<input type="hidden" name="diff" value="{$order->diff}" />
|
|
|
3094 |
<input type="hidden" name="env" value="{$order->kk_info.env}" />
|
|
|
3095 |
{/if}
|
|
|
3096 |
</td>
|
|
|
3097 |
</tr>
|
|
|
3098 |
<tr>
|
|
|
3099 |
<td>Grund</td>
|
|
|
3100 |
<td>
|
|
|
3101 |
<textarea name="grund" cols="30" rows="5">Rückzahlung zu Bestellung {$order->id}.</textarea>
|
|
|
3102 |
</td>
|
|
|
3103 |
<td></td>
|
|
|
3104 |
</tr>
|
|
|
3105 |
</table>
|
|
|
3106 |
<input type="hidden" name="shops_id" value="{$order->shops_ID}" />
|
|
|
3107 |
</form>
|
|
|
3108 |
</div>
|
|
|
3109 |
|
|
|
3110 |
{if isset($web_rechte.Warenwirtschaft.bestellung.bestelldruckquittierung)}
|
|
|
3111 |
<style>
|
|
|
3112 |
.print_eingabefelder .bottomline {
|
|
|
3113 |
border-bottom:1px solid #000;
|
|
|
3114 |
width:46%;
|
|
|
3115 |
float:left;
|
|
|
3116 |
padding:0 1%;
|
|
|
3117 |
margin:40px 1% 0 1%;
|
|
|
3118 |
}
|
|
|
3119 |
.print_eingabefelder .topline {
|
|
|
3120 |
width:46%;
|
|
|
3121 |
float:left;
|
|
|
3122 |
padding:0 1%;
|
|
|
3123 |
border-top:1px solid #000;
|
|
|
3124 |
margin:60px 1% 0 1%;
|
|
|
3125 |
}
|
|
|
3126 |
</style>
|
|
|
3127 |
<div class="onprint print_eingabefelder">
|
|
|
3128 |
<div class="bottomline">Abholdatum: </div>
|
|
|
3129 |
<div class="bottomline">Bearbeiter: </div>
|
|
|
3130 |
<div class="break"></div>
|
|
|
3131 |
<div class="topline">Abholer / Kunde in Druckschrift</div>
|
|
|
3132 |
<div class="topline">Abholer / Kunde Unterschrift</div>
|
|
|
3133 |
</div>
|
|
|
3134 |
{/if}
|
|
|
3135 |
|
|
|
3136 |
<script>
|
|
|
3137 |
$(function(){
|
|
|
3138 |
$('.dokumentnamebox').hover(function() {
|
|
|
3139 |
if ($(this)[0].scrollWidth > $(this).innerWidth() && !$(this).hasClass('marquee')) { $(this).children('a').wrap("<span class='marquee dokumentnamebox'></span>"); }
|
|
|
3140 |
});
|
|
|
3141 |
});
|
|
|
3142 |
</script>
|
|
|
3143 |
{if $dialog}
|
|
|
3144 |
<div id="mailTemplates" title="Template für E-Mail auswählen">
|
|
|
3145 |
<form id="mailTemplateForm" method="post">
|
|
|
3146 |
<input type="hidden" name="_token" value="{csrf_token()}">
|
|
|
3147 |
<input type="hidden" name="_method" value="PATCH">
|
|
|
3148 |
{foreach $templates as $id=> $option}
|
|
|
3149 |
<button title="{$templateDesc.$id}" data-value="{$id}" class="vorlage" style="margin-bottom:10px;">{$option}</button>
|
|
|
3150 |
{/foreach}
|
|
|
3151 |
</form>
|
|
|
3152 |
</div>
|
|
|
3153 |
{/if}
|
|
|
3154 |
|
|
|
3155 |
<div id="mailDlg" title="E-Mail schreiben"></div>
|
|
|
3156 |
<div id="dialogLieferadresse"></div>
|
|
|
3157 |
<div id="dialogRechnungsadresse"></div>
|
|
|
3158 |
<div id="dialogDokTitle" title="Titel ändern">
|
|
|
3159 |
<form id="dokTitleForm" method="post">
|
|
|
3160 |
<input type="hidden" name="_token" value="{csrf_token()}">
|
|
|
3161 |
<input type="hidden" name="_method" value="PATCH">
|
|
|
3162 |
<table>
|
|
|
3163 |
<tr>
|
|
|
3164 |
<td>Titel</td>
|
|
|
3165 |
<td>
|
|
|
3166 |
<input type="text" value="" name="titel" id="dokTitle" size="150" />
|
|
|
3167 |
</td>
|
|
|
3168 |
</tr>
|
|
|
3169 |
</table>
|
|
|
3170 |
<input type="hidden" name="id" value="" id="dokId" />
|
|
|
3171 |
</form>
|
|
|
3172 |
</div>
|
|
|
3173 |
<div id="dokumentDlg" title="Dokument anzeigen"></div>
|
|
|
3174 |
{if $order->Login<100}
|
|
|
3175 |
<div id="umwandelnDlg" title="Kunde umwandeln">
|
|
|
3176 |
Wollen Sie den Kunden <b>{$order->E_Mail}</b> wirklich in ein Kundenkonto umwandeln?
|
|
|
3177 |
<br>
|
|
|
3178 |
<b style="color:red">Diese Aktion kann nicht rückgängig gemacht werden!</b>
|
|
|
3179 |
<br>
|
|
|
3180 |
<br>
|
|
|
3181 |
<b>Info</b>
|
|
|
3182 |
<br>
|
|
|
3183 |
<div id="umwandelnCheckResult"></div>
|
|
|
3184 |
</div>
|
|
|
3185 |
{/if}
|
|
|
3186 |
<script>
|
|
|
3187 |
$(document).ready(function() {
|
|
|
3188 |
// Artikelbeschreibung bearbeiten
|
|
|
3189 |
$('.edit_beschreibung').click(function() {
|
|
|
3190 |
let id = $(this).data("id");
|
|
|
3191 |
$('#beschreibung_'+id).toggle();
|
|
|
3192 |
$('#beschreibung_indikator_'+id).toggle();
|
|
|
3193 |
$('#artikel_'+id+'_changed').val(1);
|
|
|
3194 |
});
|
|
|
3195 |
|
|
|
3196 |
});
|
|
|
3197 |
</script>
|
|
|
3198 |
{if ( isset( $user_rechte["Warenwirtschaft"]["bestellung"]["lieferantenbestellung"] ) )}
|
|
|
3199 |
<div id="lagerbestand"></div>
|
|
|
3200 |
{/if}
|
|
|
3201 |
</div>
|
|
|
3202 |
{/block}
|