api changes:

- GET /preorder/open - get all open preorders
 - added extref to preorder requests and responses, can be used to
   identify a specific preorder
This commit is contained in:
Frank Schubert
2023-02-27 16:17:37 +01:00
parent 33dc42eadd
commit 1a8848e02f
5 changed files with 182 additions and 19 deletions
+8
View File
@@ -7,6 +7,7 @@ class PreorderModel {
public $adb_hausnummer_id;
public $adb_wohneinheit_id;
public $oaid;
public $extref;
public $address_district;
public $address_info;
public $building_id;
@@ -413,6 +414,13 @@ class PreorderModel {
}
}
if(array_key_exists("extref", $filter)) {
$extref = FronkDB::singleton()->escape($filter['extref']);
if($extref) {
$where .= " AND tt_preorder.extref = '$extref'";
}
}
if(array_key_exists("gemeinde", $filter)) {
$gemeinde = FronkDB::singleton()->escape($filter['gemeinde']);
if($gemeinde) {