And use tenant-specific app.name also in PaymentsController
- Group Reviewers
- rK9c0964980d2f: Add possibility to change system currency
I'm planning on updating this diff with a fix for stats (where the income chart should sum up eur and chf payments using conversion rates and present the results in chf).
I don't get the question. If $currency == 'EUR' array_merge is not executed, because the first request to mollie will return them.
applyTenantScope() is implemented in API/V4/Reseller/StatsController. Here it can be empty (until we implement tenant selector for admin stats). For now admins work without the tenant scope, resellers work in their tenant scope.
I'm not sure I get the question. Admin work in system currency. Resellers work in their tenant currency, which is their wallet currency. Note that right now it does not really matter, as we do not have Income chart implementation for resellers (yet).