From 37f9d53dd8714c8580d77cbf83513dd72e476897 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 25 Apr 2014 22:55:51 +1000 Subject: [PATCH] A tweak to refund feature --- booking.register.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)