Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
Remove gift certificate stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
agentphoenix committed Feb 20, 2014
1 parent 72813ac commit 2f537f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
15 changes: 6 additions & 9 deletions Scheduler/Services/BookingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ public function lesson(array $data)

// Set the initial user appointment record
$userApptRecord = array(
'user_id' => $user->id,
'has_gift' => (int) $data['has_gift'],
'gift_amount' => ($data['has_gift'] == 1) ? (int) $data['gift_amount'] : 0,
'amount' => ($data['has_gift'] == 1) ? ($service->price - $data['gift_amount']) : $service->price,
'user_id' => $user->id,
'amount' => $service->price,
);

// Automatically mark free services as paid
Expand Down Expand Up @@ -111,7 +109,8 @@ public function lesson(array $data)
'appointment_id' => $sa->id,
'user_id' => $data['user'],
'recur_id' => $recurItem->id,
'amount' => $service->price,
'amount' => ($user->isStaff()) ? 0 : $service->price,
'paid' => ($user->isStaff() or $service->price == 0) ? (int) true : (int) false,
));
}
}
Expand Down Expand Up @@ -139,10 +138,8 @@ public function program(array $data)

// Set the initial user appointment record
$userApptRecord = array(
'user_id' => $user->id,
'has_gift' => (int) $data['has_gift'],
'gift_amount' => ($data['has_gift'] == 1) ? (int) $data['gift_amount'] : 0,
'amount' => ($data['has_gift'] == 1) ? ($service->price - $data['gift_amount']) : $service->price,
'user_id' => $user->id,
'amount' => $service->price,
);

// Automatically mark free services as paid
Expand Down
4 changes: 2 additions & 2 deletions Scheduler/views/pages/booking/lesson.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
{{ Form::hidden('user', $_currentUser->id) }}
@endif

<div class="row">
<!--<div class="row">
<div class="col-lg-4">
<div class="form-group">
<label class="control-label">Do you have a gift certificate?</label>
Expand All @@ -116,7 +116,7 @@
</div>
</div>
</div>
</div>
</div>-->

<div class="row">
<div class="col-lg-12">
Expand Down
4 changes: 2 additions & 2 deletions Scheduler/views/pages/booking/program.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{{ Form::hidden('user', $_currentUser->id) }}
@endif

<div class="row">
<!--<div class="row">
<div class="col-lg-4">
<div class="form-group">
<label class="control-label">Do you have a gift certificate?</label>
Expand All @@ -63,7 +63,7 @@
</div>
</div>
</div>
</div>
</div>-->

<div class="row" id="enrollBtn">
<div class="col-lg-12">
Expand Down

0 comments on commit 2f537f8

Please sign in to comment.