diff options
Diffstat (limited to 'httemplate/search/report_receivables.html')
| -rwxr-xr-x | httemplate/search/report_receivables.html | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/httemplate/search/report_receivables.html b/httemplate/search/report_receivables.html new file mode 100755 index 000000000..19f863525 --- /dev/null +++ b/httemplate/search/report_receivables.html @@ -0,0 +1,73 @@ +<& /elements/header.html, mt('Accounts Receivable Aging Summary') &> + +<FORM NAME="OneTrueForm" ACTION="report_receivables.cgi" METHOD="GET"> + +<TABLE BGCOLOR="#cccccc" CELLSPACING=0> + + <TR> + <TH CLASS="background" COLSPAN=2 ALIGN="left"> + <FONT SIZE="+1"><% mt('Search options') |h %></FONT> + </TH> + </TR> + + <& /elements/tr-select-agent.html, 'disable_empty'=>0 &> + + <& /elements/tr-select-cust_main-status.html, + 'label' => emt('Customer Status'), + &> + + <TR> + <TD ALIGN="right"><% mt('Customers') |h %></TD> + <TD> + <SCRIPT TYPE="text/javascript"> +function toggle(obj) { + var f = document.OneTrueForm; + var val = (obj.value == obj.checked); + f.days.disabled = val; + f.negative.disabled = val; + f.days.style.backgroundColor = val ? '#dddddd' : '#ffffff'; +} + </SCRIPT> + <TABLE STYLE="padding: 0px"> + <TR> + <TD><INPUT TYPE="radio" NAME="all_customers" VALUE="1" onClick="toggle(this)"></TD> + <TD><% mt('All customers (even those without an outstanding balance)') |h %></TD> + </TR> + <TR> + <TD><INPUT TYPE="radio" NAME="all_customers" VALUE="0" CHECKED onClick="toggle(this)"></TD> + <TD> +% my $daysinput = qq!<INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3 VALUE="0">!; +% my $str = emt("Customers with a balance over [_1] days old",'XXXDAYSXXX'); # yeah it's a hack +% $str =~ s/XXXDAYSXXX/$daysinput/; + <% $str %> + </TD> + </TR> + <TR> + <TD></TD> + <TD><INPUT TYPE="checkbox" NAME="negative" VALUE="1"> <% mt('Including customers with credit balances') |h %></TD> + </TR> + </TABLE> + </TD> + </TR> + <& /elements/tr-input-date-field.html, { + 'name' => 'as_of', + 'value' => time, + 'label' => emt('As of date '), + 'format' => FS::Conf->new->config('date_format') || '%m/%d/%Y', + } + &> + +</TABLE> + +<BR><INPUT TYPE="submit" VALUE="Get Report"> +</FORM> + +<& /elements/footer.html &> + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Receivables report') + or $FS::CurrentUser::CurrentUser->access_right('Financial reports'); + +</%init> |
