medusajs / medusa

Building blocks for digital commerce
https://medusajs.com
MIT License
23.82k stars 2.3k forks source link

Can't setup 9.975% tax rate - Québec Sales Tax (QST) #5048

Open alexdx-ca opened 10 months ago

alexdx-ca commented 10 months ago

Bug report

Describe the bug

I can't setup Québec Sales Tax (QST). Because it's value is 9.975% But Medusa is asking me 9.97% or 9.98%.

System information

Medusa version: 1.3.20 Node.js version: Database: PostgreSQL 15.4 Operating system: macOS 12.6.1 Browser (if relevant): Firefox

Steps to reproduce the behavior

  1. Go to http://localhost:7001/a/settings
  2. Click on Taxes.
  3. Click on "+ New Tax Rate" button.
  4. Enter name, tax rate (9.975) and tax code.
  5. Click "Create" and see error.

Expected behavior

Tax rate field have to accept more than 2 decimal places.

Screenshot

Screen Shot 2023-09-13 at 6 04 12 PM
pevey commented 9 months ago

Just adding info that this is not a limitation on the database. I can manually add a tax rate with high specificity. It might be just a matter of the admin app validators.

Have you tried adding the rate via the medusa API? If it works, that or adding to the database directly could be a workaround until this is fixed.