Refund feature added
This commit is contained in:
@@ -1277,9 +1277,12 @@ function _booking_update($node) {
|
||||
watchdog('booking', 'Detected person moving from Booked In list to No Longer Coming');
|
||||
|
||||
//let this person know their request has been processed
|
||||
_booking_demoted_to_notcoming_email($node->nid);
|
||||
_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)));
|
||||
|
||||
//check if there is room on the booked-in list
|
||||
if (_booking_check_bookings_full() == False)
|
||||
|
Reference in New Issue
Block a user