summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/cust_main-contacts.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-03-24 18:47:07 -0700
committerIvan Kohler <ivan@freeside.biz>2012-03-24 18:47:07 -0700
commit83f70978574fef3401020cb11cf651d12c139b3b (patch)
tree327059675499bfa2be0ccbfd8918b37a29312b5e /httemplate/edit/process/cust_main-contacts.html
parent798cf217a0d14520c5648560ef8a3095ffcfad27 (diff)
better display/edit of contacts on customer view, RT#16819
Diffstat (limited to 'httemplate/edit/process/cust_main-contacts.html')
-rw-r--r--httemplate/edit/process/cust_main-contacts.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/httemplate/edit/process/cust_main-contacts.html b/httemplate/edit/process/cust_main-contacts.html
new file mode 100644
index 000000000..ed874a55e
--- /dev/null
+++ b/httemplate/edit/process/cust_main-contacts.html
@@ -0,0 +1,20 @@
+<% include('elements/process.html',
+ 'table' => 'cust_main',
+ 'error_redirect' => popurl(3). 'edit/cust_main-contacts.html?',
+ 'agent_virt' => 1,
+ 'skip_process' => 1, #we don't want to make any changes to cust_main
+ 'process_o2m' => {
+ 'table' => 'contact',
+ 'fields' => \@contact_fields,
+ },
+ 'redirect' => popurl(3). 'view/cust_main.cgi?',
+ )
+%>
+<%init>
+
+my @contact_fields = qw( classnum first last title comment emailaddress );
+foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) {
+ push @contact_fields, 'phonetypenum'.$phone_type->phonetypenum;
+}
+
+</%init>