two bugfixes in helper
This commit is contained in:
@@ -494,7 +494,7 @@ function _booking_studygroups_cleanup($nid)
|
|||||||
elseif ($group->booking_is_reserveleader == 'Y')
|
elseif ($group->booking_is_reserveleader == 'Y')
|
||||||
$role = "Reserve group #" . $group->booking_studygroup_id;
|
$role = "Reserve group #" . $group->booking_studygroup_id;
|
||||||
*/
|
*/
|
||||||
$message = t("Removing id !nid from group id !group with role !role.",
|
$message = t("Removing id !nid from group id !group with role !role",
|
||||||
array('!nid' => $nid, '!group' => $group->booking_studygroup_id, '
|
array('!nid' => $nid, '!group' => $group->booking_studygroup_id, '
|
||||||
!role' => _booking_studygroup_role_lookup($group->booking_studygroup_role)
|
!role' => _booking_studygroup_role_lookup($group->booking_studygroup_role)
|
||||||
)
|
)
|
||||||
@@ -818,7 +818,7 @@ function _booking_amount_owing($person, $amount_paid = 0, $include_paypal_fees =
|
|||||||
function _booking_process_refund($person)
|
function _booking_process_refund($person)
|
||||||
{
|
{
|
||||||
global $event;
|
global $event;
|
||||||
//$refund_due = 0;
|
$refund = 0;
|
||||||
|
|
||||||
//calculate amount to be refunded
|
//calculate amount to be refunded
|
||||||
$paid = _booking_amount_paid($person->nid, $person);
|
$paid = _booking_amount_paid($person->nid, $person);
|
||||||
@@ -883,8 +883,6 @@ function _booking_process_refund($person)
|
|||||||
))
|
))
|
||||||
->execute();
|
->execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//return the amount to refund this person
|
//return the amount to refund this person
|
||||||
return $refund;
|
return $refund;
|
||||||
|
Reference in New Issue
Block a user