[freeside-commits] freeside/httemplate/edit/process svc_phone.html, 1.3, 1.3.4.1
Ivan,,,
ivan at wavetail.420.am
Fri Mar 12 13:29:18 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv17734/httemplate/edit/process
Modified Files:
Tag: FREESIDE_1_9_BRANCH
svc_phone.html
Log Message:
finishing e911/svc_phone location, RT#7047
Index: svc_phone.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/svc_phone.html,v
retrieving revision 1.3
retrieving revision 1.3.4.1
diff -u -w -d -r1.3 -r1.3.4.1
--- svc_phone.html 13 Jan 2008 21:35:54 -0000 1.3
+++ svc_phone.html 12 Mar 2010 21:29:16 -0000 1.3.4.1
@@ -1,5 +1,6 @@
<% include( 'elements/svc_Common.html',
'table' => 'svc_phone',
+ 'args_callback' => $args_callback,
)
%>
<%init>
@@ -7,4 +8,22 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
+my $args_callback = sub {
+ my( $cgi, $object ) = @_;
+
+ my %opt = ();
+ if ( $cgi->param('locationnum') == -1 ) {
+ my $cust_location = new FS::cust_location {
+ map { $_ => scalar($cgi->param($_)) }
+ qw( custnum address1 address2 city county state zip country )
+ };
+ $opt{'cust_location'} = $cust_location;
+ }
+
+ %opt;
+
+};
+
+
+
</%init>
More information about the freeside-commits
mailing list