crater icon indicating copy to clipboard operation
crater copied to clipboard

Can't add the same currency provider twice

Open noxtras opened this issue 2 years ago • 0 comments

Describe the bug I've created a new company and tried to add the same currency provider as for company 1. It doesn't work. I've added the item directly from the DB, and it seems to work just fine, so there must be a check somewhere that trows the error 'currency_used'.

Expected behavior

  1. Adding the same provider with the same API key and currencies should work, but better still, all companies could use the same currency exchange provider.. I don't know why you separated them, or why would someone use one for a few currencies and another for other currencies, they should have the same exact exchange rates. Maybe a company could use the official exchange rate but add a custom % on top of it? That makes more sense.

Please complete the following information:

  • Crater version: 6.0.6
  • PHP version: 8
  • Database type and version: mariadb latest stable

noxtras avatar Sep 07 '22 08:09 noxtras