'Internet','t'=>'Téléphonie']; // Internet, Telephonie
$Total_Rec = "0";
$Total_Fas = "0";
foreach($ArrType as $TypedeCommande=>$NomType) {
$cpte = count($_SESSION['AIRCMDV2']['Commande'][$TypedeCommande]);
if($cpte) echo "$NomType";
foreach($_SESSION['AIRCMDV2']['Commande'][$TypedeCommande] as $Etape=>$Produits) {
// Extrait uniquement l ID
foreach($Produits as $NoProduit=>$Dtl) {
//if($Dtl['confirme']=='OK') {
echo "
";
$NomProduit = $_SESSION['AIRCMDV2']['NomProduits'][$Dtl['id']]['nom'];
$Rec = $_SESSION['AIRCMDV2']['NomProduits'][$Dtl['id']]['rec'];
$Total_Rec += $Rec;
$Fas = $_SESSION['AIRCMDV2']['NomProduits'][$Dtl['id']]['fas'];
$Total_Fas += $Fas;
if ($Dtl['id'] > 0) {
${'Cpte' . $Type}++;
// Produit
if ($Etape == "1") {
$Array = ['Forfait ', $NomType, $NomProduit, $Rec, $Fas];
FormatLignePanier($Array);
}
// Options
if ($Etape == "2") {
$Array = ['Opt.', $NomType, $NomProduit, $Rec, $Fas];
FormatLignePanier($Array);
}
}
echo "
";
//}
}
$HT = $Total_Fas+$Total_Rec;
$TVA = ($HT*20/100);
$TTC = $HT+$TVA;
$_SESSION['AIRCMDV2']['TotalCmd'] = $TTC;
}
if ($cpte && empty(${'Cpte'.$Type})) echo "
Sélectionnez une offre
";
}
?>
Mise en service
=number_format($Total_Fas, 2, ',','')?> € HT
Abonnement
=number_format($Total_Rec, 2, ',','')?> € HT
Total HT
=number_format($HT, 2, ',','')?> € HT
TVA (20%)
=number_format($TVA, 2, ',','')?> € HT
Total TTC
=number_format($TTC, 2, ',','')?> €
1 $array[0] " .utf8_encode($array[2]). "";
echo "" . number_format($array[3], 2, ',', '') . " €
";
if ($array[3] ) {
echo "1 Frais de mise en service
";
echo "" . number_format( $array[4], 2, ',', '') . " €
";
}
}
?>