1 <% include('/elements/header.html', 'Monthly Sales and Taxes Report' ) %>
3 <FORM ACTION="tax_sales.cgi" METHOD="GET">
7 <% include('/elements/tr-select-from_to.html') %>
9 <% include('/elements/tr-select.html',
12 'options' => \@countries,
13 'curr_value' => ($conf->config('countrydefault') || 'US'),
18 <BR><INPUT TYPE="submit" VALUE="Get Report">
22 <% include('/elements/footer.html') %>
26 unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
28 my $conf = new FS::Conf;
30 # false laziness w report_tax.html, put this in FS::Report::Tax?
31 my $sth = dbh->prepare('SELECT DISTINCT(country) FROM cust_location');
32 $sth->execute or die $sth->errstr;
33 my @countries = map { $_->[0] } @{ $sth->fetchall_arrayref };