From: ivan Date: Sun, 6 Mar 2005 03:04:29 +0000 (+0000) Subject: add Excel and CSV download of templated reports and clean up their HTML formatting... X-Git-Tag: BEFORE_FINAL_MASONIZE~673 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=34647c32b50ce3b8ee1b6d3d7aef4ba9d0297bdb add Excel and CSV download of templated reports and clean up their HTML formatting, closes; Bug#520, Bug#1107 --- diff --git a/README.1.5.7 b/README.1.5.7 index ff70961b3..8c10f8852 100644 --- a/README.1.5.7 +++ b/README.1.5.7 @@ -104,7 +104,8 @@ dbdef-create username create-history-tables username rate rate_detail rate_region rate_prefix reg_code reg_code_pkg dbdef-create username -install Javascript::RPC (JavaScript::RPC::Server::CGI) +install Javascript::RPC (JavaScript::RPC::Server::CGI), Text::CSV_XS and +Spreadsheet::WriteExcel afterwords (for installs w/integrated RT): make configure-rt diff --git a/htetc/global.asa b/htetc/global.asa index 482572a80..ed26057ea 100644 --- a/htetc/global.asa +++ b/htetc/global.asa @@ -14,11 +14,14 @@ use Tie::IxHash; use HTML::Entities; use IO::Handle; use IO::File; +use IO::Scalar; use Net::Whois::Raw qw(whois); if ( $] < 5.006 ) { eval "use Net::Whois::Raw 0.32 qw(whois)"; die $@ if $@; } +use Text::CSV_XS; +use Spreadsheet::WriteExcel; use Business::CreditCard; use String::Approx qw(amatch); use Chart::LinesPoints; diff --git a/htetc/handler.pl b/htetc/handler.pl index f115104b1..f41db36ec 100644 --- a/htetc/handler.pl +++ b/htetc/handler.pl @@ -97,11 +97,14 @@ sub handler use HTML::Entities; use IO::Handle; use IO::File; + use IO::Scalar; use Net::Whois::Raw qw(whois); if ( $] < 5.006 ) { eval "use Net::Whois::Raw 0.32 qw(whois)"; die $@ if $@; } + use Text::CSV_XS; + use Spreadsheet::WriteExcel; use Business::CreditCard; use String::Approx qw(amatch); use Chart::LinesPoints; diff --git a/httemplate/docs/install.html b/httemplate/docs/install.html index 1632fb38d..4a89ab3ba 100644 --- a/httemplate/docs/install.html +++ b/httemplate/docs/install.html @@ -62,6 +62,8 @@ Before installing, you need:
  • Crypt::PasswdMD5
  • JavaScript::RPC (JavaScript::RPC::Server::CGI)
  • Frontier::RPC +
  • Text::CSV_XS +
  • Spreadsheet::WriteExcel
  • Apache::DBI (optional but recommended for better webinterface performance) diff --git a/httemplate/docs/upgrade10.html b/httemplate/docs/upgrade10.html index 977755b90..2f4549d7f 100644 --- a/httemplate/docs/upgrade10.html +++ b/httemplate/docs/upgrade10.html @@ -9,7 +9,8 @@ install Net::SSH 0.08 - In httpd.conf, change AddHandler perl-script .cgi or SetHandler perl-script to AddHandler perl-script .cgi .html install NetAddr::IP, Chart::Base, Locale::SubCountry, -JavaScript::RPC (JavaScript::RPC::Server::CGI) +JavaScript::RPC (JavaScript::RPC::Server::CGI), Text::CSV_XS and +Spreadsheet::WriteExcel INSERT INTO msgcat ( msgnum, msgcode, locale, msg ) VALUES ( 20, 'svc_external-id', 'en_US', 'External ID' ); INSERT INTO msgcat ( msgnum, msgcode, locale, msg ) VALUES ( 21, 'svc_external-title', 'en_US', 'Title' ); diff --git a/httemplate/index.html b/httemplate/index.html index 2d326b539..b3b1c231a 100644 --- a/httemplate/index.html +++ b/httemplate/index.html @@ -62,16 +62,16 @@
    New Customer
    -
    Customer # or all customers by customer number
    -
    Last name or all customers by last name
    -
    Company or all customers by company
    +
    Customer # or all customers by customer number
    +
    Last name or all customers by last name
    +
    Company or all customers by company
    <% if ( $conf->exists('address2-search') ) { %> -
    Unit
    +
    Unit
    <% } %> -
    Phone #
    -
    Username or all accounts by username or uid
    -
    Domain or all domains
    -
    IP Address or all services by svcnum or address block
    +
    Phone #
    +
    Username or all accounts by username or uid
    +
    Domain or all domains
    +
    IP Address or all services by svcnum or address block

    all mail forwards by svcnum

    all virtual hosts by svcnum

    all external services by svcnum
    @@ -117,9 +117,9 @@
    Quick payment entry
    -
    Credit card #
    -
    Invoice #
    -
    Check #
    +
    Credit card #
    +
    Invoice #
    +
    Check #

    View pending credit card batch

    Packages (by next bill date range)

    Invoice reports