diff --git a/app/Controllers/OrderController.php b/app/Controllers/OrderController.php
index cb726efe..a69108b7 100644
--- a/app/Controllers/OrderController.php
+++ b/app/Controllers/OrderController.php
@@ -2043,9 +2043,22 @@ public function print5(int $id)
$prixItem = $details['prix'] * $qty;
$totalPrixIndividuels += $prixItem;
+ $chassis = esc($details['numero_chassis']);
+ $moteur = esc($details['numero_moteur']);
+ $chassisMoteur = '';
+ if (!empty($chassis) && $chassis !== 'N/A') {
+ $chassisMoteur .= $chassis;
+ }
+ if (!empty($moteur) && $moteur !== 'N/A') {
+ $chassisMoteur .= (!empty($chassisMoteur) ? ' / ' : '') . $moteur;
+ }
+ if (empty($chassisMoteur)) {
+ $chassisMoteur = 'N/A';
+ }
+
$tableRows .= '
| '.esc($details['marque']).' |
- '.esc($details['numero_chassis']).' |
+ '.$chassisMoteur.' |
'.esc($details['puissance']).' |
'.number_format($prixItem, 0, ' ', ' ').' |
';
@@ -2320,7 +2333,7 @@ public function print5(int $id)
| MARQUE |
- N° CHASSIS |
+ N° CHASSIS / MOTEUR |
PUISSANCE |
PRIX (Ariary) |
diff --git a/app/Models/Historique.php b/app/Models/Historique.php
index cafcf3a3..978d823a 100644
--- a/app/Models/Historique.php
+++ b/app/Models/Historique.php
@@ -192,7 +192,7 @@ class Historique extends Model
{
$data = $this->getHistoriqueWithFilters($filters);
- $csvData = "ID,Table,Action,ID Produit,Nom Produit,SKU,Magasin,Description,Date/Heure\n";
+ $csvData = "ID,Table,Action,ID Produit,Nom Produit,N° de série,Magasin,Description,Date/Heure\n";
foreach ($data as $row) {
$csvData .= '"' . $row['id'] . '",';
diff --git a/app/Views/historique/index.php b/app/Views/historique/index.php
index 8ae8104c..18b2d33f 100644
--- a/app/Views/historique/index.php
+++ b/app/Views/historique/index.php
@@ -73,7 +73,7 @@
| Date |
Produit |
- SKU |
+ N° de série |
Magasin |
Utilisateur |
Action |