Added scripts to update units and split preorders with connection_count
> 1
This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
<div class="col-lg-10">
|
||||
<select class="form-control" name="adb_wohneinheit_id" id="adb_wohneinheit_id" />
|
||||
<?php if($preorder->adb_wohneinheit_id): ?>
|
||||
<option value="<?=$preorder->adb_wohneinheit_id?>" selected="selected"><?=$preorder->adb_hausnummer->strasse->name?> <?=$preorder->adb_hausnummer->hausnummer?> <?=$preorder->adb_wohneinheit?></option>
|
||||
<option value="<?=$preorder->adb_wohneinheit_id?>" selected="selected"><?=$preorder->adb_hausnummer->strasse->name?> <?=$preorder->adb_hausnummer->hausnummer?> <?=$preorder->adb_wohneinheit?><?=($preorder->adb_wohneinheit->extref) ? " (".$preorder->adb_wohneinheit->extref.")" : ""?></option>
|
||||
<?php endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
@@ -588,6 +588,7 @@
|
||||
if(unit.extra) {
|
||||
opt += " " + unit.extra;
|
||||
}
|
||||
if(unit.extref) opt += " (" + unit.extref + ")";
|
||||
|
||||
/*let extras = new Array();
|
||||
if(unit.block) extras.push("Block " + unit.block);
|
||||
@@ -608,6 +609,7 @@
|
||||
$('#adb_wohneinheit_id').append(opt);
|
||||
$('#adb_wohneinheit_id').addClass("is-invalid");
|
||||
$('#adb_wohneinheit_id')
|
||||
.data("extref", unit.extref)
|
||||
.data("zip", unit.zip)
|
||||
.data("city", unit.city)
|
||||
.data("street", unit.street)
|
||||
|
||||
Reference in New Issue
Block a user