awesomemotive / easy-digital-downloads

Sell digital downloads through WordPress
https://easydigitaldownloads.com
GNU General Public License v2.0
867 stars 471 forks source link

3.0 - Country-wide tax rates are confusing. #6037

Closed mintplugins closed 4 years ago

mintplugins commented 7 years ago

Which tax rate gets used in this scenario?

screen shot 2017-09-27 at 3 38 13 pm

Can we make the UI better for this in any way?

mintplugins commented 7 years ago

It will use the last entered rate (in this case 12%). But that isn't clear at first glance. Perhaps this could be improved upon.

cklosowski commented 7 years ago

This is similar to an issue I already opened about the tax settings responisveness. Maybe close mine as a dip and include responsiveness In this one?

On Sep 27, 2017 7:06 PM, "Phil Johnston" notifications@github.com wrote:

It will use the last entered rate (in this case 12%). But that isn't clear at first glance. Perhaps this could be improved upon.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/easydigitaldownloads/easy-digital-downloads/issues/6037#issuecomment-332680397, or mute the thread https://github.com/notifications/unsubscribe-auth/ABU2LDZYc0RzyjA7622OZ95qIKiuTLVbks5smtTogaJpZM4Pmfiu .

mintplugins commented 5 years ago

@spencerfinnell What are your thoughts on doing something about this alongside https://github.com/easydigitaldownloads/easy-digital-downloads/issues/7109

The same confusion still exists with the current tax system in EDD3. Both of these tax rates are set to "Apply to whole country"

Screen Shot 2019-04-17 at 5 04 58 PM
spencerfinnell commented 5 years ago

It should be pretty easy to determine if a country-wide rate exists now and stop the addition of another, and alert the user of its existence and to deactivate and add again if needed.

mintplugins commented 5 years ago

That sounds like a good flow to me

cklosowski commented 5 years ago

I would agree here, however I think we might run into some issues during the migration? What happens if we have two tax rates that are defined both to apply to the whole country...wouldn't we want to 'deactivate' one of them upon migration? If we detect that the country wide tax rate being inserted upon migration will override a previous one, we should deactivate the previous one when we insert this new one (assuming the iteration works in the same order)

I would agree we need some sort of UI to prevent the confusion state.

spencerfinnell commented 5 years ago

@cklosowski Yes, any country-wide rate that's added during migration should be able to safely deactivate any existing country-wide rate as long as the iteration order is correct. Then the 3.0 UI will reflect what has been used in their Checkout accurately, and a new check during rate addition can be added to prevent further duplicates/ensure the UI remains accurate.

spencerfinnell commented 4 years ago

PR #7575 prevents multiple country wide rates from being added via the UI:

Screen Shot 2020-02-10 at 2 10 41 PM

Automatic deactivation on migration needs to be addressed separately.

cklosowski commented 4 years ago

@spencerfinnell I’ve created #7602 to handle the migration aspect of this.