Creating shipping CSV
This commit is contained in:
@@ -19,12 +19,15 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<a class="btn btn-success" href="<?=self::getUrl("Cpeshipping/History")?>">History anzeigen</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body mb-3">
|
||||
<div class="float-left">
|
||||
<h4 class="header-title">CPE Versand</h4>
|
||||
</div>
|
||||
<h4 class="header-title">CPE Versand</h4>
|
||||
|
||||
<?php if($pagination['maxItems'] > $pagination['count']): ?>
|
||||
<nav>
|
||||
@@ -58,7 +61,8 @@
|
||||
<form method="post" action="<?=self::getUrl("Cpeshipping", "ship")?>">
|
||||
<table class="table table-striped table-hover">
|
||||
<tr>
|
||||
<th class="text-center"><input type="checkbox" id="checkAll" class="form-control" /></th>
|
||||
<th class="text-center">Versand<br /><input type="checkbox" id="checkAll" class="form-control" /></th>
|
||||
<th class="text-center">Externes Produkt<br />bestellt</th>
|
||||
<th>Kundennummer</th>
|
||||
<th>Kunde</th>
|
||||
<th>Lieferort</th>
|
||||
@@ -66,7 +70,14 @@
|
||||
</tr>
|
||||
<?php foreach($cpeprovisionings as $c): ?>
|
||||
<tr>
|
||||
<td><input type="checkbox" class="form-control" name="ships[]" value="<?=$c->id?>" /></td>
|
||||
<td class="versand-checkbox text-center"><input type="checkbox" class="form-control" name="ships[]" value="<?=$c->id?>" /></td>
|
||||
<td class="text-center">
|
||||
<?php if(array_key_exists("hostnetwork_order", $c->orderproduct->product->attributes) && $c->orderproduct->product->attributes['hostnetwork_order']->value): ?>
|
||||
<input type="checkbox" class="form-control" name="external_finish-<?=$c->id?>" value="1" />
|
||||
<?php else: ?>
|
||||
n/a
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td><?=$c->order->owner->customer_number?></td>
|
||||
<td><?=$c->order->owner->getCompanyOrName()?></td>
|
||||
<td><?=($c->termination_id) ? $c->termination->building->zip." ".$c->termination->building->city : $c->order->owner->zip." ".$c->order->owner->city?></td>
|
||||
@@ -120,7 +131,7 @@
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$("#checkAll").click(function() {
|
||||
$('input:checkbox').not(this).prop('checked', this.checked);
|
||||
$('.versand-checkbox input:checkbox').not(this).prop('checked', this.checked);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
"Kontakt (Shipper)";"Firmenanme (Shipper)";"Adresszeile 1 (Shipper)";"City name (Shipper)";"PLZ (Shipper)";"Country Code (Shipper)";"Email (Shipper)";"Phone type (Shipper)";"Phone Country Code (Shipper)";"Phone Number (Shipper)";"Firmename (Receiver)";"Kontakt (Receiver)";"Adresszeile 1 (Receiver)";"City name (Receiver)";"Country Code (Receiver)";"PLZ (Receiver)";"Phone Type (Receiver)";"Phone Country Code (Receiver)";"Phone Number (Receiver)";"Shipment Date (YYYYMMDD)";"Account Number (Shipper)";"Accoun Number (Payer)";"Accoun Number (Duty&Tax)";"Total Shipment Pieces";"Weight";"Lenght";"Weith ";"Hight";"Product Code (three digits)";"Declared Value Currency";"Declared Value";"Summary of Contents";"Product Type";"Reference 1";"Email Address Receiver";"Email Address (shipment notification)";"Delivered Duty Paid";"Neutral Delivery";"Saturday Delivery";"Extended Liability";"Insured Value Currency";"Insured Value"
|
||||
<?php
|
||||
foreach($shippings as $ship):
|
||||
$order = $ship->order;
|
||||
$owner = $order->owner;
|
||||
?>
|
||||
"<?=$me->username?>";XINON GmbH;Fladnitz 150;Studenzen;8322;AT;office@xinon.at;O;43;311540800;"<?=$owner->company?>";"<?=$owner->getFullName()?>";"<?=($ship->termination_id) ? $ship->termination->building->street : $owner->street?>";"<?=$owner->city?>";AT;<?=($ship->termination_id) ? $ship->termination->building->zip : $owner->zip?>;0;<?=$owner->splitPhoneNumber()[0]?>;<?=$owner->splitPhoneNumber()[1]?>;;170863186;;;1;<?=$ship->ship_weight?>;<?=$ship->ship_length?>;<?=$ship->ship_width?>;<?=$ship->ship_height?>;DOM;EUR;;"Ware, not restricted";P;<?=$owner->customer_number?>;"<?=$owner->email?>";office@xinon.at;;;N;N;;
|
||||
<?php endforeach; ?>
|
||||
@@ -192,7 +192,7 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="order-detail-<?=$order->id?>" class="hidden" style="background-color:#fff">
|
||||
<tr id="order-detail-<?=$order->id?>" class="hidden" style="background-color:#cddef7">
|
||||
<td colspan="8">
|
||||
|
||||
<div class="card">
|
||||
|
||||
Reference in New Issue
Block a user