[freeside-commits] branch master updated. 1d2cb271a07e021cef5d4cd2f4acf40f716d2daa
Christopher Burger
burgerc at freeside.biz
Mon Apr 15 05:06:20 PDT 2019
The branch, master has been updated
via 1d2cb271a07e021cef5d4cd2f4acf40f716d2daa (commit)
from 7afd80e3dfcaa34b04f693c40949d7408f7a7ac1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1d2cb271a07e021cef5d4cd2f4acf40f716d2daa
Author: Christopher Burger <burgerc at freeside.biz>
Date: Mon Apr 15 08:05:48 2019 -0400
RT# 79913 - Mass agent transfer files
diff --git a/httemplate/elements/agent_transfer_link.html b/httemplate/elements/agent_transfer_link.html
new file mode 100644
index 000000000..4256f07f0
--- /dev/null
+++ b/httemplate/elements/agent_transfer_link.html
@@ -0,0 +1,37 @@
+ <FORM NAME="agent_transfer_form">
+ <INPUT TYPE="hidden" NAME="search" VALUE="<% $search %>">
+ <INPUT TYPE="hidden" NAME="list" VALUE="<% $list %>">
+ <INPUT TYPE="hidden" NAME="table" VALUE="cust_main">
+ <& /elements/progress-init.html,
+ 'agent_transfer_form',
+ [ qw( search list table agentnum) ],
+ $process_url,
+ $pdest,
+ &>
+ <& /elements/select-agent.html, 'empty_label' => 'Transfer these customers to agent', 'onchange' => 'areyousure()' &>
+ </FORM>
+
+ <SCRIPT>
+ function areyousure(href) {
+ var sel = document.getElementById("agentnum");
+ if (sel.selectedIndex == 0) { alert("Please select a new agent to transfer to."); }
+ else if (confirm("Transfer these customers to agent " + sel.options[sel.selectedIndex].text )) {
+ process();
+ sel.selectedIndex = 0;
+ }
+ else {
+ sel.selectedIndex = 0;
+ }
+ }
+ </SCRIPT>
+
+<%init>
+
+my $opt = shift;
+my ($search, $list);
+$search = encode_base64(nfreeze($opt->{'search'})) if ref ($opt->{'search'}) eq 'HASH';
+$list = encode_base64(nfreeze($opt->{'list'})) if ref ($opt->{'list'}) eq 'ARRAY';
+my $process_url = "${p}misc/process/customers_transfer_to_agent.html";
+my $pdest = { 'message' => 'Transfer Complete' };
+
+</%init>
\ No newline at end of file
diff --git a/httemplate/misc/process/customers_transfer_to_agent.html b/httemplate/misc/process/customers_transfer_to_agent.html
new file mode 100644
index 000000000..8ee0d8846
--- /dev/null
+++ b/httemplate/misc/process/customers_transfer_to_agent.html
@@ -0,0 +1,6 @@
+<% $server->process %>
+<%init>
+
+my $server = new FS::UI::Web::JSRPC 'FS::cust_main_Mixin::process_customer_agent_transfer_search_result', $cgi;
+
+</%init>
\ No newline at end of file
-----------------------------------------------------------------------
Summary of changes:
httemplate/elements/agent_transfer_link.html | 37 ++++++++++++++++++++++
.../misc/process/customers_transfer_to_agent.html | 6 ++++
2 files changed, 43 insertions(+)
create mode 100644 httemplate/elements/agent_transfer_link.html
create mode 100644 httemplate/misc/process/customers_transfer_to_agent.html
More information about the freeside-commits
mailing list