Skip to content

[T3746] FEAT my_compassion: gift limits in the currency of the website's company - #461

Merged
Danielgergely merged 2 commits into
18.0from
T3746-gift-limits-currency
Dec 2, 2026
Merged

Danielgergely merged 2 commits into
18.0from
T3746-gift-limits-currency

Conversation

@davidwul

@davidwul davidwul commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Ticket T3746: gift limits in the correct currencies.

Depends on CompassionCH/compassion-modules#2231 (gift.threshold.settings._get_rule / _get_rules): merge that one first.

What changes

  • product.template.get_donation_limits: takes the rule in the company's currency, else the official one (USD) converted.
  • my2_donations controllers: the "Giving limits" modal shows one rule per gift type, the one in the currency of the website's company when it has its own (before, every rule was listed).

Tests

tests/test_gift_limits_currency.py: a SEK company with its own rule gets it as is; a NOK company without one gets the USD rule converted.

🤖 Generated with Claude Code

@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge after its stated dependency.

Reviews (2) · Last reviewed commit: "[T3746] FIX my_compassion: fixed exchang..." · Reviewed by Greptile

@Danielgergely
Danielgergely merged commit b956912 into 18.0 Dec 2, 2026
2 checks passed
@Danielgergely
Danielgergely deleted the T3746-gift-limits-currency branch December 2, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants