remove room allocation functions replaced by new autocomplete functions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user