remove room allocation functions replaced by new autocomplete functions

This commit is contained in:
Nathan Coad
2016-05-16 11:55:11 +10:00
parent 32d2e1692d
commit 0274c5fde1
7 changed files with 1042 additions and 1452 deletions

View File

@@ -853,28 +853,18 @@ function _booking_deposit_amount($person, $include_fees = TRUE)
array(':eventid' => $event->eid))
->fetchObject();
if ($deposit)
{
if ($deposit) {
//if we're using paypal, add the transaction fee
if (variable_get('booking_use_paypal', 0) == 1 && $include_fees == TRUE)
{
if (variable_get('booking_use_paypal', 0) == 1 && $include_fees == TRUE) {
$amount_owing = _booking_add_paypal_fees($deposit->booking_price, $person->booking_country);
/*
//add the 30 cent fixed cost
$amount_owing = $deposit->booking_price + 0.3;
//and the 2.4 percent transaction fee
$amount_owing = $amount_owing / (1 - 0.026);
*/
}
else
{
else {
$amount_owing = $deposit->booking_price;
}
//return the calculated amount rounded to two decimal places
return number_format($amount_owing, 2, '.', '');
}
else
{
else {
//there is no deposit amount
return 0;
}