summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-10-02 13:37:02 -0700
committerMark Wells <mark@freeside.biz>2014-10-02 13:37:02 -0700
commit07ddea7966d85872a1a80044cfa594148d97285b (patch)
treea12585df7f03cd3927827846f2d2eaf33caba230 /httemplate
parentcb7ff9f91771b63d712493d966de041d857e83e7 (diff)
package quantity + 477 report, #31282, from #24047
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/search/477.html7
-rwxr-xr-xhttemplate/search/report_477.html6
2 files changed, 11 insertions, 2 deletions
diff --git a/httemplate/search/477.html b/httemplate/search/477.html
index cc865e0d4..244bfa1df 100644
--- a/httemplate/search/477.html
+++ b/httemplate/search/477.html
@@ -91,10 +91,13 @@ if ($cgi->param('agentnum') =~ /^(\d+)$/ ) {
}
my $date = parse_datetime($cgi->param('date')) || time;
my @partnames = grep /^\w+$/, $cgi->param('parts');
+my $ignore_quantity = ($cgi->param('ignore_quantity') ? 1 : 0);
+
foreach my $partname (@partnames) {
$parts{$partname} ||= FS::Report::FCC_477->report( $partname,
- date => $date,
- agentnum => $agentnum,
+ date => $date,
+ agentnum => $agentnum,
+ ignore_quantity => $ignore_quantity,
);
my $detail_table = FS::Report::FCC_477->part_table($partname);
if ($detail_table eq 'cust_pkg') {
diff --git a/httemplate/search/report_477.html b/httemplate/search/report_477.html
index cbbd5d902..38073ad33 100755
--- a/httemplate/search/report_477.html
+++ b/httemplate/search/report_477.html
@@ -40,6 +40,12 @@
'labels' => $part_titles,
'options' => [ keys %$part_titles ]
&>
+
+ <& /elements/tr-checkbox.html,
+ 'label' => 'Ignore package quantities',
+ 'field' => 'ignore_quantity',
+ 'value' => 1,
+ &>
</TABLE>
<BR>