date_paiement); $year = (int) $datesplit[0]; $month = (int) $datesplit[1]; $checkClient = false; $filterType = "client"; if(array_key_exists('filterType',$_GET) && $_GET['filterType'] == 'group'){ $filterType = "group"; } if($_GET['cli'] != null && $_GET['cli'] != '') { if($filterType == "group"){ $checkClient = $f->fk_client_group_facturation_id == $_GET['cli']; } else{ $checkClient = $f->id_cli == $_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; }); if(sizeof($factures)>0) { ?>

$facture) { ?>

t('Invoice #'));?>
num;?>


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

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

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

nom ?>
adresse_cli ?>
mail_cli ?>
telephone_cli ?>
legalone_cli ?>


Date de facture : date_paiement))->format('d-m-Y');?>, t('Date of service'));?> : date))->format('d-m-Y');?>
id_devis;?>>Défunt associé : nom_defunt;?>, t('Means of payment'));?> : facture_payment_type_label ?? "Aucun";?>
Lieu : lieu;?> (adresse_soin;?>)

dcomment == "" ) ? "-" : $facture->dcomment ; ?>

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; $totalttc = 0; $totalprice = 0; foreach ($facture->dproduits as $key => $produit) { $totalhtc = $totalhtc + ($produit->quantite*$produit->prix_unitaire); } $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; ?>