cid) { $datesplit = explode("-", $currentDevis->date); $year = (int) $datesplit[0]; $month = (int) $datesplit[1]; $checkClient = false; $filterType = "group"; if (array_key_exists('filterType', $_GET) && $_GET['filterType'] == 'client') { $filterType = "client"; } $clientIsNotSelected = strcmp($_GET['cli'], '') == 0; if ($clientIsNotSelected) { if ($filterType == "group") { $checkClient = $_['clients'][0]->fk_client_group_facturation_id == $currentDevis->cid; } else { $checkClient = $_['clients'][0]->id == $currentDevis->cid; } } else { if ($filterType == "group") { $checkClient = $currentDevis->fk_client_group_facturation_id == $_GET['cli']; } else { $checkClient = $currentDevis->cid == $_GET['cli']; } } $checkYear = ((int) ($_GET['annee']) == -1) ? (true) : ($year == ((int) $_GET['annee'])); $checkMounth = (((int) $_GET['mois']) == 0) ? (true) : ($month == ((int) $_GET['mois'])); return $checkClient && $checkYear && $checkMounth; } return false; }); if (strcmp($_GET['cli'], '') != 0 && sizeof($devis) > 0) { ?>

$currentDevis) { ?>

t('Quote')); ?>
sur le defunt nom_defunt; ?>
(
lieu; ?>)


t('FROM')); ?> entreprise; ?>

prenom . " " . $res->nom; ?>
adresse; ?>
mail; ?>
telephone; ?>

" . $l->t("; } else { echo ""; } ?>
t('TO')); ?> entreprise ?>

prenom . ' ' . $currentDevis->nom ?>
adresse_cli ?>
mail_cli ?>
telephone_cli ?>
legalone_cli ?>


t('Offer valid for 1 month from')); ?> : date))->format('d-m-Y'); ?>

Date de soin : date))->format('d-m-Y'); ?>, id; ?>>Defunt associé : nom_defunt; ?>
Lieu : lieu; ?> (adresse_soin; ?>)
order_number == "") ? "-" : $currentDevis->order_number ; ?>

case_number == "") ? "-" : $currentDevis->case_number ; ?>

dproduits as $key => $produit) { ?>
t('Reference')); ?> t('Designation')); ?> t('Comment')); ?> t('Quantity')); ?> t('Unit price without VAT')); ?> t('Total without VAT')); ?>
reference ?> description ?> comment ?> quantite ?> prix_unitaire, 2) ?> prix_unitaire * $produit->quantite, 2) ?>
tva_default; $clientTvaStatus = isset($currentDevis->tva) ? (int)$currentDevis->tva : 1; $totalttc = 0; $totalprice = 0; foreach ($currentDevis->dproduits as $key => $produit) { $totalhtc = $totalhtc + ($produit->quantite * $produit->prix_unitaire); } // Calculer la TVA selon le statut du client if ($clientTvaStatus === 0) { // Client exonéré de TVA $tva = 0; $totalttc = 0; $totalprice = $totalhtc; } else { // Client soumis à la TVA $totalttc = ($totalhtc * $tva) / 100; $totalprice = $totalhtc + $totalttc; } ?>
t('Total without VAT')); ?> t('VAT Rate')); ?> t('Total VAT')); ?> t('Total Price')); ?>
%

t('Please set in global configuration')); ?>


entreprise; ?>
adresse; ?>
legal_one; ?>
legal_two; ?>