-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #558 from xzzy/master
Rottnest Bug Fixes
- Loading branch information
Showing
27 changed files
with
305 additions
and
42 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
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,26 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.8 on 2019-03-07 05:59 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mooring', '0118_admissionsbooking_location'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='refundfailed', | ||
name='admission_booking', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mooring.AdmissionsBooking'), | ||
), | ||
migrations.AlterField( | ||
model_name='refundfailed', | ||
name='booking', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='booking_refund', to='mooring.Booking'), | ||
), | ||
] |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
mooring/templates/mooring/booking/admission_cancel_completed.html
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,22 @@ | ||
{% extends 'mooring/base.html' %} | ||
{% load static %} | ||
{% load forms %} | ||
{% block content %} | ||
<div class="container"> | ||
<div class="well"> | ||
<div class="row"><div class="col-sm-12"> | ||
<h2>Cancellation Completed</h2> | ||
<p>A confirmation email has been sent to {{ booking.customer.email }}. </p> | ||
{% if refund_failed %} | ||
Your refund has failed. A reference number for your refund is : | ||
{% for i in refund_failed %} | ||
{{ i.id }} | ||
{% endfor %} | ||
A job has been creating to manually process your refund. This can take upto 28 days. | ||
{% else %} | ||
Your refund was automatically refunded to you. Please allow upto 1 - 3 business days for the refund to appear in your account. | ||
{% endif %} | ||
</div></div> | ||
</div> | ||
</div> | ||
{% endblock %} |
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,24 @@ | ||
{% extends 'mooring/base.html' %} | ||
{% load static %} | ||
{% load forms %} | ||
{% block content %} | ||
<div class="container"> | ||
<div class="well"> | ||
<div class="row"><div class="col-sm-12"> | ||
<h2>Cancellation Completed</h2> | ||
<p>A confirmation email has been sent to {{ booking.customer.email }}. </p> | ||
{% if booking.cost_total < 0 %} | ||
{% if refund_failed %} | ||
Your refund has failed. A reference number for your refund is : | ||
{% for i in refund_failed %} | ||
{{ i.id }} | ||
{% endfor %} | ||
A job has been creating to manually process your refund. This can take upto 28 days. | ||
{% else %} | ||
A refund has automatically been refunded to you, please allow 1-3 business days for the money to be credit to your account. | ||
{%endif %} | ||
{% endif %} | ||
</div></div> | ||
</div> | ||
</div> | ||
{% endblock %} |
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
8 changes: 8 additions & 0 deletions
8
mooring/templates/mooring/email/refund_completed_customer.html
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,8 @@ | ||
|
||
<p>Hello,</p> | ||
|
||
A refund for booking PS{{ booking.id }} was automatically refunded to you. | ||
|
||
Please allow upto 1 - 3 business days for the refund to appear in your account. | ||
|
||
|
8 changes: 8 additions & 0 deletions
8
mooring/templates/mooring/email/refund_completed_customer_admissions.html
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,8 @@ | ||
|
||
<p>Hello,</p> | ||
|
||
A refund for admission booking AD{{ booking.id }} was automatically refunded to you. | ||
|
||
Please allow upto 1 - 3 business days for the refund to appear in your account. | ||
|
||
|
11 changes: 11 additions & 0 deletions
11
mooring/templates/mooring/email/refund_failed_admissions.html
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,11 @@ | ||
|
||
<p>Hello,</p> | ||
{% if booking.old_booking.id %} | ||
<p>A refund on admission booking {{booking.old_booking.id}} with new booking {{booking.id}} has failed and require intervention.</p> | ||
{% else %} | ||
<p>A refund on admission booking {{booking.id}} has failed and requires intervention.</p> | ||
{% endif %} | ||
|
||
<p>Please check the failed refund dashboard within the department internal portal for more information.</p> | ||
|
||
|
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
Oops, something went wrong.