mirror of
https://git.hiabuto.net/C3MA/CCMA.git
synced 2026-08-25 06:55:17 +02:00
feat: add per-member payment frequencies
This commit is contained in:
@@ -20,6 +20,13 @@ MEMBERSHIP_STATUS_LABELS = {
|
||||
"ended": "BEENDET",
|
||||
}
|
||||
|
||||
PAYMENT_FREQUENCY_LABELS = {
|
||||
"monthly": "MONATLICH",
|
||||
"quarterly": "QUARTALSWEISE",
|
||||
"semiannual": "HALBJÄHRLICH",
|
||||
"annual": "JÄHRLICH",
|
||||
}
|
||||
|
||||
ASSET_STATUS_LABELS = {
|
||||
"available": "VERFUEGBAR",
|
||||
"issued": "AUSGEGEBEN",
|
||||
@@ -91,7 +98,7 @@ class Member:
|
||||
accepted_at: str = ""
|
||||
membership_started_at: str = ""
|
||||
membership_ended_at: str = ""
|
||||
payment_frequency: str = "annual"
|
||||
payment_frequency: str = "semiannual"
|
||||
contribution_rule_id: str = "standard-2022"
|
||||
honorary: bool = False
|
||||
notes: str = ""
|
||||
@@ -183,7 +190,7 @@ class Member:
|
||||
membership_ended_at=str(membership.get("ended_at", "")),
|
||||
honorary=bool(membership.get("honorary", False)),
|
||||
contribution_rule_id=str(contribution.get("rule_id", "standard-2022")),
|
||||
payment_frequency=str(contribution.get("payment_frequency", "annual")),
|
||||
payment_frequency=str(contribution.get("payment_frequency", "semiannual")),
|
||||
notes=str(data.get("notes", "")),
|
||||
created_at=str(data.get("created_at", _iso_now())),
|
||||
updated_at=str(data.get("updated_at", _iso_now())),
|
||||
|
||||
Reference in New Issue
Block a user