mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-15 17:16:59 +02:00
Semi-final preparation for price per registrar
This commit is contained in:
parent
76f8c52f3a
commit
75512b7da9
2 changed files with 10 additions and 10 deletions
|
@ -221,7 +221,7 @@ class ApplicationsController extends Controller
|
||||||
$registrar_balance = $result['accountBalance'];
|
$registrar_balance = $result['accountBalance'];
|
||||||
$creditLimit = $result['creditLimit'];
|
$creditLimit = $result['creditLimit'];
|
||||||
|
|
||||||
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, 'create');
|
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, 'create', $clid);
|
||||||
$price = $returnValue['price'];
|
$price = $returnValue['price'];
|
||||||
|
|
||||||
if (!$price) {
|
if (!$price) {
|
||||||
|
@ -1076,7 +1076,7 @@ class ApplicationsController extends Controller
|
||||||
|
|
||||||
$date_add = 12;
|
$date_add = 12;
|
||||||
|
|
||||||
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, 'create');
|
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, 'create', $clid);
|
||||||
$price = $returnValue['price'];
|
$price = $returnValue['price'];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -365,7 +365,7 @@ class DomainsController extends Controller
|
||||||
$registrar_balance = $result['accountBalance'];
|
$registrar_balance = $result['accountBalance'];
|
||||||
$creditLimit = $result['creditLimit'];
|
$creditLimit = $result['creditLimit'];
|
||||||
|
|
||||||
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, 'create');
|
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, 'create', $clid);
|
||||||
$price = $returnValue['price'];
|
$price = $returnValue['price'];
|
||||||
|
|
||||||
if (!$price) {
|
if (!$price) {
|
||||||
|
@ -1755,7 +1755,7 @@ class DomainsController extends Controller
|
||||||
$registrar_balance = $result['accountBalance'];
|
$registrar_balance = $result['accountBalance'];
|
||||||
$creditLimit = $result['creditLimit'];
|
$creditLimit = $result['creditLimit'];
|
||||||
|
|
||||||
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, 'renew');
|
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, 'renew', $clid);
|
||||||
$price = $returnValue['price'];
|
$price = $returnValue['price'];
|
||||||
|
|
||||||
if (!$price) {
|
if (!$price) {
|
||||||
|
@ -2068,7 +2068,7 @@ class DomainsController extends Controller
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
if ($addPeriod_id) {
|
if ($addPeriod_id) {
|
||||||
$returnValue = getDomainPrice($db, $domainName, $tld_id, $addPeriod, 'create');
|
$returnValue = getDomainPrice($db, $domainName, $tld_id, $addPeriod, 'create', $clid);
|
||||||
$price = $returnValue['price'];
|
$price = $returnValue['price'];
|
||||||
|
|
||||||
if (!$price) {
|
if (!$price) {
|
||||||
|
@ -2193,7 +2193,7 @@ class DomainsController extends Controller
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
if ($autoRenewPeriod_id) {
|
if ($autoRenewPeriod_id) {
|
||||||
$returnValue = getDomainPrice($db, $domainName, $tld_id, $autoRenewPeriod, 'renew');
|
$returnValue = getDomainPrice($db, $domainName, $tld_id, $autoRenewPeriod, 'renew', $clid);
|
||||||
$price = $returnValue['price'];
|
$price = $returnValue['price'];
|
||||||
|
|
||||||
if (!$price) {
|
if (!$price) {
|
||||||
|
@ -2220,7 +2220,7 @@ class DomainsController extends Controller
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
if ($renewPeriod_id) {
|
if ($renewPeriod_id) {
|
||||||
$returnValue = getDomainPrice($db, $domainName, $tld_id, $renewPeriod, 'renew');
|
$returnValue = getDomainPrice($db, $domainName, $tld_id, $renewPeriod, 'renew', $clid);
|
||||||
$price = $returnValue['price'];
|
$price = $returnValue['price'];
|
||||||
|
|
||||||
if (!$price) {
|
if (!$price) {
|
||||||
|
@ -2247,7 +2247,7 @@ class DomainsController extends Controller
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
if ($transferPeriod_id) {
|
if ($transferPeriod_id) {
|
||||||
$returnValue = getDomainPrice($db, $domainName, $tld_id, $transferPeriod, 'renew');
|
$returnValue = getDomainPrice($db, $domainName, $tld_id, $transferPeriod, 'renew', $clid);
|
||||||
$price = $returnValue['price'];
|
$price = $returnValue['price'];
|
||||||
|
|
||||||
if (!$price) {
|
if (!$price) {
|
||||||
|
@ -2459,7 +2459,7 @@ class DomainsController extends Controller
|
||||||
$registrar_balance = $result['accountBalance'];
|
$registrar_balance = $result['accountBalance'];
|
||||||
$creditLimit = $result['creditLimit'];
|
$creditLimit = $result['creditLimit'];
|
||||||
|
|
||||||
$returnValue = getDomainPrice($db, $domainName, $tldid, $date_add, 'transfer');
|
$returnValue = getDomainPrice($db, $domainName, $tldid, $date_add, 'transfer', $clid);
|
||||||
$price = $returnValue['price'];
|
$price = $returnValue['price'];
|
||||||
|
|
||||||
if (!$price) {
|
if (!$price) {
|
||||||
|
@ -2694,7 +2694,7 @@ class DomainsController extends Controller
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
$returnValue = getDomainPrice($db, $domainName, $tldid, $date_add, 'transfer');
|
$returnValue = getDomainPrice($db, $domainName, $tldid, $date_add, 'transfer', $clid);
|
||||||
$price = $returnValue['price'];
|
$price = $returnValue['price'];
|
||||||
|
|
||||||
if (($registrar_balance + $creditLimit) < $price) {
|
if (($registrar_balance + $creditLimit) < $price) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue