A tweak to refund feature

This commit is contained in:
2014-04-25 22:55:51 +10:00
parent 4c33ebf977
commit 37f9d53dd8

View File

@@ -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)