-
-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fee calculators: Remove the currency input field #10272
Comments
papercut confirmed! |
Hiding the currency works, but from what I can see I think it creates tech debt and is not a papercut. Maybe I'm not seeing the full picture but this is what I can see so far: Calculator are classes that can be used for enterprise fees, shipping methods or payment methods. They have 'preferences', and some calculators have a currency preference (eg Flat Rate). It's possible that some fees/methods have been created that have a different currency set.
Does this make sense, and does anyone agree with either option (@jibees or @drummer83)? |
The desired solution is to hide the unwanted UX from the user. and autofill with the instance currency Yes it creates tech debt to remove this functionality but it improves the user experience so perhaps we can use Danni's phrase and 'put lipstick on the pig'? If any calculator has a different currency set it should be ignored to use the isntance default. @dacook Can we remove the currency from calculators entirely within the scope of a papercut? |
Apologies, I thought I had responded earlier! Thanks for confirming, so the currency does nothing on calculators and can be removed. We have a quick change to simply hide it for now. Perhaps we can call that step 1. Unfortunately it adds complexity (rather than taking it away), but we could ship it with the goal to clean up later. But... It's probably not that much effort to remove the currency entirely.. actually why don't I just try it and see. |
@filipefurtad0 I think that #10333 will close this issue completely? |
Oops 😅 |
Not introduced here as these PRs are not yet in production, but perhaps good to document: we've observed this bugsnag error which seems related to currencies in shipping method calculators: |
Strange. But I think it should no longer happen after this new PR anyway 🤞 |
We no longer use currency on calculators (openfoodfoundation#10272).
The main part was merged on 25th Jan: hiding the currency input field. The cleanup is a bit more complicated, so I've moved to a new tech debt issue: #10521 |
Description
- As a: enterprise or super admin
- On pages :
/admin/enterprise_fees?enterprise_id=XXXX
for all calculators/admin/shipping_methods/new
+ edition page/admin/payment_methods/new
+ edition page- I want to be able to do: not seeing the currency field anymore. By default, it should use the currency of the instance.
Acceptance Criteria & Tests
The text was updated successfully, but these errors were encountered: