Snopp/Citycom Service Order Api

This commit is contained in:
Frank Schubert
2025-08-18 18:01:52 +02:00
parent b7ba97d834
commit 4af4622357
6 changed files with 94 additions and 16 deletions
+11 -2
View File
@@ -94,6 +94,9 @@ class Citycom_OanApiHelper {
$execution_date = date("Y-m-d");
}
if(array_key_exists("ctag_range_search", $data) && $data["ctag_range_search"]) {
$ctag_range_search = $data["ctag_range_search"];
}
$product_data = [
"up" => $up,
@@ -113,10 +116,16 @@ class Citycom_OanApiHelper {
$new_services = [];
$ctags = $preorder->getNextFreeCtags();
if($ctag_range_search) {
$ctags = $preorder->getFreeCtagsInSet($ctag_range_search);
} else {
$ctags = $preorder->getNextFreeCtags();
}
$this->log->debug(print_r($ctags, true));
if(!$ctags) {
$this->log->error(__METHOD__.": No New Free Ctags (Preorder ".$preorder->id.")");
$this->log->error(__METHOD__.": No Free Ctags (Preorder ".$preorder->id.")");
return false;
}