[freeside-commits] freeside/FS/FS/ClientAPI Signup.pm,1.31,1.32
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Jan 30 10:52:37 PST 2007
- Previous message: [freeside-commits] freeside/httemplate/config config-process.cgi,
1.9, 1.10 config-view.cgi, 1.14, 1.15 config.cgi, 1.19, 1.20
- Next message: [freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi
success-delayed.html, NONE, 1.1 signup.cgi, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail:/tmp/cvs-serv8820/FS/FS/ClientAPI
Modified Files:
Signup.pm
Log Message:
additional info available for self-service success (ticket 1420)
Index: Signup.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/Signup.pm,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- Signup.pm 21 Jan 2007 21:45:28 -0000 1.31
+++ Signup.pm 30 Jan 2007 18:52:35 -0000 1.32
@@ -53,7 +53,11 @@
my $href = $_->pkgpart_hashref;
$_->agentnum =>
[
- map { { 'payby' => [ $_->payby ], %{$_->hashref} } }
+ map { { 'payby' => [ $_->payby ],
+ 'freq_pretty' => $_->freq_pretty,
+ 'options' => { $_->options },
+ %{$_->hashref}
+ } }
grep { $_->svcpart('svc_acct') && $href->{ $_->pkgpart } }
qsearch( 'part_pkg', { 'disabled' => '' } )
];
@@ -96,12 +100,17 @@
if ( grep { $conf->exists($_) } @addl ) {
$signup_info->{optional_packages} = [];
+ $signup_info->{optional_packages_options} = [];
foreach my $addl ( @addl ) {
my $classnum = $conf->config($addl) or next;
my @pkgs = map { $_->hashref }
qsearch( 'part_pkg', { classnum => $classnum } );
push @{$signup_info->{optional_packages}}, \@pkgs;
+ my @options = map { { $_->options,
+ 'freq_pretty' => $_->freq_pretty
+ } } @pkgs;
+ push @{$signup_info->{options_packages_options}}, \@options
}
}
@@ -139,7 +148,11 @@
if ( $packet->{'reg_code'} ) {
$signup_info->{'part_pkg'} =
- [ map { { 'payby' => [ $_->payby ], %{$_->hashref} } }
+ [ map { { 'payby' => [ $_->payby ],
+ 'freq_pretty' => $_->freq_pretty,
+ 'options' => { $_->options },
+ %{$_->hashref}
+ } }
grep { $_->svcpart('svc_acct') }
map { $_->part_pkg }
qsearchs( 'reg_code', { 'code' => $packet->{'reg_code'},
@@ -153,7 +166,11 @@
} elsif ( $packet->{'promo_code'} ) {
$signup_info->{'part_pkg'} =
- [ map { { 'payby' => [ $_->payby ], %{$_->hashref} } }
+ [ map { { 'payby' => [ $_->payby ],
+ 'freq_pretty' => $_->freq_pretty,
+ 'options' => { $_->options },
+ %{$_->hashref}
+ } }
grep { $_->svcpart('svc_acct') }
qsearch( 'part_pkg', { 'promo_code' => {
op=>'ILIKE',
- Previous message: [freeside-commits] freeside/httemplate/config config-process.cgi,
1.9, 1.10 config-view.cgi, 1.14, 1.15 config.cgi, 1.19, 1.20
- Next message: [freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi
success-delayed.html, NONE, 1.1 signup.cgi, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list