From: jeff Date: Wed, 14 Feb 2007 03:12:26 +0000 (+0000) Subject: add simple scalars to impending_recur_notification X-Git-Tag: TRIXBOX_2_6~642 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=b270bdf15e7ac5e9c47a127f82625da25ff16436 add simple scalars to impending_recur_notification --- diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index dc93196be..8db0b0c6a 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -2040,7 +2040,7 @@ httemplate/docs/config.html { 'key' => 'impending_recur_template', 'section' => 'billing', - 'description' => 'Template file for alerts about looming first time recurrant billing. See the Text::Template documentation for details on the template substitition language. Also see packages with a flat price plan The following variables are available', + 'description' => 'Template file for alerts about looming first time recurrant billing. See the Text::Template documentation for details on the template substitition language. Also see packages with a flat price plan The following variables are available', #
  • $payby
  • $expdate most likely only confuse 'type' => 'textarea', }, diff --git a/FS/FS/Cron/notify.pm b/FS/FS/Cron/notify.pm index 579d50aa0..371065094 100644 --- a/FS/FS/Cron/notify.pm +++ b/FS/FS/Cron/notify.pm @@ -92,6 +92,8 @@ END $cust_main->notify( 'impending_recur_template', 'extra_fields' => { 'packages' => \@packages, 'recurdates' => \@recurdates, + 'package' => $packages[0], + 'recurdate' => $recurdates[0], }, ); warn "Error notifying, custnum ". $cust_main->custnum. ": $error" if $error;