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'),
44 <& /elements/tr-checkbox.html,
45 'label' => emt('Display order number'),
46 'field' => 'show_order_number',
48 'cell_style' => 'font-weight: normal', #for consistency
53 <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="nottax" VALUE="Y" onClick="nottax_changed(this)" onChange="nottax_change(thid)"></TD>
54 <TD><% mt('Omit taxes') |h %></TD>
58 <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="istax" VALUE="Y" onClick="istax_changed(this)" onChange="istax_change(thid)"></TD>
59 <TD><% mt('Taxes only') |h %></TD>
62 <SCRIPT TYPE="text/javascript">
63 function nottax_changed (what) {
64 if (what.checked && what.form.istax.checked) {
65 what.form.istax.checked = false;
68 function istax_changed (what) {
69 if (what.checked && what.form.nottax.checked) {
70 what.form.nottax.checked = false;
79 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
83 <& /elements/footer.html &>
88 unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
90 my $access_user = $FS::CurrentUser::CurrentUser->access_users_hashref('table' => 'cust_pay');
92 my $conf = new FS::Conf;