[freeside-commits] freeside/httemplate/edit svc_phone.cgi, 1.7.4.2, 1.7.4.3
Ivan,,,
ivan at wavetail.420.am
Thu Mar 11 19:36:49 PST 2010
- Previous message: [freeside-commits] freeside/FS/FS Schema.pm, 1.168.2.21, 1.168.2.22 svc_phone.pm, 1.20.2.3, 1.20.2.4 cust_pkg.pm, 1.139.2.12, 1.139.2.13 location_Mixin.pm, NONE, 1.1.2.2
- Next message: [freeside-commits] freeside/httemplate/edit/elements svc_Common.html, 1.8.2.5, 1.8.2.6 edit.html, 1.39.2.3, 1.39.2.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv12512/httemplate/edit
Modified Files:
Tag: FREESIDE_1_9_BRANCH
svc_phone.cgi
Log Message:
add location to svc_phone, RT#7047
Index: svc_phone.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/svc_phone.cgi,v
retrieving revision 1.7.4.2
retrieving revision 1.7.4.3
diff -u -w -d -r1.7.4.2 -r1.7.4.3
--- svc_phone.cgi 8 Mar 2010 07:02:59 -0000 1.7.4.2
+++ svc_phone.cgi 12 Mar 2010 03:36:47 -0000 1.7.4.3
@@ -1,8 +1,8 @@
<% include( 'elements/svc_Common.html',
- 'name' => 'Phone number',
'table' => 'svc_phone',
'fields' => \@fields,
'labels' => {
+ 'svcnum' => 'Service',
'countrycode' => 'Country code',
'phonenum' => 'Phone number',
'domsvc' => 'Domain',
@@ -10,6 +10,11 @@
'pin' => 'Voicemail PIN',
'phone_name' => 'Name',
'pbxsvc' => 'PBX',
+ 'locationnum' => 'E911 location',
+ },
+ 'svc_new_callback' => sub {
+ my( $cgi, $svc_x, $part_svc, $cust_pkg, $fields, $opt ) = @_;
+ $svc_x->locationnum($cust_pkg->locationnum) if $cust_pkg;
},
)
%>
@@ -40,6 +45,27 @@
'sip_password',
'pin',
'phone_name',
+
+ { value => 'E911 Information',
+ type => 'tablebreak-tr-title',
+ colspan => 7,
+ },
+ { field => 'locationnum',
+ type => 'select-cust_location',
+ label => 'E911 location',
+ include_opt_callback => sub {
+ my $svc_phone = shift;
+ my $pkgnum = $svc_phone->get('pkgnum')
+ || $cgi->param('pkgnum')
+ || $svc_phone->cust_svc->pkgnum; #hua?
+ #cross agent location exposure? sheesh
+ my $cust_pkg = qsearchs('cust_pkg', {'pkgnum' => $pkgnum});
+ my $cust_main = $cust_pkg ? $cust_pkg->cust_main : '';
+ ( 'no_bold' => 1,
+ 'cust_main' => $cust_main,
+ );
+ },
+ },
;
</%init>
- Previous message: [freeside-commits] freeside/FS/FS Schema.pm, 1.168.2.21, 1.168.2.22 svc_phone.pm, 1.20.2.3, 1.20.2.4 cust_pkg.pm, 1.139.2.12, 1.139.2.13 location_Mixin.pm, NONE, 1.1.2.2
- Next message: [freeside-commits] freeside/httemplate/edit/elements svc_Common.html, 1.8.2.5, 1.8.2.6 edit.html, 1.39.2.3, 1.39.2.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list