summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2002-02-04 16:44:48 +0000
committerivan <ivan>2002-02-04 16:44:48 +0000
commit8cbba53b09bb5b09355316b7ff8948500c3b4b76 (patch)
tree686573f3d6a37999b5f04b4dbc08dcb654726271 /httemplate
parentc7ff9a58360788ce776022606c4ec3496062013b (diff)
billing events!
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/docs/install.html1
-rw-r--r--httemplate/docs/upgrade8.html2
-rwxr-xr-xhttemplate/edit/part_bill_event.cgi44
-rwxr-xr-xhttemplate/view/cust_bill.cgi13
4 files changed, 41 insertions, 19 deletions
diff --git a/httemplate/docs/install.html b/httemplate/docs/install.html
index 564dccaba..e719645a4 100644
--- a/httemplate/docs/install.html
+++ b/httemplate/docs/install.html
@@ -118,7 +118,6 @@ PerlSetVar Debug 2
</pre></font>
</ul></td>
<td><ul>
- <li>NOTE: Mason support is still a bit buggy in the 1.4.0 prereleases. This will be fixed before 1.4.0. You have been warned.
<li>Run <tt>make masondocs</tt>
<li>Copy <tt>masondocs/</tt> to your web server's document space.
<li>Copy <tt>htetc/handler.pl</tt> to your web server's configuration directory.
diff --git a/httemplate/docs/upgrade8.html b/httemplate/docs/upgrade8.html
index c4d023a58..360fba691 100644
--- a/httemplate/docs/upgrade8.html
+++ b/httemplate/docs/upgrade8.html
@@ -6,6 +6,7 @@
<ul>
<li>If migrating from less than 1.3.1, see these <a href="upgrade7.html">instructions</a> first.
<li><font size="+2" color="#ff0000">Backup your database and current Freeside installation.</font> (with&nbsp;<a href="http://www.ca.postgresql.org/devel-corner/docs/postgres/backup.html">PostgreSQL</a>) (with&nbsp;<a href="http://www.mysql.com/documentation/mysql/bychapter/manual_MySQL_Database_Administration.html#Backup">MySQL</a>)
+ <li><a href="http://perl.apache.org/">mod_perl</a> is now required.
<li>Install <a href="http://www.apache-asp.org/">Apache::ASP</a> or <a href="http://www.masonhq.com/">HTML::Mason</a>.
</ul>
<table>
@@ -33,7 +34,6 @@ PerlSetVar Global /usr/local/etc/freeside/asp-global/
</pre></font>
</ul></td>
<td><ul>
- <li>NOTE: Mason support is still a bit buggy in the 1.4.0 prereleases. This will be fixed before 1.4.0. You have been warned.
<li>Run <tt>make masondocs</tt>
<li>Copy <tt>masondocs/</tt> to your web server's document space.
<li>Copy <tt>htetc/handler.pl</tt> to your web server's configuration directory.
diff --git a/httemplate/edit/part_bill_event.cgi b/httemplate/edit/part_bill_event.cgi
index c41cfe9cf..70e953ca0 100755
--- a/httemplate/edit/part_bill_event.cgi
+++ b/httemplate/edit/part_bill_event.cgi
@@ -1,4 +1,4 @@
-<!-- $Id: part_bill_event.cgi,v 1.3 2002-01-30 18:22:54 ivan Exp $ -->
+<!-- $Id: part_bill_event.cgi,v 1.4 2002-02-04 16:44:47 ivan Exp $ -->
<%
@@ -93,32 +93,56 @@ tie my %events, 'Tie::IxHash',
'addpost' => {
'name' => 'Add postal invoicing',
- 'code' => '$cust_main->invoicing_list_addpost();',
+ 'code' => '$cust_main->invoicing_list_addpost(); '';',
'pad' => 20,
},
+ 'comp' => {
+ 'name' => 'Pay invoice with a complimentary "payment"',
+ 'code' => '$cust_bill->comp();',
+ 'weight' => 30,
+ },
+
+ 'realtime-card' => {
+ 'name' => 'Run card with a <a href="http://search.cpan.org/search?mode=module&query=Business%3A%3AOnlinePayment">Business::OnlinePayment</a> realtime gateway',
+ 'code' => '$cust_bill->realtime_card();',
+ 'weight' => 30,
+ },
+
+ 'realtime-card-cybercash' => {
+ 'name' => '(<b>deprecated</b>) Run card with <a href="http://www.cybercash.com/cashregister">CyberCash CashRegister</a> realtime gateway',
+ 'code' => '$cust_bill->realtime_card_cybercash();',
+ 'weight => 30,
+ },
+
+ 'batch-card' => {
+ 'name' => 'Add card to the pending credit card batch',
+ 'code' => '$cust_bill->batch_card();',
+ 'weight' => 40,
+ },
+
'send' => {
'name' => 'Send invoice (email/print)',
- 'code' => '',
- 'weight' => 30
+ 'code' => '$cust_bill->send();',
+ 'weight' => 50,
},
'bill' => {
- 'name' => 'Generate invoices',
+ 'name' => 'Generate invoices (normally only used with a <i>Late Fee</i> event)',
'code' => '$cust_main->bill();',
- 'weight' => 40,
+ 'weight' => 60,
},
'apply' => {
'name' => 'Apply unapplied payments and credits',
- 'code' => '$cust_main->apply_payments; $cust_main->apply_credits;',
- 'weight' => 50,
+ 'code' => '$cust_main->apply_payments; $cust_main->apply_credits; '';',
+ 'weight' => 70,
},
'collect' => {
- 'name' => 'Collect on invoices',
+ 'name' => 'Collect on invoices (normally only used with a <i>Late Fee</i> and <i>Generate Invoice</i> events)',
'code' => '$cust_main->collect();',
- 'weight' => 60,
+ 'weight' => 80,
},
;
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi
index ef6d56611..6bc156816 100755
--- a/httemplate/view/cust_bill.cgi
+++ b/httemplate/view/cust_bill.cgi
@@ -1,4 +1,4 @@
-<!-- $Id: cust_bill.cgi,v 1.6 2002-01-30 14:18:09 ivan Exp $ -->
+<!-- $Id: cust_bill.cgi,v 1.7 2002-02-04 16:44:47 ivan Exp $ -->
<%
#untaint invnum
@@ -10,7 +10,7 @@ my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
die "Invoice #$invnum not found!" unless $cust_bill;
my $custnum = $cust_bill->getfield('custnum');
-my $printed = $cust_bill->printed;
+#my $printed = $cust_bill->printed;
print header('Invoice View', menubar(
"Main Menu" => $p,
@@ -20,11 +20,10 @@ print header('Invoice View', menubar(
print qq!<A HREF="${p}edit/cust_pay.cgi?$invnum">Enter payments (check/cash) against this invoice</A> | !
if $cust_bill->owed > 0;
-print <<END;
- <A HREF="${p}misc/print-invoice.cgi?$invnum">Reprint this invoice</A>
- <BR><BR>(Printed $printed times)
- <PRE>
-END
+print qq!<A HREF="${p}misc/print-invoice.cgi?$invnum">Reprint this invoice</A>!.
+# "<BR><BR>(Printed $printed times)".
+#print cust_bill_events
+ '<PRE>'.
print $cust_bill->print_text;