Tweaks to refunds, study groups, travel emails
This commit is contained in:
@@ -281,6 +281,25 @@ function booking_update_7211() {
|
||||
db_add_field( 'booking_person', 'booking_bf_gf_nid', $spec);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add refund fields to booking registration table
|
||||
*/
|
||||
function booking_update_7212() {
|
||||
$spec = array('type' => 'numeric', 'not null' => FALSE, 'default' => 0, 'precision' => '7', 'scale' => '2');
|
||||
db_add_field( 'booking_person', 'booking_amount_refunded', $spec);
|
||||
|
||||
$spec2 = array('type' => 'varchar', 'length' => '1', 'not null' => FALSE, 'default' => 'N');
|
||||
db_add_field( 'booking_person', 'booking_refund_processed', $spec2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename refund field
|
||||
*/
|
||||
function booking_update_7213() {
|
||||
$spec = array('type' => 'numeric', 'not null' => FALSE, 'default' => 0, 'precision' => '7', 'scale' => '2');
|
||||
db_change_field('booking_person', 'booking_amount_refunded', 'booking_refund_due', $spec);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hook_install().
|
||||
*/
|
||||
@@ -317,39 +336,6 @@ $result = db_insert('booking_price')
|
||||
))
|
||||
->execute();
|
||||
|
||||
$result = db_insert('booking_price')
|
||||
->fields(array(
|
||||
'booking_eventid' => 1,
|
||||
'booking_price' => '300.00',
|
||||
'booking_price_descrip' => 'Worker',
|
||||
'booking_buttonid' => 'R7PR6FASQMHSS',
|
||||
'booking_price_active' => 1,
|
||||
'booking_depositonly' => 0,
|
||||
))
|
||||
->execute();
|
||||
|
||||
$result = db_insert('booking_price')
|
||||
->fields(array(
|
||||
'booking_eventid' => 1,
|
||||
'booking_price' => '260.00',
|
||||
'booking_price_descrip' => 'Non-Worker',
|
||||
'booking_buttonid' => 'R2CF3G96WX4XA',
|
||||
'booking_price_active' => 1,
|
||||
'booking_depositonly' => 0,
|
||||
))
|
||||
->execute();
|
||||
|
||||
$result = db_insert('booking_price')
|
||||
->fields(array(
|
||||
'booking_eventid' => 1,
|
||||
'booking_price' => '540.00',
|
||||
'booking_price_descrip' => 'Married Couple',
|
||||
'booking_buttonid' => 'QST6YCMZFYEN4',
|
||||
'booking_price_active' => 1,
|
||||
'booking_depositonly' => 0,
|
||||
))
|
||||
->execute();
|
||||
|
||||
$result = db_insert('booking_event')
|
||||
->fields(array(
|
||||
'booking_eventname' => 'Study Weekend 2012',
|
||||
|
Reference in New Issue
Block a user