[Astpp-commit] SF.net SVN: astpp: [2140] trunk/astpp-admin.cgi
Brought to you by:
darrenkw
From: <dar...@us...> - 2007-11-01 06:15:01
|
Revision: 2140 http://astpp.svn.sourceforge.net/astpp/?rev=2140&view=rev Author: darrenkw Date: 2007-10-31 23:15:04 -0700 (Wed, 31 Oct 2007) Log Message: ----------- We have support for multiple pricelists for resellers but when an account was created by a reseller it was always taking the default resellers pricelist. This has been resolved and is ready for final testing. Modified Paths: -------------- trunk/astpp-admin.cgi Modified: trunk/astpp-admin.cgi =================================================================== --- trunk/astpp-admin.cgi 2007-11-01 06:01:57 UTC (rev 2139) +++ trunk/astpp-admin.cgi 2007-11-01 06:15:04 UTC (rev 2140) @@ -2229,7 +2229,8 @@ unless @pricelists; if ( $params->{action} eq gettext("Generate Account") ) { if ( $params->{logintype} == 1 || $params->{logintype} == 5 ) { - $params->{pricelist} = $params->{username}; + my $pricelistinfo = &get_pricelist($astpp_db, $params->{pricelist}); + $params->{pricelist} = $params->{username} if $pricelistinfo->{reseller} ne $params->{username}; $params->{reseller} = $params->{username}; } $params->{count} = 1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |