@php $IDCOMMANDE = ''; $NumCommande = ''; $LibelleFamilleProduit = ''; $compteRuptureFseur = 0; $TotalHt = 0; $TotalTva = 0; $TotalTtc = 0; $TotalLignes = 0 ; $lignes = 0; @endphp @foreach ($tableauParam['donnee'] as $key => $ligne) @php $TypeCommande = $ligne->TypeCommande == 1 ? "NORMALE" : ($ligne->TypeCommande == 2 ? "MISE EN PLACE" : ($ligne->TypeCommande == 3 ? "SPECIALE" : ($ligne->TypeCommande == 4 ? "RENFORCEMENT STOCK" : ""))); $NumCommande = $ligne->NumeroCommande; @endphp @if ($IDCOMMANDE != $ligne->IDCOMMANDE) @php $compteRuptureFseur = 0; $LibelleFamilleProduit = ""; @endphp @if ($key > 0) Nombre de lignes : {{ $lignes }}

Nbre de lignes total : {{ $TotalLignes }}

Commentaire :

Totaux
Total HT : {{ $TotalHt }}
Total TVA : {{ $TotalTva }}
Total TTC : {{ $TotalTtc }}
TTC (Euro) : {{ $TotalHt }}
{{-- @break --}} @endif @php $TotalHt = 0; $TotalTva = 0; $TotalTtc = 0; $TotalLignes = 0; @endphp
Logo de l\'entreprise

ABIDJAN, le {{ convertirDateLettre($ligne->DateCommande, false) }}

BON DE COMMANDE

Commande N° : {{ $NumCommande }}

Type de commande : {{ $TypeCommande }}

Mode d'expédition souhaitée : {{ $ligne->LibelleModeExpedition }}

Bureau d'achat : {{ $ligne->NomBureauAchat }}

Fournisseur : {{ $ligne->NomFournisseur }}

@endif @if ($LibelleFamilleProduit != $ligne->LibelleFamilleProduit) @if ($compteRuptureFseur > 0) Nombre de lignes : {{ $lignes }}
@endif @php $lignes = 0; @endphp
@endif @php $IDCOMMANDE = $ligne->IDCOMMANDE; $LibelleFamilleProduit = $ligne->LibelleFamilleProduit; $compteRuptureFseur++; $lignes++; $TotalLignes ++; $TotalHt += $ligne->TotalHT_CO; $TotalTva += $ligne->TotalTaxe_CO; $TotalTtc += $ligne->TotalTTC_CO; @endphp @endforeach
 
Code Interne Code CIP Designation Produit Qté Cmdée PG HT Total HT Laboratoire
{{ $ligne->CodeTedisProduit }} {{ $ligne->CodeCipProduit1 }} {{ $ligne->DesignationProduit }} {{ formatNumeriquePerf($ligne->QuantiteCommandee) }} {{ number_format($ligne->PrixGHT, 2, '.', ' ') }} {{ number_format($ligne->TotalHT, 2, '.', ' ') }} {{ $ligne->NomLaboratoire }}
Nombre de lignes : {{ $lignes }}

Nbre de lignes total : {{ formatNumeriquePerf($TotalLignes) }}

Commentaire :

Totaux
Total HT : {{ formatNumeriquePerf($TotalHt) }}
Total TVA : {{ formatNumeriquePerf($TotalTva) }}
Total TTC : {{ formatNumeriquePerf($TotalTtc) }}
TTC (Euro) : {{ formatNumeriquePerf($TotalHt) }}