From c58774a70c3326ad2ba5a7a38b174dfbd76a9f78 Mon Sep 17 00:00:00 2001 From: levinse Date: Tue, 7 Dec 2010 19:04:43 +0000 Subject: [PATCH] -small svc_dsl UI and flow changes, RT7111 -finish basic qualifications, except prospect support, RT7111 --- FS/FS/AccessRight.pm | 1 + FS/FS/Conf.pm | 7 +++ FS/FS/geocode_Mixin.pm | 2 +- FS/FS/part_export/ikano.pm | 2 + FS/FS/qual.pm | 9 ++++ httemplate/edit/process/qual.cgi | 2 +- httemplate/edit/svc_dsl.cgi | 15 ++---- httemplate/misc/qual.html | 4 +- httemplate/search/qual.cgi | 78 ++++++++++++++++++++++++++++++++ httemplate/view/cust_main/packages.html | 9 +++- httemplate/view/cust_main/qual_link.html | 4 +- httemplate/view/elements/svc_Common.html | 2 - httemplate/view/qual.cgi | 17 +++---- httemplate/view/svc_dsl.cgi | 1 - 14 files changed, 121 insertions(+), 32 deletions(-) create mode 100755 httemplate/search/qual.cgi diff --git a/FS/FS/AccessRight.pm b/FS/FS/AccessRight.pm index 8dbc22bd5..adb4a0667 100644 --- a/FS/FS/AccessRight.pm +++ b/FS/FS/AccessRight.pm @@ -143,6 +143,7 @@ tie my %rights, 'Tie::IxHash', 'Add on-the-fly suspend reason', #NEW 'Edit customer package invoice details', #NEW 'Edit customer package comments', #NEW + 'Qualify service', #NEW ], ### diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 08bdedd6f..f5b2451b0 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -4067,6 +4067,13 @@ and customer address. Include units.', 'description' => 'Default the "Continue recurring billing while suspended" flag to on for new package definitions.', 'type' => 'checkbox', }, + + { + 'key' => 'qual-alt-address-format', + 'section' => 'UI', + 'description' => 'Enable the alternate address format (location type, number, and kind) on qualifications', + 'type' => 'checkbox', + }, { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" }, diff --git a/FS/FS/geocode_Mixin.pm b/FS/FS/geocode_Mixin.pm index d784b5709..08e7b8619 100644 --- a/FS/FS/geocode_Mixin.pm +++ b/FS/FS/geocode_Mixin.pm @@ -88,7 +88,7 @@ sub location_label { my $prefix = $self->has_ship_address ? 'ship_' : ''; my $notfirst = 0; - foreach (qw ( address1 address2 ) ) { + foreach (qw ( address1 address2 location_type location_number ) ) { my $method = "$prefix$_"; $line .= ($notfirst ? $separator : ''). &$escape($self->$method) if $self->$method; diff --git a/FS/FS/part_export/ikano.pm b/FS/FS/part_export/ikano.pm index d3715829b..d7203af9d 100644 --- a/FS/FS/part_export/ikano.pm +++ b/FS/FS/part_export/ikano.pm @@ -324,6 +324,8 @@ sub qual_html { && $optionvalue ne '' ); } + # XXX: eventually perhaps this should return both the packages a link to + # order each package and go to the svc prov with the prequal id filled in my $list = "Qualifying Packages: