diff --git a/htdocs/telephonie/script/recap-commande-week.php b/htdocs/telephonie/script/recap-commande-week.php index 815275af3809cb17de603aa581b98ba31556e8db..2f8b57e5be5a5292baaf7a9a30f46aa4ad3eaf94 100644 --- a/htdocs/telephonie/script/recap-commande-week.php +++ b/htdocs/telephonie/script/recap-commande-week.php @@ -164,7 +164,7 @@ function Generate($date_gen, $db, $date_now, $email) $sqlall .= " WHERE l.fk_soc = s.idp AND l.fk_fournisseur = f.rowid"; $sqlall .= " AND l.fk_soc_facture = r.idp "; $sqlall .= " AND l.fk_commercial = comm.rowid "; - $sqlall .= " AND date_format(l.date_commande,'%Y%v') = '".strftime("%Y%v", $date_gen)."'"; + $sqlall .= " AND date_format(l.date_commande,'%Y%v') = '".strftime("%Y%V", $date_gen)."'"; /* * */