feat: corrections du 09-04-2026
- Page Historique : remplacement SKU par N° de série (vue + export CSV) - Facture : colonne N° CHASSIS remplacée par N° CHASSIS / MOTEUR (affiche les deux valeurs) - Facture : montant en lettres vérifié et fonctionnel Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
38d37a0987
commit
e02671e860
@ -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 .= '<tr>
|
||||
<td>'.esc($details['marque']).'</td>
|
||||
<td>'.esc($details['numero_chassis']).'</td>
|
||||
<td>'.$chassisMoteur.'</td>
|
||||
<td>'.esc($details['puissance']).'</td>
|
||||
<td>'.number_format($prixItem, 0, ' ', ' ').'</td>
|
||||
</tr>';
|
||||
@ -2320,7 +2333,7 @@ public function print5(int $id)
|
||||
<thead>
|
||||
<tr>
|
||||
<th>MARQUE</th>
|
||||
<th>N° CHASSIS</th>
|
||||
<th>N° CHASSIS / MOTEUR</th>
|
||||
<th>PUISSANCE</th>
|
||||
<th>PRIX (Ariary)</th>
|
||||
</tr>
|
||||
|
||||
@ -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'] . '",';
|
||||
|
||||
@ -73,7 +73,7 @@
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Produit</th>
|
||||
<th>SKU</th>
|
||||
<th>N° de série</th>
|
||||
<th>Magasin</th>
|
||||
<th>Utilisateur</th>
|
||||
<th>Action</th>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user