=== Nexus Sales Tax Reports ===
Contributors: nexustaxreports
Tags: sales tax, economic nexus, woocommerce, tax report, csv
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Track US economic nexus thresholds per state and export sales tax summaries from your existing WooCommerce orders.

== Description ==

Nexus Sales Tax Reports helps US WooCommerce stores see where they are getting close to a state's economic nexus threshold and prepares a per-state sales tax summary from the order data you already have. It never calculates tax and never changes orders — it only reads stored shipping states, order totals, collected tax and refunds.

**Important:** this plugin is a reporting tool, not tax, legal or accounting advice. Thresholds and rules change and differ by state. Always confirm values with each state's tax authority or a tax professional.

= Nexus dashboard =

* All 50 states plus the District of Columbia with year-to-date sales and order counts.
* Sales and transaction thresholds per state (leave empty to ignore a criterion).
* Progress bars: amber at 70%, red at 100% of the threshold.
* States without a statewide sales tax (Alaska, Delaware, Montana, New Hampshire, Oregon) are shown as "Not applicable".
* Mark states where you are already registered.
* Prefilled reference defaults: $100,000 in most states, $500,000 for California, Texas and New York, $250,000 for Alabama and Mississippi. Transaction-count tests are not prefilled. Every value is editable, and the date the defaults were last reviewed is shown on screen.

= Sales tax summary =

* Choose a month, quarter or year.
* Per state: orders, gross sales, taxable sales, tax collected, refunds, tax refunded, net taxable sales and net tax, with a totals row.
* One-click CSV export.

= Settings =

* Choose which order statuses count (Completed and Processing by default).
* Choose gross sales or sales net of refunds as the nexus basis.

= Compatible with large stores =

Orders are read with `wc_get_orders()` in batches, and the plugin declares compatibility with WooCommerce High-Performance Order Storage (HPOS).

The Pro version adds daily email alerts when a state approaches (at a percentage you choose) or exceeds a threshold, sent only once per event; a per-state measurement period (current calendar year, previous calendar year or rolling 12 months); a filing detail report by tax rate broken down into state, county, city and district lines with partial refunds; a monthly CSV report emailed automatically; and cached aggregation for stores with many orders.

== Installation ==

1. Install and activate WooCommerce.
2. Upload the `nexus-sales-tax-reports` folder to `/wp-content/plugins/`, or install the plugin from the Plugins screen.
3. Activate the plugin.
4. Go to WooCommerce > Sales Tax Nexus. Review the thresholds on the Settings tab and mark the states where you are registered.

== Frequently Asked Questions ==

= Does this plugin calculate or collect sales tax? =

No. It only reads the totals, taxes and refunds already stored on your WooCommerce orders. Use WooCommerce tax settings or a tax service to calculate tax.

= Is this tax advice? =

No. The default thresholds are provided for reference only. Confirm the current rules with each state's tax authority or a qualified tax professional.

= Which address is used? =

The shipping state of the order. When an order has no shipping address, the billing state is used. Only US addresses are counted.

= Which orders are counted? =

Orders with the statuses you choose on the Settings tab (Completed and Processing by default). Refunds are applied to the period of the original order.

= Does it work with HPOS? =

Yes. The plugin uses WooCommerce order APIs only and declares HPOS compatibility.

= Does the plugin contact any external service? =

No. All data stays in your WordPress database.

== Screenshots ==

1. Nexus dashboard: sales per state against each threshold, with approaching and exceeded states highlighted.
2. Sales tax summary per state for a month, quarter or year, with refunds netted out and CSV export.
3. Settings: order statuses, nexus basis and editable thresholds per state.

== Changelog ==

= 1.0.1 =
* New York and Connecticut: progress requires both the sales and the transaction test.
* Clarified that transaction-count tests are not prefilled.

= 1.0.0 =
* Initial release.
