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>
|
||||
|
||||
Reference in New Issue
Block a user