[freeside-commits] freeside/httemplate/edit cust_pay.cgi,1.16,1.17
Ivan,,,
ivan at wavetail.420.am
Sat Jul 9 03:55:21 PDT 2005
- Previous message: [freeside-commits] freeside/FS/FS/part_pkg flat.pm, 1.6,
1.7 flat_comission.pm, 1.3, 1.4 flat_comission_cust.pm, 1.4,
1.5 flat_comission_pkg.pm, 1.3, 1.4 flat_delayed.pm, 1.3,
1.4 prepaid.pm, NONE, 1.1 prorate.pm, 1.3, 1.4 sesmon_hour.pm,
1.4, 1.5 sesmon_minute.pm, 1.5, 1.6 sql_external.pm, 1.4,
1.5 sql_generic.pm, 1.4, 1.5 sqlradacct_hour.pm, 1.4,
1.5 subscription.pm, 1.3, 1.4 voip_sqlradacct.pm, 1.15, 1.16
- Next message: [freeside-commits] freeside/FS/FS cust_bill.pm,1.133,1.134
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv14955
Modified Files:
cust_pay.cgi
Log Message:
get rid of the godawful halfass "invoice" on the post payment screen when posting against a specific invoice, replace with having useless "Auto-apply to invoices" box actually show the payment will be applied to one invoice only... closes: Bug#1241
Index: cust_pay.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_pay.cgi,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- cust_pay.cgi 16 Apr 2005 22:26:49 -0000 1.16
+++ cust_pay.cgi 9 Jul 2005 10:55:18 -0000 1.17
@@ -36,9 +36,12 @@
my $paybatch = "webui-$_date-$$-". rand() * 2**32;
+my $title = 'Post payment';
+$title .= " against Invoice #$linknum" if $link eq 'invnum';
+
%>
-<%= header("Post payment", '') %>
+<%= header($title, '') %>
<% if ( $cgi->param('error') ) { %>
<FONT SIZE="+1" COLOR="#ff0000">Error: <%= $cgi->param('error') %></FONT>
@@ -61,47 +64,9 @@
my $money_char = $conf->config('money_char') || '$';
my $custnum;
if ( $link eq 'invnum' ) {
-
my $cust_bill = qsearchs('cust_bill', { 'invnum' => $linknum } )
or die "unknown invnum $linknum";
- print "Invoice #<B>$linknum</B>". ntable("#cccccc",2).
- '<TR><TD ALIGN="right">Date</TD><TD BGCOLOR="#ffffff">'.
- time2str("%D", $cust_bill->_date). '</TD></TR>'.
- '<TR><TD ALIGN="right" VALIGN="top">Items</TD><TD BGCOLOR="#ffffff">';
- foreach ( $cust_bill->cust_bill_pkg ) { #false laziness with FS::cust_bill
- if ( $_->pkgnum ) {
-
- my($cust_pkg)=qsearchs('cust_pkg', { 'pkgnum', $_->pkgnum } );
- my($part_pkg)=qsearchs('part_pkg',{'pkgpart'=>$cust_pkg->pkgpart});
- my($pkg)=$part_pkg->pkg;
-
- if ( $_->setup != 0 ) {
- print "$pkg Setup<BR>"; # $money_char. sprintf("%10.2f",$_->setup);
- print join('<BR>',
- map { " ". $_->[0]. ": ". $_->[1] } $cust_pkg->labels
- ). '<BR>';
- }
-
- if ( $_->recur != 0 ) {
- print
- "$pkg (" . time2str("%x",$_->sdate) . " - " .
- time2str("%x",$_->edate) . ")<BR>";
- #$money_char. sprintf("%10.2f",$_->recur)
- print join('<BR>',
- map { '--->'. $_->[0]. ": ". $_->[1] } $cust_pkg->labels
- ). '<BR>';
- }
-
- } else { #pkgnum Tax
- print "Tax<BR>" # $money_char. sprintf("%10.2f",$_->setup)
- if $_->setup != 0;
- }
-
- }
- print '</TD></TR></TABLE><BR><BR>';
-
$custnum = $cust_bill->custnum;
-
} elsif ( $link eq 'custnum' ) {
$custnum = $linknum;
}
@@ -138,9 +103,16 @@
<TD ALIGN="right">Check #</TD>
<TD COLSPAN=2><INPUT TYPE="text" NAME="payinfo" VALUE="<%= $payinfo %>" SIZE=10></TD>
</TR>
+
<TR>
+<% if ( $link eq 'custnum' ) { %>
<TD ALIGN="right">Auto-apply<BR>to invoices</TD>
<TD COLSPAN=2><SELECT NAME="apply"><OPTION VALUE="yes" SELECTED>yes<OPTION>no</SELECT></TD>
+<% } elsif ( $link eq 'invnum' ) { %>
+ <TD ALIGN="right">Apply to</TD>
+ <TD COLSPAN=2 BGCOLOR="#ffffff">Invoice #<B><%= $linknum %></B> only</TD>
+ <INPUT TYPE="hidden" NAME="apply" VALUE="no">
+<% } %>
</TR>
</TABLE>
- Previous message: [freeside-commits] freeside/FS/FS/part_pkg flat.pm, 1.6,
1.7 flat_comission.pm, 1.3, 1.4 flat_comission_cust.pm, 1.4,
1.5 flat_comission_pkg.pm, 1.3, 1.4 flat_delayed.pm, 1.3,
1.4 prepaid.pm, NONE, 1.1 prorate.pm, 1.3, 1.4 sesmon_hour.pm,
1.4, 1.5 sesmon_minute.pm, 1.5, 1.6 sql_external.pm, 1.4,
1.5 sql_generic.pm, 1.4, 1.5 sqlradacct_hour.pm, 1.4,
1.5 subscription.pm, 1.3, 1.4 voip_sqlradacct.pm, 1.15, 1.16
- Next message: [freeside-commits] freeside/FS/FS cust_bill.pm,1.133,1.134
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list