Skip to content

Commit

Permalink
chore(tracon2024): expense claim in English
Browse files Browse the repository at this point in the history
  • Loading branch information
japsu committed Jan 28, 2024
1 parent ec66df7 commit a73a80f
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 1 deletion.
66 changes: 66 additions & 0 deletions backend/events/tracon2024/forms/expense-claim-en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
title: Expense Claim
layout: vertical
description: |
With this form, you can apply for expense reimbursement from Tracon ry for an event or association-related expense,
send an invoice to Tracon ry, or submit a receipt for an expense paid with Tracon ry's debit card.
Please fill out the form carefully and attach all requested attachments.
If you have any questions about expense reimbursements, please contact Tracon ry's treasurer by email
at <em>rahat at tracon dot fi</em> or on Slack at <em>@Aketzu</em>.
fields:
- slug: event
type: SingleSelect
title: Event
required: true
helpText: |
Which event is the expense you are applying for reimbursement related to or submitting an invoice for?
If the expense is not related to an event, select <em>Payment is not related to an event</em>.
choicesFrom:
dimension: event

- slug: title
type: SingleLineText
title: Title
required: true
helpText: Briefly tell us what expense you are applying for reimbursement for or what the invoice is for.

- slug: description
type: MultiLineText
title: Description
helpText: |
If the title does not tell everything essential, you can provide additional information here.
- slug: amount
type: DecimalField
minValue: 0
decimalPlaces: 2
title: Amount
required: true
helpText: |
How much are you applying for reimbursement or what is the invoice amount? Write the amount in euros.
- slug: recipient
type: SingleLineText
title: Recipient
required: true
helpText: |
Who will the reimbursement be paid to? Write the first and last name or the company name here.
- slug: recipient_iban
type: SingleLineText
title: Bank account number of the recipient
required: true
helpText: |
Which account will the reimbursement be paid to? Write the IBAN account number in the format FI12 3456 7890 1234 56.
- slug: attachments
type: FileUpload
title: Receipts
required: true
helpText: |
Attach all receipts necessary for the expense reimbursement.
The date of the expense, the amount, the VAT rate, and the recipient of the payment must be apparent from the receipts.
For payments made in a currency other than euros, the exchange rate or
the amount in the original currency must also be apparent.
If you do not have a receipt, write a free-form explanation of the expense and
why a receipt is not available, and sign it.
Original file line number Diff line number Diff line change
Expand Up @@ -1000,13 +1000,23 @@ def setup_forms(self):
defaults=data,
)

with resource_stream("events.tracon2024", "forms/expense-claim-en.yml") as f:
data = yaml.safe_load(f)

expense_claim_en, created = Form.objects.update_or_create(
event=self.event,
slug="expense-claim-en",
language="en",
defaults=data,
)

# TODO(#386) remove when there is a form editor
if not created:
for key, value in data.items():
setattr(expense_claim_fi, key, value)
expense_claim_fi.save()

expense_claim_survey.languages.set([expense_claim_fi])
expense_claim_survey.languages.set([expense_claim_fi, expense_claim_en])


class Command(BaseCommand):
Expand Down

0 comments on commit a73a80f

Please sign in to comment.