diff --git a/app/hackathon_variables.py b/app/hackathon_variables.py index 92a28061..c1e5d521 100644 --- a/app/hackathon_variables.py +++ b/app/hackathon_variables.py @@ -84,13 +84,9 @@ REIMBURSEMENT_ENABLED = True DEFAULT_REIMBURSEMENT_AMOUNT = 100 CURRENCY = "€" -REIMBURSEMENT_EXPIRY_DATE = timezone.datetime( - 2026, 5, 2, 17, 00, tzinfo=timezone.pytz.timezone(TIME_ZONE) -) -REIMBURSEMENT_REQUIREMENTS = "You have to submit a project and demo it during the event in order to get reimbursed" -REIMBURSEMENT_DEADLINE = timezone.datetime( - 2026, 5, 5, 23, 59, tzinfo=timezone.pytz.timezone(TIME_ZONE) -) +REIMBURSEMENT_EXPIRY_DATE = timezone.datetime(2026, 4, 4, 17, 00, tzinfo=timezone.pytz.timezone(TIME_ZONE)) +REIMBURSEMENT_REQUIREMENTS = 'You have to submit a project and demo it during the event in order to get reimbursed' +REIMBURSEMENT_DEADLINE = timezone.datetime(2026, 4, 4, 23, 59, tzinfo=timezone.pytz.timezone(TIME_ZONE)) # (OPTIONAL) Max team members. Defaults to 4 TEAMS_ENABLED = True diff --git a/cronjob b/cronjob index 9e7e140d..574ab424 100644 --- a/cronjob +++ b/cronjob @@ -2,5 +2,5 @@ 6 */2 * * * root /usr/local/bin/python /code/manage.py expire_applications # Run expire reimbursements job at 6 minutes past the hour, every 2 hours 36 */2 * * * root /usr/local/bin/python /code/manage.py expire_reimbursements -# Run send devpost emails job every Sunday at 20:00 -0 20 * * 0 root /usr/local/bin/python /code/manage.py send_devpost_emails +# Run send devpost emails job every Sunday at 20:00 server va 1 hora abans +0 19 * * 0 root /usr/local/bin/python /code/manage.py send_devpost_emails diff --git a/reimbursement/templates/mails/devpost_upload_message.html b/reimbursement/templates/mails/devpost_upload_message.html index da62d5e7..f7d81aca 100644 --- a/reimbursement/templates/mails/devpost_upload_message.html +++ b/reimbursement/templates/mails/devpost_upload_message.html @@ -5,13 +5,11 @@

Hey {{ app.user.get_full_name }},


HackUPC has officially come to an end, and we hope you enjoyed the event as much as we did!

-

The next step to get your travel reimbursement is to upload the link to your project on Devpost. This will allow us +

The next step to get your travel reimbursement is to upload the link to your project on Devpost. This will allow us to validate your submission and verify that the project is valid and that it complies with the requirements that were previously communicated.

-

Upload your link here: https://my.hackupc.com/reimbursement/dash_board/. -

+

Upload your link here:

{% include 'mails/include/email_button.html' with text='Upload Devpost link' url=form_url %} diff --git a/reimbursement/templates/mails/devpost_upload_subject.txt b/reimbursement/templates/mails/devpost_upload_subject.txt index f99021ac..991155d8 100644 --- a/reimbursement/templates/mails/devpost_upload_subject.txt +++ b/reimbursement/templates/mails/devpost_upload_subject.txt @@ -1 +1 @@ -[ACTION REQUIRED] Upload your Devpost link +Upload your Devpost link diff --git a/reimbursement/templates/mails/project_invalidated_subject.txt b/reimbursement/templates/mails/project_invalidated_subject.txt new file mode 100644 index 00000000..eafe9d60 --- /dev/null +++ b/reimbursement/templates/mails/project_invalidated_subject.txt @@ -0,0 +1 @@ +[IMPORTANT INFORMATION] Your reimbursement has been invalidated diff --git a/reimbursement/templates/mails/ticket_accepted_message.html b/reimbursement/templates/mails/ticket_accepted_message.html index 12d2f87d..775dc320 100644 --- a/reimbursement/templates/mails/ticket_accepted_message.html +++ b/reimbursement/templates/mails/ticket_accepted_message.html @@ -10,22 +10,22 @@

Regarding the project:

Regarding the attendance:

The money will be transferred to the participant using PayPal in the following 60 days after the event. The paypal - account MUST exist.

+ account MUST exist.

{% include 'mails/include/closing.html' with travel="true" %} {% endblock %} \ No newline at end of file diff --git a/reimbursement/templates/mails/travel_tickets_upload_message.html b/reimbursement/templates/mails/travel_tickets_upload_message.html index 3b84a138..4f33175f 100644 --- a/reimbursement/templates/mails/travel_tickets_upload_message.html +++ b/reimbursement/templates/mails/travel_tickets_upload_message.html @@ -1,22 +1,34 @@ {% extends 'base_email.html' %} -{% block preheader %}Upload your travel tickets{% endblock %} +{% block preheader %}Upload your travel ticket{% endblock %} {% block content %} -

Hey {{ app.user.get_full_name }},

+

Hey {{ app.user.get_full_name }},


-

For us to accept your travel reimbursement request, you need to upload VALID travel tickets in https://my.hackupc.com/reimbursement/dash_board/. -

-

A ticket is considered valid if and only if:

+ +

Congratulations on being accepted to HackUPC 2026! 🎉

+ +

We noticed that you selected the travel reimbursement option. To proceed, please upload a valid travel ticket to your MyHackUPC dashboard as soon as possible.

+ +{% include 'mails/include/email_button.html' with text='Upload ticket' url=form_url %} + +

A ticket will be considered valid only if:

-{% include 'mails/include/email_button.html' with text='Upload tickets' url=form_url %} +
+ +

Reimbursement Policy

+

The reimbursed amount will be the minimum of:

+ {% include 'mails/include/closing.html' with travel="true" %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/reimbursement/templates/mails/travel_tickets_upload_subject.txt b/reimbursement/templates/mails/travel_tickets_upload_subject.txt index b96ef834..b74d979d 100644 --- a/reimbursement/templates/mails/travel_tickets_upload_subject.txt +++ b/reimbursement/templates/mails/travel_tickets_upload_subject.txt @@ -1 +1 @@ -[ACTION REQUIRED] Upload your travel tickets +Upload your travel tickets diff --git a/reimbursement/views.py b/reimbursement/views.py index 890c32f3..e1e847a1 100644 --- a/reimbursement/views.py +++ b/reimbursement/views.py @@ -249,6 +249,7 @@ def post(self, request, *args, **kwargs): if a_form.is_valid(): a_form.save(commit=False) a_form.instance.accept_receipt(request.user) + emails.create_ticket_accepted_email(a_form.instance, request).send() a_form.save() messages.success(request, "Receipt accepted") else: