setup and recurring fee tax exempt flags, UI to edit
[freeside.git] / htetc / global.asa
index d6e0bbe..a5863c3 100644 (file)
@@ -1,12 +1,18 @@
 use strict;
 use vars qw( $cgi $p );
 use CGI;
-use CGI::Carp qw(fatalsToBrowser);
+#use CGI::Carp qw(fatalsToBrowser);
 use HTML::Entities;
+use Date::Format;
+use Date::Parse;
 use FS::UID qw(cgisuidsetup dbh);
 use FS::Record qw(qsearch qsearchs fields);
 use FS::part_svc;
-use FS::CGI qw(header menubar popurl table);
+use FS::part_pkg;
+use FS::pkg_svc;
+use FS::cust_pkg;
+use FS::cust_svc;
+use FS::CGI qw(header menubar popurl table itable ntable);
 
 sub Script_OnStart {
   $cgi = new CGI;
@@ -18,7 +24,7 @@ sub Script_OnStart {
 sub Script_OnFlush {
   my $ref = $Response->{BinaryRef};
   $$ref = $cgi->header( '-expires' => 'now' ) . $$ref;
-#  if ( dbh->can('sprintProfile') ) {
+  if ( dbh->can('sprintProfile') ) {
 
     $$ref =~ s/<\/BODY>[\s\n]*<\/HTML>[\s\n]*$//i
       or warn "can't remove";
@@ -28,5 +34,5 @@ sub Script_OnFlush {
     $$ref .= '</BODY></HTML>';
     
     dbh->{'private_profile'} = {};
-#  }
+  }
 }