=== Pinzell Estancia – Tourist Tax Calculator for Booking Engines ===
Contributors: rgcglobalnet
Tags: tourist tax, city tax, woocommerce, hotel booking, accommodation
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Tourist tax per person and night from dated official rates: Catalonia, Galicia, Lisbon, Rome, Berlin. WooCommerce and MotoPress ready.

== Description ==

Pinzell Estancia calculates the **tourist tax** (impuesto sobre estancias turísticas, taxa turística, imposta di soggiorno, taxe de séjour) of a stay from **rate tables that come from official sources**. Every rule set shows its source, the date it was checked and its exemptions. It makes **no remote request** and needs no account.

**It is an estimate, not tax or legal advice.** Rates change by law or by decree; check the amount with your tax office before you rely on it. Where the plugin could not confirm a rate on the official source, the rule set is marked "needs confirmation" and is **off by default**. The plugin never guesses a rate: if the official source has no rate for a night, the result says so and is flagged as incomplete.

= Rule sets included (checked 28-11-2026) =

* **Catalonia – IEET** (in force from 1-4-2026): Barcelona with its municipal surcharge, the rest of Catalonia, the municipalities with a surcharge from 1-10-2026 (Castelldefels, L'Hospitalet, Sabadell, Sant Cugat, El Prat, Sant Just Desvern) and the special tariff. Maximum 7 nights; under 17 exempt; the rate in force on the booking date when everything is paid then.
* **Galicia**: the regional tax with its 100 % bonification, plus the municipal surcharge of Santiago de Compostela, A Coruña and Vigo. Maximum 5 nights.
* **Portugal**: Lisbon and Porto. **Italy**: Rome (the latest official table found, 2023). **Croatia**: Dubrovnik (2026). **Germany**: Berlin (7.5 % of the net price).
* **Templates** where you type the rate of your town: France (with the legal 2026 minimum and maximum per category), Italy, Portugal, Croatia, Germany and Spain.

= What it does =

* **WooCommerce.** Tick "Accommodation" on a product and the tourist tax is added to the cart as one fee (EUR stores). The calculation is saved with the order. Compatible with HPOS and with the Cart and Checkout blocks.
* **MotoPress Hotel Booking.** A "tourist tax, payable at the property" line in the price breakdown, or added to the booking total.
* **Shortcode `[pinzell_estancia]`** (a plain form, no JavaScript): arrival, departure, guests and ages; shows the amount, the calculation and the sources.
* **REST API** `/wp-json/pinzell-estancia/v1/calculate` and a PHP function `pinzell_estancia_calculate()` for any other booking engine.
* **ParteFácil.** If the ParteFácil plugin is active, a screen lists its bookings with the tax of each.
* Exemptions by age and by reason, nights cap, age discounts, seasonal rates, percentage rules.
* **Tourist registration code** field (text only): printed with the calculation and saved with each order. It is not checked against any register.
* Languages: English, Español, Català, Italiano and Português.

= What it does not do =

It does not file or pay the tax, does not check your registration with any authority, and does not include the official filing format of any tax office. Pinzell Estancia Pro has a period report as a working paper for your accounts.

= Free vs Pro =

| Feature | Free | Pro |
| --- | --- | --- |
| All bundled rule sets with sources, one destination per site | Yes | Yes |
| WooCommerce fee, MotoPress line, shortcode, REST | Yes | Yes |
| Several destinations: one per product or per ParteFácil establishment | – | Yes |
| Guest ages from ParteFácil (exempt minors drop out) | – | Yes |
| Period report with CSV export (Catalan semesters, quarters, months) | – | Yes |
| Import your own rule sets (JSON) | – | Yes |

Pinzell Estancia Pro is sold separately at https://rgcglobalnet.com/pinzell-estancia/. Everything listed as Free is complete and has no time limit.

= External services =

The plugin does not connect to any external service. The links to the official sources are shown to the visitor and are only opened if someone clicks them.

Pinzell Estancia is independent: it is not made, endorsed or supported by any tax authority or tourist board. Pinzell is a product line of RGC GLOBAL NET SERVICES SLU (Spain).

== Installation ==

1. Install and activate the plugin.
2. Go to Settings → Pinzell Estancia, choose your destination and type of accommodation, and (optionally) your tourist registration code.
3. WooCommerce: tick "Accommodation" in the General tab of the product. MotoPress: choose the mode in the settings. Anyone: add `[pinzell_estancia]` to a page.

== Frequently Asked Questions ==

= Are the rates correct? =

They were taken from the official page or text named in each rule set, on the date shown. They are not tax advice and the law can change. The list of sources, with the check dates, is in the plugin and in `docs/DATA_SOURCES.md` of the repository.

= My town is not in the list. =

Use the template of your country and type the rate that your municipality publishes. Pro can import a full rule set as JSON.

= Why is a rule set missing from the list? =

Rule sets that could not be confirmed on the official source are hidden. You can show them in the settings, at your own risk.

= Does it work with WooCommerce Bookings, HBook or other engines? =

WooCommerce Bookings dates are read from the cart (tested with simulated data only). HBook has no adapter yet: use the shortcode or the REST route.

= Does it store personal data? =

No. Only the calculation (dates, number of guests and ages, amounts) is saved on the order.

== Screenshots ==

1. Settings: destination, accommodation type and booking engines.
2. The calculator shortcode with the amount, the calculation and the official sources.
3. Pro: the period report (Pinzell Estancia Pro).

== Changelog ==

= 1.0.0 =
* First release.

== Upgrade Notice ==

= 1.0.0 =
First release.
