Browse Source

[Backend] Correctif mail envoi commandes PDF

Petite coquille dans le texte du mail des commandes en PDF.
prodstable
keun 8 years ago
parent
commit
4ed5fe4015
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      backend/controllers/CronController.php

+ 1
- 3
backend/controllers/CronController.php View File

if(count($commandes)) if(count($commandes))
{ {
$sujet = '[La boîte à pain] Commandes du '.date('d/m',strtotime($date)) ; $sujet = '[La boîte à pain] Commandes du '.date('d/m',strtotime($date)) ;
if(count($commandes) > 1)
$sujet .= 's' ;


// génération du pdf de commande // génération du pdf de commande
Yii::$app->runAction('commande/report-cron', [ Yii::$app->runAction('commande/report-cron', [


$message = 'Bonjour, $message = 'Bonjour,


Voici en pièce jointe le récapitulatif des commandes ('.count($commandes).') du '.date('d/m',strtotime($date)).'.
Voici en pièce jointe le récapitulatif des '.count($commandes).' commandes du '.date('d/m',strtotime($date)).'.


À bientôt, À bientôt,
La boîte à pain La boîte à pain

Loading…
Cancel
Save