Snopp/Citycom Service Order Api
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user