This repository has been archived by the owner on Jul 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrote check in and checkout email notifications
- Loading branch information
Showing
9 changed files
with
109 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Hi <%= @reservation.reserver.name %>, | ||
<br /> | ||
|
||
<p>This is a receipt for your equipment return. </p> | ||
|
||
<p>Equipment returned: <%= @reservation.equipment_model.name%> (<%= @reservation.equipment_object.name %>) <br /> | ||
Checkout date: <%= @reservation.checked_out.strftime(" %B %e, %Y at %l:%M%P") %> <br /> | ||
Return date: <%= @reservation.checked_in.strftime(" %B %e, %Y at %l:%M%P") %> <br /> | ||
|
||
<% unless @reservation.notes.nil? %> | ||
Notes: <%= @reservation.notes %> <br /> | ||
<% end %> | ||
</p> | ||
|
||
<p> <% if (@reservation.due_date - @reservation.checked_in ) < 86400 %> | ||
Since the equipment was returned late, you will be charged a late fee of | ||
<%= number_to_currency(@reservation.equipment_model.late_fee) %> per day, | ||
for a total of <%= number_to_currency(((@reservation.checked_in - @reservation.due_date )/86400).to_i*(@reservation.equipment_model.late_fee))%>. </p> | ||
<% end %></p> | ||
|
||
|
||
|
||
|
||
Sincerely, <br /> | ||
<%= Settings.department_name %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Hi <%= @reservation.reserver.name %>, | ||
<br /> | ||
|
||
<p>This is a receipt for your equipment checkout. </p> | ||
|
||
<p>Equipment picked up: <%= @reservation.equipment_model.name%> (<%= @reservation.equipment_object.name %>) <br /> | ||
Checkout date: <%= @reservation.checked_out.strftime(" %B %e, %Y at %l:%M%P") %> <br /> | ||
Due date: <%= @reservation.due_date.strftime("%B %e, %Y") %> <br /> | ||
<% unless @reservation.notes.nil? %> | ||
Notes: <%= @reservation.notes %> <br /> | ||
<% end %> | ||
</p> | ||
|
||
<p>As a reminder, overdue equipment will incur a late fee of <%= number_to_currency(@reservation.equipment_model.late_fee) %> per day. </p> | ||
|
||
<br /> | ||
|
||
Sincerely, <br /> | ||
<%= Settings.department_name %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters