OAID / Rimo Workorder update:

- OAIDs are now auto assigned to preorders/wohneinheiten on save
- OAIDs can be exported to rimo via Preorder Admin functions
- Preorder admin function createWorkorder automatically creates, exports and assigns OAIDs
This commit is contained in:
Frank Schubert
2023-08-09 09:02:44 +02:00
parent 85ab465862
commit 9f051b4cf3
27 changed files with 1150 additions and 81 deletions

View File

@@ -9,7 +9,7 @@ class BuildingModel {
public $lineworker_id = null;
public $networksection_id = null;
public $code = null;
public $oan_id = null;
public $oaid = null;
public $street = null;
public $zip = null;
public $city = null;
@@ -215,10 +215,10 @@ class BuildingModel {
}
}
if(array_key_exists("oan_id", $filter)) {
$oan_id = FronkDB::singleton()->escape($filter['oan_id']);
if($oan_id) {
$where .= " AND Building.`oan_id` like '%$oan_id%'";
if(array_key_exists("oaid", $filter)) {
$oaid = FronkDB::singleton()->escape($filter['oaid']);
if($oaid) {
$where .= " AND Building.`oaid` like '%$oaid%'";
}
}