diff --git a/Layout/default/Order/Index.php b/Layout/default/Order/Index.php index 019c0de28..9787555c9 100644 --- a/Layout/default/Order/Index.php +++ b/Layout/default/Order/Index.php @@ -268,6 +268,8 @@ $voip = false; $hw = false; + $cpe_config_finished = false; + $patched = false; if(count($order->products)) { foreach($order->products as $product) { @@ -282,16 +284,29 @@ $voip = true; } } - if($hw && $voip_chan) { + if(array_key_exists("bras_type", $product->product->attributes)) { + if($product->cpeprovisioning->routerconfig_finished) { + $cpe_config_finished = true; + } + } + if($hw && $voip_chan && $patched && $cpe_config_finished) { break; } } } } + if(is_array($order->terminations) && count($order->terminations)) { + if($order->terminations[0]->patching->patched) { + $patched = true; + } + } ?> " : ""?> " : ""?> + + " :""?> + " :""?> owner->getCompanyOrName())?>