From: ivan Date: Mon, 20 Oct 2003 05:01:51 +0000 (+0000) Subject: finish up weekly billing X-Git-Tag: NET_WHOIS_RAW_0_31~320 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f6c14a1aa55d317747e56d4c0d669b4c902018c4 finish up weekly billing --- diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 0283e3d04..2ba0ff046 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1215,7 +1215,7 @@ sub bill { || $tax->recurtax =~ /^Y$/i; next unless $taxable_charged; - if ( $tax->exempt_amount ) { + if ( $tax->exempt_amount > 0 ) { my ($mon,$year) = (localtime($sdate) )[4,5]; $mon++; my $freq = $part_pkg->freq || 1; diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index daa5b7483..862e98ecf 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -66,6 +66,7 @@ print '
'; #print qq!!, print "Package Part #", $hashref->{pkgpart} ? $hashref->{pkgpart} : "(NEW)"; +#false laziness w/view/cust_main.cgi my %freq; tie %freq, 'Tie::IxHash', '0' => '(no recurring fee)', diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index fb3f0f111..83f114ef9 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -412,14 +412,17 @@ foreach my $pkg (sort pkgsort_pkgnum_cancel @$packages) { sub freq { + #false laziness w/edit/part_pkg.cgi my %freq = ( #move this - 1 => 'monthly', - 2 => 'bi-monthly', - 3 => 'quarterly', - 6 => 'semi-annually', - 12 => 'annually', - 24 => 'bi-annually', - 36 => 'tri-annually', + '1d' => 'daily', + '1w' => 'weekly', + '2w' => 'biweekly (every 2 weeks)', + '1' => 'monthly', + '2' => 'bimonthly (every 2 months)', + '3' => 'quarterly (every 3 months)', + '6' => 'semiannually (every 6 months)', + '12' => 'annually', + '24' => 'biannually (every 2 years)', ); my $freq = shift;