summaryrefslogtreecommitdiff
path: root/site_perl/cust_main.pm
diff options
context:
space:
mode:
authorcvs2git <cvs2git>1998-11-07 10:24:26 +0000
committercvs2git <cvs2git>1998-11-07 10:24:26 +0000
commit48e7e549a27a76c357d50dd637e7ad5a29b9d43f (patch)
treee61ddacc0b1d6248ccfc61346f7f36fbb6723e56 /site_perl/cust_main.pm
parent47806ec845818ba69604e0452e7c7b25d62f0772 (diff)
parent4c9347994ca4e1aefdb622d9f51ac8687e6a177b (diff)
This commit was manufactured by cvs2svn to create tag 'freeside_stable'.freeside_stable
Diffstat (limited to 'site_perl/cust_main.pm')
-rw-r--r--site_perl/cust_main.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/site_perl/cust_main.pm b/site_perl/cust_main.pm
index ec28273..0ef69cb 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;