How does the tax credit for discounts work?

The credit taxes option should be enabled if you want to ensure tax payments are credited when processing early payment discounts. This option is selected by default. If not selected, taxes will not be credited when early payment discounts are processed.