X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FTemplate_Mixin.pm;h=8bfc51cf1a84f15b8d78b8dcfc145a395a3ae873;hp=b153d3114d8a038e76d7ce979a6b44a2ca698a59;hb=35ff521568f17c86d58c19c2cd945cf4b93d46a1;hpb=61e2f89c40a50478d12b4818400caff32d20f61a diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index b153d3114..8bfc51cf1 100644 --- a/FS/FS/Template_Mixin.pm +++ b/FS/FS/Template_Mixin.pm @@ -7,16 +7,19 @@ use vars qw( $DEBUG $me ); # but NOT $conf use vars qw( $invoice_lines @buf ); #yuck -use List::Util qw(sum); +use List::Util qw(sum); #can't import first, it conflicts with cust_main.first use Date::Format; use Date::Language; +use Time::Local qw( timelocal ); use Text::Template 1.20; use File::Temp 0.14; +use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); +use IO::Scalar; use HTML::Entities; -use Locale::Country; use Cwd; use FS::UID; -use FS::Record qw( qsearch qsearchs ); +use FS::Misc qw( send_email ); +use FS::Record qw( qsearch qsearchs dbh ); use FS::Conf; use FS::Misc qw( generate_ps generate_pdf ); use FS::pkg_category; @@ -26,9 +29,9 @@ use FS::L10N; $DEBUG = 0; $me = '[FS::Template_Mixin]'; -FS::UID->install_callback( sub { +FS::UID->install_callback( sub { my $conf = new FS::Conf; #global - $money_char = $conf->config('money_char') || '$'; + $money_char = $conf->config('money_char') || '$'; $date_format = $conf->config('date_format') || '%x'; #/YY } ); @@ -118,7 +121,7 @@ default is now. It isn't the date of the invoice; that's the `_date' field. It is specified as a UNIX timestamp; see L. Also see L and L for conversion functions. -I