1 <& /elements/header.html, mt('Payment application report') &>
3 <FORM ACTION="cust_bill_pay_pkg.html" METHOD="GET">
4 <!--<INPUT TYPE="hidden" NAME="magic" VALUE="_date">-->
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
8 <& /elements/tr-select-user.html,
9 'label' => emt('Employee: '),
10 'access_user' => $access_user,
13 <& /elements/tr-select-agent.html,
14 curr_value => scalar( $cgi->param('agentnum') ),
15 #label => emt('Line items for agent: '),
20 <& /elements/tr-select-cust_main-status.html,
21 label => emt('Customer status'),
26 <& /elements/tr-select-cust_class.html,
27 'label' => emt('Class'),
29 'pre_options' => [ '' => emt('(none)') ],
34 <!-- some sort of label saying this is the payment date... -->
35 <& /elements/tr-input-beginning_ending.html,
36 'prefix' => 'payment',
39 <& /elements/tr-input-lessthan_greaterthan.html,
40 label => emt('Amount'),
46 <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="nottax" VALUE="Y" onClick="nottax_changed(this)" onChange="nottax_change(thid)"></TD>
47 <TD><% mt('Omit taxes') |h %></TD>
51 <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="istax" VALUE="Y" onClick="istax_changed(this)" onChange="istax_change(thid)"></TD>
52 <TD><% mt('Taxes only') |h %></TD>
55 <SCRIPT TYPE="text/javascript">
56 function nottax_changed (what) {
57 if (what.checked && what.form.istax.checked) {
58 what.form.istax.checked = false;
61 function istax_changed (what) {
62 if (what.checked && what.form.nottax.checked) {
63 what.form.nottax.checked = false;
72 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
76 <& /elements/footer.html &>
81 unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
83 my $access_user = $FS::CurrentUser::CurrentUser->access_users_hashref('table' => 'cust_pay');
85 my $conf = new FS::Conf;