pull/121/head
Christian Merten 10 months ago
parent 582dd81465
commit 0daafdd5d7
Signed by: christian.merten
GPG Key ID: D953D69721B948B3

@ -82,6 +82,13 @@ NOT_BW_REASONS = {
LJPProposal.NOT_BW_ECONOMIC: 'wirtschaftliche Sparsamkeit',
}
LJP_GOALS = {
LJPProposal.LJP_QUALIFICATION: 'Qualifizierung',
LJPProposal.LJP_PARTICIPATION: 'Partizipation',
LJPProposal.LJP_DEVELOPMENT: 'Persönlichkeitsentwicklung',
LJPProposal.LJP_ENVIRONMENT: 'Umwelt',
}
def generate_ljp_vbk(excursion):
"""
@ -105,10 +112,11 @@ def generate_ljp_vbk(excursion):
sheet['B7'] = settings.RESPONSIBLE_MAIL
sheet['B36'] = f"{settings.SEKTION}, {datetime.today():%d.%m.%Y}"
sheet['F19'] = f"B {excursion.date:%y}-{excursion.pk}"
sheet['C19'] = LJP_GOALS[excursion.ljpproposal.goal] if excursion.ljpproposal.goal in LJP_GOALS else ""
sheet['D19'] = settings.SEKTION
sheet['G19'] = title
sheet['I19'] = f"von {excursion.date:%d.%m.%y} bis {excursion.end:%d.%m.%y}"
sheet['J19'] = f"{excursion.duration}"
sheet['J19'] = excursion.duration
sheet['L19'] = f"{excursion.ljp_participant_count}"
sheet['H19'] = excursion.get_ljp_activity_category()
sheet['M19'] = f"{excursion.postcode}, {excursion.place}"

Loading…
Cancel
Save