dav_events: Incorporated new rewards and fees
All checks were successful
Run tests / Execute tox to run the test suite (push) Successful in 3m17s

This commit is contained in:
2024-09-11 16:54:48 +02:00
parent c46f7f6c5c
commit e4680114e8
3 changed files with 230 additions and 156 deletions

View File

@@ -133,125 +133,149 @@ FORM_INITIALS = {
# EventCreateForm and sub classes
# FORMS_DEVELOPMENT_INIT = False
MATRIX_CONFIG = {
'0': {'description': _(u'Keiner / direkte Abrechnung (Tageswanderung)'),
'trainer_fee': 0,
'trainer_day_fee': 0,
'participant_fee': 0,
'participant_day_fee': 0,
'pre_meeting_fee': 0,
'pubtrans_bonus': 0,
'min_participants': 0,
'max_participants': 0,
'0': {'description': _(u'Keiner / direkte Abrechnung (Tageswanderung)'),
'orga_compensation': 0,
'pubtrans_compensation': 0,
'trainer_compensation': 0,
'trainer_daily_compensation': 0,
'pre_meeting_compensation': 0,
'participant_fee': 0,
'participant_daily_fee': 0,
'pubtrans_bonus': 0,
'min_participants': 0,
'max_participants': 0,
},
'A': {'description': _(u'A (Mehrtageswanderung Mittelgebirge)'),
'trainer_fee': 40,
'trainer_day_fee': 50,
'participant_fee': 10,
'participant_day_fee': 10,
'pre_meeting_fee': 20,
'pubtrans_bonus': 20,
'min_participants': 5,
'max_participants': 8,
'A': {'description': _(u'A (Mehrtageswanderung Mittelgebirge)'),
'orga_compensation': 30,
'pubtrans_compensation': 30,
'trainer_compensation': 38,
'trainer_daily_compensation': 48,
'pre_meeting_compensation': 20,
'participant_fee': 11,
'participant_daily_fee': 11,
'pubtrans_bonus': 20,
'min_participants': 5,
'max_participants': 8,
},
'B': {'description': _(u'B (Alpine Mehrtageswanderung)'),
'trainer_fee': 50,
'trainer_day_fee': 75,
'participant_fee': 10,
'participant_day_fee': 20,
'pre_meeting_fee': 20,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 6,
'B': {'description': _(u'B (Alpine Mehrtageswanderung)'),
'orga_compensation': 30,
'pubtrans_compensation': 50,
'trainer_compensation': 48,
'trainer_daily_compensation': 73,
'pre_meeting_compensation': 20,
'participant_fee': 11,
'participant_daily_fee': 21,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 6,
},
'C': {'description': _(u'C (Tour/Kurs ohne Übernachtung)'),
'trainer_fee': 30,
'trainer_day_fee': 60,
'participant_fee': 10,
'participant_day_fee': 30,
'pre_meeting_fee': 20,
'pubtrans_bonus': 0,
'min_participants': 3,
'max_participants': 5,
'C': {'description': _(u'C (Tour/Kurs ohne Übernachtung)'),
'orga_compensation': 30,
'pubtrans_compensation': 30,
'trainer_compensation': 28,
'trainer_daily_compensation': 57,
'pre_meeting_compensation': 20,
'participant_fee': 11,
'participant_daily_fee': 32,
'pubtrans_bonus': 20,
'min_participants': 3,
'max_participants': 5,
},
'D': {'description': _(u'D (Tour/Kurs Mittelgebirge)'),
'trainer_fee': 50,
'trainer_day_fee': 75,
'participant_fee': 20,
'participant_day_fee': 25,
'pre_meeting_fee': 20,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 5,
'D': {'description': _(u'D (Tour/Kurs Mittelgebirge)'),
'orga_compensation': 30,
'pubtrans_compensation': 30,
'trainer_compensation': 48,
'trainer_daily_compensation': 73,
'pre_meeting_compensation': 20,
'participant_fee': 21,
'participant_daily_fee': 26,
'pubtrans_bonus': 20,
'min_participants': 3,
'max_participants': 5,
},
'E': {'description': _(u'E (Alpine Klettertour DE/AT)'),
'trainer_fee': 80,
'trainer_day_fee': 75,
'participant_fee': 40,
'participant_day_fee': 40,
'pre_meeting_fee': 20,
'pubtrans_bonus': 30,
'min_participants': 2,
'max_participants': 3,
'E': {'description': _(u'E (Alpine Klettertour DE/AT)'),
'orga_compensation': 40,
'pubtrans_compensation': 50,
'trainer_compensation': 76,
'trainer_daily_compensation': 73,
'pre_meeting_compensation': 20,
'participant_fee': 42,
'participant_daily_fee': 42,
'pubtrans_bonus': 30,
'min_participants': 2,
'max_participants': 3,
},
'F': {'description': _(u'F (Alpine Klettertour CH/FR/IT/..)'),
'trainer_fee': 80,
'trainer_day_fee': 85,
'participant_fee': 40,
'participant_day_fee': 45,
'pre_meeting_fee': 20,
'pubtrans_bonus': 30,
'min_participants': 2,
'max_participants': 3,
'F': {'description': _(u'F (Alpine Klettertour CH/FR/IT/..)'),
'orga_compensation': 40,
'pubtrans_compensation': 50,
'trainer_compensation': 76,
'trainer_daily_compensation': 82,
'pre_meeting_compensation': 20,
'participant_fee': 42,
'participant_daily_fee': 47,
'pubtrans_bonus': 30,
'min_participants': 2,
'max_participants': 3,
},
'G': {'description': _(u'G (Alpiner Kurs DE/AT)'),
'trainer_fee': 100,
'trainer_day_fee': 75,
'participant_fee': 35,
'participant_day_fee': 30,
'pre_meeting_fee': 20,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 4,
'G': {'description': _(u'G (Alpiner Kurs DE/AT)'),
'orga_compensation': 50,
'pubtrans_compensation': 50,
'trainer_compensation': 96,
'trainer_daily_compensation': 73,
'pre_meeting_compensation': 20,
'participant_fee': 37,
'participant_daily_fee': 32,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 4,
},
'H': {'description': _(u'H (Alpiner Kurs CH/FR/IT/..)'),
'trainer_fee': 100,
'trainer_day_fee': 85,
'participant_fee': 35,
'participant_day_fee': 30,
'pre_meeting_fee': 20,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 4,
'H': {'description': _(u'H (Alpiner Kurs CH/FR/IT/..)'),
'orga_compensation': 50,
'pubtrans_compensation': 50,
'trainer_compensation': 96,
'trainer_daily_compensation': 82,
'pre_meeting_compensation': 20,
'participant_fee': 37,
'participant_daily_fee': 32,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 4,
},
'I': {'description': _(u'I (Alpine MTB/Ski-Tour DE/AT)'),
'trainer_fee': 80,
'trainer_day_fee': 75,
'participant_fee': 25,
'participant_day_fee': 25,
'pre_meeting_fee': 20,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 6,
'I': {'description': _(u'I (Alpine MTB/Ski-Tour DE/AT)'),
'orga_compensation': 40,
'pubtrans_compensation': 50,
'trainer_compensation': 76,
'trainer_daily_compensation': 73,
'pre_meeting_compensation': 20,
'participant_fee': 26,
'participant_daily_fee': 26,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 6,
},
'J': {'description': _(u'J (Alpine MTB/Ski-Tour CH/FR/IT/..)'),
'trainer_fee': 80,
'trainer_day_fee': 85,
'participant_fee': 25,
'participant_day_fee': 25,
'pre_meeting_fee': 20,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 6,
'J': {'description': _(u'J (Alpine MTB/Ski-Tour CH/FR/IT/..)'),
'orga_compensation': 40,
'pubtrans_compensation': 50,
'trainer_compensation': 76,
'trainer_daily_compensation': 82,
'pre_meeting_compensation': 20,
'participant_fee': 26,
'participant_daily_fee': 26,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 6,
},
'K': {'description': _(u'K (Ski-Tour/-Kurs mit Liftbenutzung)'),
'trainer_fee': 80,
'trainer_day_fee': 130,
'participant_fee': 40,
'participant_day_fee': 40,
'pre_meeting_fee': 20,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 4,
'K': {'description': _(u'K (Ski-Tour/-Kurs mit Liftbenutzung)'),
'orga_compensation': 40,
'pubtrans_compensation': 50,
'trainer_compensation': 76,
'trainer_daily_compensation': 124,
'pre_meeting_compensation': 20,
'participant_fee': 42,
'participant_daily_fee': 42,
'pubtrans_bonus': 30,
'min_participants': 3,
'max_participants': 4,
},
}