# Updates, VAT rates and the SGR deposit

## Setări → Actualizări

**Setări → Actualizări** (Settings → Updates) shows the SyncSHOP version installed, the newest version the shop's
licence may install, the newest version released, and until when updates are included. The shop asks the package
server once a day (the scheduled task *Verificarea actualizărilor SyncSHOP*), sending only the licence key and the
installed version; **Verifică acum** asks again. The page needs *Manages settings*.

- **A newer version** can be installed from this page: the shop's owner types their password and the code from their
  authenticator app and presses **Actualizează acum**. The update runs on the server in the background (the same as
  `php artisan syncshop:update`, which still works): it checks what would change, backs up the database and the
  project files, updates, migrates and checks the shop, and rolls back on its own if anything fails. **Ultima
  actualizare** shows who started it, its steps and how it ended; the page reloads by itself while it runs. Only one
  update runs at a time. A version that fixes a security problem is marked as such.
- **Updates ended** (a licence whose included year, or subscription, is over): the shop keeps running on its version;
  newer versions can be installed after renewing.
- **Extensions** lists each installed extension and whether it accepts the version on offer. One that does not stops
  the update before anything changes.
- **Licență** holds the licence key from the SyncSHOP offer. Saving it asks for your password again; once saved it is
  never shown, only replaced or removed.

## Legal data received automatically

With the updates subscription, VAT rates and the SGR deposit arrive by themselves, signed by SyncSHOP (the scheduled
task *Datele legale actualizate*, hourly). A new value is added with the date it applies from; a value already in force
is never changed by a feed. The table on the Updates page shows each one's version and state. When the subscription
ends, the page and the dashboard say so, and the values are changed by hand:

- **Setări → Cote TVA** (VAT rates) lists each VAT class with its dated rates and marks the one in force. Add a new
  rate from today or a later day; earlier days keep their rate, so past orders and invoices never change.
- **Setări → Garanție SGR** (SGR deposit) lists the dated deposit per container and adds a new one from today or a
  later day. Without a dated value the shop's default (0,50 lei) applies.
