summaryrefslogtreecommitdiff
path: root/site_perl
diff options
context:
space:
mode:
authorivan <ivan>1998-11-07 10:24:25 +0000
committerivan <ivan>1998-11-07 10:24:25 +0000
commit4c9347994ca4e1aefdb622d9f51ac8687e6a177b (patch)
treee3acf2eb149143c9f469a205936dc603015a2488 /site_perl
parent0ac8d86e9f241bbca5c87826e56756157b7a432b (diff)
don't use depriciated FS::Bill and FS::Invoice, other miscellania
Diffstat (limited to 'site_perl')
-rw-r--r--site_perl/CGI.pm16
-rw-r--r--site_perl/cust_bill.pm5
-rw-r--r--site_perl/cust_main.pm11
3 files changed, 24 insertions, 8 deletions
diff --git a/site_perl/CGI.pm b/site_perl/CGI.pm
index d2ed52122..b72a09a6b 100644
--- a/site_perl/CGI.pm
+++ b/site_perl/CGI.pm
@@ -47,14 +47,13 @@ sub header {
$title
</TITLE>
</HEAD>
- <BODY>
- <CENTER>
- <H1>
+ <BODY BGCOLOR="#ffffff">
+ <FONT COLOR="#FF0000" SIZE=7>
$title
- </H1>
+ </FONT>
+ <BR><BR>
$menubar
- </CENTER>
- <HR>
+ <BR><BR>
END
}
@@ -136,6 +135,11 @@ lose the background, eidiot ivan@sisd.com 98-sep-2
pod ivan@sisd.com 98-sep-12
+$Log: CGI.pm,v $
+Revision 1.2 1998-11-07 10:24:23 ivan
+don't use depriciated FS::Bill and FS::Invoice, other miscellania
+
+
=cut
1;
diff --git a/site_perl/cust_bill.pm b/site_perl/cust_bill.pm
index 00234519a..bc9424233 100644
--- a/site_perl/cust_bill.pm
+++ b/site_perl/cust_bill.pm
@@ -489,6 +489,11 @@ charges can be negative ivan@sisd.com 98-jul-13
pod, ingegrate with FS::Invoice ivan@sisd.com 98-sep-20
+$Log: cust_bill.pm,v $
+Revision 1.2 1998-11-07 10:24:24 ivan
+don't use depriciated FS::Bill and FS::Invoice, other miscellania
+
+
=cut
1;
diff --git a/site_perl/cust_main.pm b/site_perl/cust_main.pm
index ec282731e..0ef69cba4 100644
--- a/site_perl/cust_main.pm
+++ b/site_perl/cust_main.pm
@@ -600,6 +600,8 @@ sub collect {
'custnum' => $self->getfield('custnum'),
} ) ) {
+ bless($cust_bill,"FS::cust_bill");
+
#this has to be before next's
my($amount) = sprintf("%.2f", $total_owed < $cust_bill->owed
? $total_owed
@@ -624,7 +626,7 @@ sub collect {
&& ( $cust_bill->printed * 2592000 ) <= $since
) {
- open(LPR,$lpr) or die "Can't open $lpr: $!";
+ open(LPR,"|$lpr") or die "Can't open $lpr: $!";
print LPR $cust_bill->print_text; #( date )
close LPR
or die $! ? "Error closing $lpr: $!"
@@ -807,7 +809,7 @@ Returns the balance for this customer (total owed minus total credited).
sub balance {
my($self) = @_;
- sprintf("%.2f",$self->total_bill - $self->total_credit);
+ sprintf("%.2f",$self->total_owed - $self->total_credited);
}
=back
@@ -861,6 +863,11 @@ methods, cleaned collect method, source modifications no longer necessary to
enable cybercash, cybercash v3 support, don't need to import
FS::UID::{datasrc,checkruid} ivan@sisd.com 98-sep-19-21
+$Log: cust_main.pm,v $
+Revision 1.2 1998-11-07 10:24:25 ivan
+don't use depriciated FS::Bill and FS::Invoice, other miscellania
+
+
=cut
1;