Added minor things to Order; fixed saving patcher in Patching
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<form method="post" id="submit-form" action="<?=self::getUrl("Cpeshipping", "ship")?>">
|
||||
<form method="post" id="submit-form" action="<?=self::getUrl("Cpeshipping", "save")?>">
|
||||
<table class="table table-striped table-hover">
|
||||
<tr>
|
||||
<th class="text-center">Versand<br /><input type="checkbox" id="checkAll" class="form-control" /></th>
|
||||
@@ -73,8 +73,14 @@
|
||||
<td class="versand-checkbox text-center"><input type="checkbox" class="form-control" id="ship-<?=$c->id?>" 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" id="external_finish-<?=$c->id?>" name="external_finish-<?=$c->id?>" value="1" />
|
||||
<input type="hidden" name="prov[]" value="<?=$c->id?>" />
|
||||
<input type="checkbox" class="form-control" id="external_finish-<?=$c->id?>" name="external_finish[<?=$c->id?>]" value="1" <?=($c->external_finished) ? "checked='checked'" : ""?> />
|
||||
<span id="ship-error-<?=$c->id?>" class="text-danger hidden">Vorleistungsdienst muss bestellt sein vor Versand!</span>
|
||||
<span class="text-info" <?=($c->external_finished_by) ? "title='Vorleistungsdienst bestellt von ".$c->external_finisher->name." (".$c->external_finisher->address->getCompanyOrName(true).")'" : ""?>>
|
||||
<?php if($c->external_finished_by): ?>
|
||||
<?=($c->external_finished_by) ? $c->external_finisher->getAbbrName() : ""?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<?php else: ?>
|
||||
<i>nicht erforderlich</i>
|
||||
<?php endif; ?>
|
||||
@@ -89,7 +95,8 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<input type="submit" class="btn btn-primary" value="Versand-CSV generieren" />
|
||||
<button type="submit" name="type" class="btn btn-outline-primary" value="save" />Speichern</button>
|
||||
<button type="submit" name="type" class="btn btn-primary ml-2" value="ship" >Versand-CSV generieren</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -143,11 +150,11 @@
|
||||
|
||||
var error = false;
|
||||
|
||||
$('input[name^=external_finish-]').each(function() {
|
||||
var id_match = $(this).attr("name").match(/external_finish-(\d+)$/);
|
||||
$('input[id^=external_finish-]').each(function() {
|
||||
var id_match = $(this).attr("id").match(/external_finish-(\d+)$/);
|
||||
var id = id_match[1];
|
||||
|
||||
if(!$("input[name^=external_finish-").is(":checked")) {
|
||||
if(!$("input[id^=external_finish-").is(":checked")) {
|
||||
if($("#ship-" + id).is(":checked")) {
|
||||
error = true;
|
||||
$("#ship-error-" + id).show();
|
||||
|
||||
Reference in New Issue
Block a user