From: Vincent Vanwaelscappel Date: Fri, 11 Apr 2025 16:56:42 +0000 (+0200) Subject: #7423 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9a73d8b5c9e8a7ef0067e9105b4434e5e6db8e19;p=fluidbook-toolbox.git #7423 --- diff --git a/app/Http/Controllers/Admin/Operations/FluidbookPublication/Services/PumaOperation.php b/app/Http/Controllers/Admin/Operations/FluidbookPublication/Services/PumaOperation.php index a48a2433f..3505caf9f 100644 --- a/app/Http/Controllers/Admin/Operations/FluidbookPublication/Services/PumaOperation.php +++ b/app/Http/Controllers/Admin/Operations/FluidbookPublication/Services/PumaOperation.php @@ -43,8 +43,8 @@ trait PumaOperation continue; } $r[$reference] = $data; - $title = trim(trim($data['Catégorie']) . ' ' . trim($data['RBU'])); - $subtitle = trim(trim($data['Age Group']) . ' - ' . trim($data['Product Line']), '- '); + $title = trim(trim($data['Catégorie']??'') . ' ' . trim($data['RBU']??'')); + $subtitle = trim(trim($data['Age Group']??'') . ' - ' . trim($data['Product Line']??''), '- '); $key = md5($title . $subtitle); if (!isset($planches[$key])) { $planches[$key] = ['class' => $data['Catégorie'], 'title' => $title, 'subtitle' => $subtitle, 'products' => []]; @@ -72,9 +72,9 @@ trait PumaOperation $html .= ''; $html .= '
'; $html .= '

' . $reference . '

'; - $html .= '
' . $product['Désignation'] . '
'; - $html .= '
' . $product['Color Name'] . '
'; - $html .= '
PA : ' . number_format(floatval($product['Tarif']), 2, ',', ' ') . ' € / PVP : ' . number_format(floatval($product['PVC']), 2, ',', ' ') . ' €
'; + $html .= '
' . $product['Désignation']??'' . '
'; + $html .= '
' . $product['Color Name']??''. '
'; + $html .= '
PA : ' . number_format(floatval($product['Tarif']??0), 2, ',', ' ') . ' € / PVP : ' . number_format(floatval($product['PVC']??0), 2, ',', ' ') . ' €
'; $html .= '
'; $html .= ''; }