[freeside-commits] freeside/FS/FS/Cron notify.pm,1.10,1.11
Mark Wells
mark at wavetail.420.am
Wed Sep 1 11:44:17 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail.420.am:/tmp/cvs-serv29042/FS/FS/Cron
Modified Files:
notify.pm
Log Message:
packages and recurdates for impending_recur templates
Index: notify.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Cron/notify.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -w -d -r1.10 -r1.11
--- notify.pm 30 Jul 2010 06:24:02 -0000 1.10
+++ notify.pm 1 Sep 2010 18:44:15 -0000 1.11
@@ -4,7 +4,7 @@
use vars qw( @ISA @EXPORT_OK $DEBUG );
use Exporter;
use FS::UID qw( dbh driver_name );
-use FS::Record qw(qsearch);
+use FS::Record qw(qsearch qsearchs);
use FS::cust_main;
use FS::cust_pkg;
@@ -106,6 +106,8 @@
my $msgnum = $conf->config('impending_recur_msgnum',$cust_main->agentnum);
if ( $msgnum ) {
my $msg_template = qsearchs('msg_template', { msgnum => $msgnum });
+ $cust_main->setfield('packages', \\@packages);
+ $cust_main->setfield('recurdates', \\@recurdates);
$error = $msg_template->send('cust_main' => $cust_main);
}
else {
More information about the freeside-commits
mailing list