study group bugfixes

This commit is contained in:
2014-04-29 19:14:04 +10:00
parent 0ff5b531eb
commit eb3fa7e7bf
4 changed files with 47 additions and 22 deletions

View File

@@ -661,6 +661,13 @@ function _booking_process_refund($person)
//calculate the refund due
//don't include paypal fees in the deposit amount
$refund = $paid - _booking_deposit_amount(FALSE);
//if there is a spouse, subtract their deposit too
if (variable_get('booking_enable_combined_pricing', 0) == 1 && $person->booking_partner_id > 0)
{
$refund = $refund - _booking_deposit_amount(FALSE);
}
}
watchdog('booking', "Processing refund due to !first !last. Calculated as $!refund",