diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index db9df79b91c..ab562584b0a 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -2484,6 +2484,7 @@ if ($action == 'create') $htmltext=''; if (GETPOST('fac_rec','int') > 0) { + $dateexample=($datefacture ? $datefacture : $dateinvoice); if (empty($dateexample)) $dateexample=dol_now(); $substitutionarray=array( '__TOTAL_HT__' => $langs->trans("AmountHT").' ('.$langs->trans("Example").': '.price($exampletemplateinvoice->total_ht).')',