From 5eb3f62b4349fe843acc74c5a230121bbbd18ba9 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Wed, 20 Oct 2021 19:40:41 +0200 Subject: [PATCH] Added additional icons to upper orders --- Layout/default/Order/Index.php | 49 ++++++++++++++++++- .../CpeprovisioningController.php | 4 +- 2 files changed, 49 insertions(+), 4 deletions(-) diff --git a/Layout/default/Order/Index.php b/Layout/default/Order/Index.php index 598fac9fa..a785e4354 100644 --- a/Layout/default/Order/Index.php +++ b/Layout/default/Order/Index.php @@ -108,6 +108,7 @@ + @@ -118,7 +119,51 @@ " id="order-id?>"> - + + " id="order-dates-id?>"> - +
Kunde Adresse Bestelldatum
id?>id?> + products)) { + foreach($order->products as $product) { + if(is_array($product->product->attributes) && count($product->product->attributes)) { + if(array_key_exists("hw_only", $product->product->attributes)) { + if($product->product->attributes["hw_only"]->value) { + $hw = true; + } + } + if(array_key_exists("voip_chan", $product->product->attributes)) { + if($product->product->attributes["voip_chan"]->value) { + $voip = true; + } + } + 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())?> owner->spin) ? "
".$order->owner->spin."" : ""?> @@ -139,7 +184,7 @@
Versandtermin: --.--.----
diff --git a/application/Cpeprovisioning/CpeprovisioningController.php b/application/Cpeprovisioning/CpeprovisioningController.php index 1faa2000b..590aaeb29 100644 --- a/application/Cpeprovisioning/CpeprovisioningController.php +++ b/application/Cpeprovisioning/CpeprovisioningController.php @@ -88,7 +88,7 @@ class CpeprovisioningController extends mfBaseController { } $prov_data = []; - $prov_data["termination_id"] = $r->termination_id; + $prov_data["termination_id"] = ($r->termination_id) ? $r->termination_id : null; $prov_data["order_id"] = $r->order_id; $prov_data["orderproduct_id"] = $r->orderproduct_id; $prov_data["routerconfig_finished"] = ($r->routerconfig_finished) ? 1 : 0; @@ -162,4 +162,4 @@ class CpeprovisioningController extends mfBaseController { } -} \ No newline at end of file +}