[freeside-commits] freeside/httemplate/view qual.cgi,1.4,1.5
Erik Levinson
levinse at wavetail.420.am
Thu Jan 20 12:46:32 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv15820/httemplate/view
Modified Files:
qual.cgi
Log Message:
Ikano / svc_dsl / qualification improvements, RT7111
Index: qual.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/qual.cgi,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -d -r1.4 -r1.5
--- qual.cgi 8 Dec 2010 21:37:45 -0000 1.4
+++ qual.cgi 20 Jan 2011 20:46:30 -0000 1.5
@@ -28,7 +28,41 @@
<BR><BR>
% if ( $export ) {
-<% $export->qual_html($qual) %>
+% my $qual_result = $export->qual_result($qual);
+% if ($qual_result->{'header'}) {
+ <B><% $qual_result->{'header'} %></B>
+% }
+% if ($qual_result->{'pkglist'}) { # one of the possible formats
+% my $svcpart = '';
+% my $pkglist = $qual_result->{'pkglist'};
+% my $cust_or_prospect = $qual->cust_or_prospect;
+% my $locationnum = '';
+% my %location = $qual->location;
+% if (%location && $location{'locationnum'}) {
+% $locationnum = $location{'locationnum'};
+% }
+ <UL>
+% foreach my $pkgpart ( keys %$pkglist ) {
+% my %opt = ( 'label' => $pkglist->{$pkgpart},
+% 'pkgpart' => $pkgpart,
+% 'locationnum' => $locationnum, );
+% if ( $export->exporttype eq 'ikano' ) {
+% my $pkg_svc = qsearchs('pkg_svc', { 'pkgpart' => $pkgpart,
+% 'primary_svc' => 'Y',
+% } );
+% $opt{'svcpart'} = $pkg_svc->svcpart if $pkg_svc;
+% }
+ <LI>
+% if($cust_or_prospect && $cust_or_prospect->custnum) {
+ <% include('/view/cust_main/order_pkg_link.html', $qual->cust_or_prospect, %opt) %>
+% }
+% else {
+ <% $opt{label} %>
+% }
+ </LI>
+% }
+ </UL>
+% }
% }
<%init>
More information about the freeside-commits
mailing list