From b270bdf15e7ac5e9c47a127f82625da25ff16436 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 14 Feb 2007 03:12:26 +0000 Subject: [PATCH] add simple scalars to impending_recur_notification --- FS/FS/Conf.pm | 2 +- FS/FS/Cron/notify.pm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.11.0