diff --git a/booking.register.inc b/booking.register.inc index 1e2e48f..cdd49cf 100644 --- a/booking.register.inc +++ b/booking.register.inc @@ -1310,7 +1310,10 @@ function _booking_update($node) { //let this person know their request has been processed _booking_demoted_to_notcoming_email($node->nid); - //TODO: Calculate refund + //Calculate refund + $refund = _booking_process_refund($node); + drupal_set_message(t('Refund calculated for !first !last is $!refund.', + array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname, '!refund' => $refund))); } //if we're not automatically sending emails on registration //and someone moved from not-paid to booked-in (ie, manual payment process)