openfoodnetwork
openfoodnetwork copied to clipboard
Enterprise fee calculator: Allow to enter calculator settings immediately (without saving/reloading the page first)
Description
- As a: enterprise user or super admin
- On page: /admin/enterprise_fees
- I want to be able to do: currently you need to save to see the calculator fields, the idea here is to removing that additional saving step:
- Enter information and select the calculator (the UI automatically shows the relevant fields for that calculator)
- Enter the calculator settings
- Save the page just once
Acceptance Criteria & Tests
- Login as enterprise admin
- Create fees at
/admin/enterprise_fees
- Add a calculator, see the correct field is display to enter the calculator's value
- You only need to save once
Test with all calculators Repeat all with payment method Repeat all as super admin