diff --git a/Layout/default/Device/Detail.php b/Layout/default/Device/Detail.php
index 1743b711a..bb57d97bc 100644
--- a/Layout/default/Device/Detail.php
+++ b/Layout/default/Device/Detail.php
@@ -730,7 +730,9 @@ foreach ($devicesall as $deviceall) {
allonts++;
if (typeof customers[ont['serial']] !== "undefined") {
customerid = customers[ont['serial']]['customer_number'];
-
+ if (customerid == "" || customerid == null) {
+ customerid = "N/A";
+ }
if (customers[ont['serial']]['company'] != "" && customers[ont['serial']]['company'] != null) {
@@ -744,14 +746,23 @@ foreach ($devicesall as $deviceall) {
} else if (customers[ont['serial']]['lastname'] == null) {
}
- customername +='
'+ customers[ont['serial']]['street'] + ", " + customers[ont['serial']]['zip'] + " " + customers[ont['serial']]['city']
+ customername += '
' + customers[ont['serial']]['street'] + ", " + customers[ont['serial']]['zip'] + " " + customers[ont['serial']]['city']
} else {
customername = "N/A";
customerid = "N/A";
}
+ let orderPort = item['portshort'] + `/` + o;
+ let parts = orderPort.split('/');
+ let formattedParts = parts.map(num => {
+ let number = parseInt(num, 10);
+ return number.toString().padStart(2, '0');
+ });
+ orderPort = formattedParts.join('');
+
+
$('#datatable tbody').append(`