-Freeside, 1.1.4
+Freeside, 1.1.5
Copyright (C) 1998 Silicon Interactive Software Design. All rights reserved.
# agent type was linking to wrong cgi ivan@sisd.com 98-jul-18
#
# lose background, FS::CGI ivan@sisd.com 98-sep-2
+#
+# $Log: agent.cgi,v $
+# Revision 1.2 1998-11-07 10:24:22 ivan
+# don't use depriciated FS::Bill and FS::Invoice, other miscellania
+#
use strict;
use CGI::Base;
SendHeaders(); # one guess.
print header('Agent Listing', menubar(
- 'Main Menu' => '../',
- 'Add new agent' => '../edit/agent.cgi'
+ 'Main Menu' => '../',
+ 'Agent Types' => 'agent_type.cgi',
+# 'Add new agent' => '../edit/agent.cgi'
)), <<END;
- <BR>
- Click on agent number to edit.
+Agents are resellers of your service. Agents may be limited to a subset of your
+full offerings (via their type).<BR><BR>
<TABLE BORDER>
<TR>
- <TH><FONT SIZE=-1>Agent #</FONT></TH>
- <TH>Agent</TH>
+ <TH COLSPAN=2>Agent</TH>
<TH>Type</TH>
<TH><FONT SIZE=-1>Freq. (unimp.)</FONT></TH>
<TH><FONT SIZE=-1>Prog. (unimp.)</FONT></TH>
</TR>
END
+# <TH><FONT SIZE=-1>Agent #</FONT></TH>
+# <TH>Agent</TH>
my($agent);
foreach $agent ( sort {
<TR>
<TD><A HREF="../edit/agent.cgi?$hashref->{agentnum}">
$hashref->{agentnum}</A></TD>
- <TD>$hashref->{agent}</TD>
+ <TD><A HREF="../edit/agent.cgi?$hashref->{agentnum}">
+ $hashref->{agent}</A></TD>
<TD><A HREF="../edit/agent_type.cgi?$typenum">$atype</A></TD>
<TD>$hashref->{freq}</TD>
<TD>$hashref->{prog}</TD>
}
print <<END;
+ <TR>
+ <TD COLSPAN=2><A HREF="../edit/agent.cgi"><I>Add new agent</I></A></TD>
+ <TD><A HREF="../edit/agent_type.cgi"><I>Add new agent type</I></A></TD>
+ </TR>
</TABLE>
- </CENTER>
+
</BODY>
</HTML>
END
View/Edit agents
</A>
- Agents are resellers of your service. Agents may be limited
- to a subset of your full offerings (via their agent type).
+ to a subset of your full offerings (via their type).
<BR>
<LI><A HREF="browse/part_referral.cgi">
View/Edit referrals
$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
}
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;
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;
'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
&& ( $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: $!"
sub balance {
my($self) = @_;
- sprintf("%.2f",$self->total_bill - $self->total_credit);
+ sprintf("%.2f",$self->total_owed - $self->total_credited);
}
=back
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;