[freeside-commits] freeside/httemplate/search cust_main.html, 1.16, 1.17 report_cust_main.html, 1.11, 1.12
Ivan,,,
ivan at wavetail.420.am
Thu Nov 5 16:25:15 PST 2009
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv23912/httemplate/search
Modified Files:
cust_main.html report_cust_main.html
Log Message:
add "payment expiration before" to customer report, RT#6447
Index: report_cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_cust_main.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- report_cust_main.html 29 Oct 2009 19:08:12 -0000 1.11
+++ report_cust_main.html 6 Nov 2009 00:25:13 -0000 1.12
@@ -46,11 +46,42 @@
% }
<% include( '/elements/tr-select-payby.html',
- 'payby_type' => 'cust',
- 'multiple' => 1,
- 'curr_value' => { map { $_ => 1 } FS::payby->cust_payby },
+ 'payby_type' => 'cust',
+ 'multiple' => 1,
+ 'all_selected' => 1,
)
%>
+
+ <TR>
+ <TD ALIGN="right">Payment expiration before</TD>
+ <TD>
+ <SELECT NAME="paydate_month" DISABLED>
+% foreach my $month ( 1 .. 12 ) {
+ <OPTION VALUE="<% $month %>"><% $month %></OPTION>
+% }
+ </SELECT>
+ /
+ <SELECT NAME="paydate_year" onChange="paydate_year_changed(this);">
+ <OPTION VALUE=""></OPTION>
+% my $lastyear = (localtime(time))[5] + 1899;
+% foreach my $year ( $lastyear .. $lastyear+12 ) {
+ <OPTION VALUE="<% $year %>"><% $year %></OPTION>
+% }
+ </SELECT>
+ </TD>
+ </TR>
+
+ <SCRIPT TYPE="text/javascript">
+ function paydate_year_changed(what) {
+ var value = what.options[what.selectedIndex].value;
+ var month_select = what.form.paydate_month;
+ if ( value == '' ) {
+ month_select.disabled = true;
+ } else {
+ month_select.disabled = false;
+ }
+ }
+ </SCRIPT>
<% include( '/elements/tr-input-lessthan_greaterthan.html',
label => 'Current balance',
Index: cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_main.html,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- cust_main.html 29 Oct 2009 19:08:12 -0000 1.16
+++ cust_main.html 6 Nov 2009 00:25:13 -0000 1.17
@@ -45,7 +45,7 @@
#scalars
my @scalars = qw (
agentnum status cancelled_pkgs cust_fields flattened_pkgs custbatch
- no_censustract
+ no_censustract paydate_year paydate_month
);
for my $param ( @scalars ) {
More information about the freeside-commits
mailing list