Added scripts to update units and split preorders with connection_count

> 1
This commit is contained in:
Frank Schubert
2023-04-19 17:20:36 +02:00
parent df088b56eb
commit c5a9e3e9d7
7 changed files with 244 additions and 3 deletions
+3 -1
View File
@@ -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)