X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=site_perl%2Fcust_bill.pm;fp=site_perl%2Fcust_bill.pm;h=0e87755ac37a96e78f6be074df2ffc08d465d4f2;hb=3b9e59cc875b1fedb67072efe223c5ed6f1efd5e;hp=6d87b1bb3c687cb854f3ab062885acfb4f2557c2;hpb=9e95f24c0c93f9ca0c8d07041478bc1b36c571d8;p=freeside.git diff --git a/site_perl/cust_bill.pm b/site_perl/cust_bill.pm index 6d87b1bb3..0e87755ac 100644 --- a/site_perl/cust_bill.pm +++ b/site_perl/cust_bill.pm @@ -308,13 +308,19 @@ sub print_text { my($part_pkg)=qsearchs('part_pkg',{'pkgpart'=>$cust_pkg->pkgpart}); my($pkg)=$part_pkg->pkg; - push @buf, ( "$pkg Setup",'$' . sprintf("%10.2f",$_->setup) ) - if $_->setup != 0; - push @buf, ( - "$pkg (" . time2str("%x",$_->sdate) . " - " . - time2str("%x",$_->edate) . ")", - '$' . sprintf("%10.2f",$_->recur) - ) if $_->recur != 0; + if ( $_->setup != 0 ) { + push @buf, ( "$pkg Setup",'$' . sprintf("%10.2f",$_->setup) ); + push @buf, map { " ". $_->[0]. ": ". $_->[1], '' } $cust_pkg->labels; + } + + if ( $_->recur != 0 ) { + push @buf, ( + "$pkg (" . time2str("%x",$_->sdate) . " - " . + time2str("%x",$_->edate) . ")", + '$' . sprintf("%10.2f",$_->recur) + ); + push @buf, map { " ". $_->[0]. ": ". $_->[1], '' } $cust_pkg->labels; + } } else { #pkgnum Tax push @buf,("Tax",'$' . sprintf("%10.2f",$_->setup) ) @@ -421,7 +427,7 @@ END =head1 VERSION -$Id: cust_bill.pm,v 1.6 1999-01-25 12:26:07 ivan Exp $ +$Id: cust_bill.pm,v 1.7 1999-02-09 09:55:05 ivan Exp $ =head1 BUGS @@ -449,7 +455,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.6 1999-01-25 12:26:07 ivan +Revision 1.7 1999-02-09 09:55:05 ivan +invoices show line items for each service in a package (see the label method +of FS::cust_svc) + +Revision 1.6 1999/01/25 12:26:07 ivan yet more mod_perl stuff Revision 1.5 1999/01/18 21:58:03 ivan