From 9c78a52fcd35d7d0c39a4798d583ca4d7b20fd73 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 29 Jan 2014 21:53:45 -0800 Subject: sales person report w/package breakdown, RT#22090 --- httemplate/elements/tr-select-agent-sales.html | 47 ++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 httemplate/elements/tr-select-agent-sales.html (limited to 'httemplate/elements') diff --git a/httemplate/elements/tr-select-agent-sales.html b/httemplate/elements/tr-select-agent-sales.html new file mode 100644 index 000000000..e1920bea4 --- /dev/null +++ b/httemplate/elements/tr-select-agent-sales.html @@ -0,0 +1,47 @@ +<%doc> + +Example: + + <& /elements/tr-select-agent-sales.html, + 'agent_empty_label' => '(any)', #defaults to "all" + 'sales_disable_empty' => 1, #defaults with empty enabled + &> + + +% if ( $curuser->report_salesnum ) { + + + + +% } else { + + <& /elements/tr-select-agent.html, + 'onchange' => 'agent_changed(this)', + 'empty_label' => $opt{agent_empty_label}, + &> + + + + <& /elements/tr-select-sales.html, + 'empty_label' => 'all', + 'disable_empty' => $opt{sales_disable_empty}, + &> + +% } +<%init> + +my %opt = @_; + +my $curuser = $FS::CurrentUser::CurrentUser; + + -- cgit v1.2.1