31,014
edits
PolyglotBot (talk | contribs) m (Import interlang links (links to translated versions of this page in other languages) from origin English page "Customize_the_email_sending_message".) |
mNo edit summary Tag: 2017 source edit |
||
| Line 187: | Line 187: | ||
faites une recherche de «__FACREF__» dans votre editeur et vous allez trouver la ligne suivante : | faites une recherche de «__FACREF__» dans votre editeur et vous allez trouver la ligne suivante : | ||
< | <syntaxHighlight lang="php">// Tableau des substitutions | ||
$formmail->substit['__FACREF__']=$object->ref;</ | $formmail->substit['__FACREF__']=$object->ref;</syntaxHighlight> | ||
Pour ajouter les variables insérer les 2 lignes suivantes :
| Pour ajouter les variables insérer les 2 lignes suivantes :
| ||
< | <syntaxHighlight lang="php">$formmail->substit['__FACDATE__']=date('d/m/Y',$object->date); | ||
$formmail->substit['__FACTOTALTTC__']=number_format($object->total_ttc,2,',',' ');</ | $formmail->substit['__FACTOTALTTC__']=number_format($object->total_ttc,2,',',' ');</syntaxHighlight> | ||
Vous pouvez maintenant insérer la date et le montant TTC de la facture dans votre message automatique. | Vous pouvez maintenant insérer la date et le montant TTC de la facture dans votre message automatique. | ||
| Line 208: | Line 208: | ||
Pour l’utiliser ajouter dans votre tableau des substitutions | Pour l’utiliser ajouter dans votre tableau des substitutions | ||
< | <syntaxHighlight lang="php">$formmail->substit['__FACDATELIMREG__']=date('d/m/Y',$object->date_lim_reglement);</syntaxHighlight> | ||