fixed showing partner (e.g. 7000) number in the v2 cpeprov
This commit is contained in:
@@ -60,18 +60,18 @@ class CpeprovisioningController extends mfBaseController
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(array_key_exists($order->id, $orderproductsprefetch)) {
|
||||
foreach ($orderproductsprefetch[$order->id] as $orderproduct) {
|
||||
if(!$orderproduct) continue;
|
||||
if(!is_array($orderproduct)) continue;
|
||||
|
||||
|
||||
if ($orderproduct['routerconfig_finished'] == 1) {
|
||||
if (!$filter['routerconfig_finished']) continue;
|
||||
} else {
|
||||
if ($filter['routerconfig_finished']) continue;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$productattributes = $orderproduct['attributes'];
|
||||
|
||||
@@ -570,7 +570,7 @@ class CpeprovisioningController extends mfBaseController
|
||||
'firstline' => $order->owner->getCompanyOrName(),
|
||||
'secondline' => $order->owner->street,
|
||||
'thirdline' => $order->owner->zip . " " . $order->owner->city,
|
||||
'fourthline' => $order->owner->customer_number
|
||||
'fourthline' => $order->owner->customer_number ?? $order->partner_number
|
||||
];
|
||||
|
||||
$pdf = new PdfForm("Cpeprovisioning/PDF_MAIN", $pdf_vars);
|
||||
@@ -584,4 +584,4 @@ class CpeprovisioningController extends mfBaseController
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user