=== Visma for WooCommerce ===

Contributors: Wetail
Plugin Name: Visma for WooCommerce
Plugin URI: wp-plugs.com
Tags: WooCommerce, Order, E-Commerce, Accounting, sync, Visma, Customers, Integration,
Author URI: wetail.com
Author: Wetail
Requires at least: 5.0
Tested up to: 7.0
Stable tag: 2.6.0
Version: 2.6.0
License: GPLv2 or later


== Komplett integration mellan WooCommerce och Visma eEkonomi ==

Professionell integration som automatiserar hela flödet från webshop till bokföring. Synkronisera ordrar, kunder, produkter och hantera fakturering och returer automatiskt.


== Description ==

**Visma for WooCommerce** är den mest omfattande integrationen mellan WooCommerce och Visma eEkonomi. Pluginet automatiserar hela flödet från webshop till bokföring och sparar dig värdefull tid genom att eliminera manuellt dubbelarbete.

Komplett integration för WooCommerce och Visma eEkonomi.

= Features =

**Automatisk Ordersynkronisering**
* Synkronisera ordrar automatiskt baserat på orderstatus
* Två synkroniseringsflöden: Skapa ordrar eller bokföringsverifikationer
* Automatisk konvertering av ordrar till fakturor (Val)
* Stöd för sekventiella ordernummer

**Komplett Kundhantering**
* Automatisk synkronisering av kunddata vid ordersynkronisering
* Stöd för både privatpersoner och företag
* Organisationsnummerfält i kassan (valfritt obligatoriskt)
* Intelligent kundidentifiering via organisationsnummer eller e-post

**Produktsynkronisering**
* Synkronisera produkter automatiskt eller manuellt
* Stöd för variationer och variabla produkter
* Automatisk SKU-generering om saknas

**Avancerad Fakturahantering**
* Automatisk konvertering av ordrar till fakturor (Val)
* Automatisk betalningsregistrering
* Ladda ner PDF-fakturor direkt från WooCommerce
* Konfigurerbart betalvillkor per betalsätt

**Returhantering**
* Automatisk hantering av fullständiga returer
* Stöd för partiella returer
* Kreditfakturor för fakturerade ordrar
* Automatisk kreditering av bokföringsverifikationer

**Bokföringsautomation**
* Artikelkonteringar per momssats och land
* Automatisk momshantering (25%, 12%, 6%)
* Stöd för Sverige, EU och övriga världen
* Valutakonvertering till SEK
* Flexibel kontomappning per betalsätt

= Internationellt Stöd =

* Fullständigt stöd för EU-handel med korrekt momshantering
* Automatisk valutakonvertering
* Stöd för EU-tredjepartstransaktioner
* Konfigurerbara bokföringskonton per region
* Automatisk momsbefriad hantering för giltiga VAT-nummer

= Avancerade Funktioner =

**Massåtgärder**
* Synkronisera flera produkter till Visma eEkonomi  samtidigt
* Synkronisera ordrar till Visma eEkonomi samtidigt

**Flexibel Konfiguration**
* Sandbox-stöd för testning(Kräver att ni har en Sandbox hos Visma)
* Detaljerad loggning för felsökning
* Anpassningsbara inställningar per betalsätt

**Integration & Kompatibilitet**
* WooCommerce HPOS-kompatibel
* Stöd för WooCommerce Subscriptions
* Kompatibel med populära betalnings-plugins

= Rapporter & Övervakning =

* Detaljerade ordernoteringar för spårbarhet
* Felhantering med informativa meddelanden
* Administrationsvarningar för konfigurationsproblem

=  Professionell Support =

* Omfattande dokumentation
* Dedikerad support från Wetail
* Regelbundna uppdateringar
* Kompatibilitetstester med nya WooCommerce-versioner

= Requirements =

* WordPress 5.0 eller senare
* WooCommerce 4.0 eller senare
* PHP 7.4 eller senare
* Aktivt Visma eEkonomi-konto
* SSL-certifikat


= Installationsguide =

Följ vår detaljerade [installationsguide](https://docs.wetail.io/woocommerce-visma-integration/visma-installationsguide/) för att komma igång.


= Data som synkroniseras =

* **Ordrar**: Fullständig orderdata inklusive produkter, priser, moms och frakt
* **Kunder**: Kontaktinformation, adresser, företagsuppgifter
* **Produkter**: Artikeldata, priser, lager, SKU, variationer
* **Fakturor**: Automatisk fakturahantering och PDF-generering
* **Returer**: Kreditfakturor och returhantering
* **Betalningar**: Automatisk betalningsregistrering
* **Bokföringsdata**: Verifikationer, konteringar, momshantering

== Screenshots ==

1. General

2. Sync settings

3. Shipping settings

4. Product settings

5. Order view

== Changelog ==
= 2.6.0 =
* Feature: Adds ability to enable showing invoices on My Account under "Orders" and optionally restrict visibility by selected payment methods
* Feature: Improved onboarding and communication in plugin UI
* Fix: updated local auth token TTL from 57 minutes to 55 minutes, https://app.clickup.com/t/869aa0ewf

= 2.5.1 =
* Fix: ensure price field in payloads send to Visma are correctly formatted, https://app.clickup.com/t/8697ye9g0

= 2.5.0 =
* Enhancement,  updated the way customers are fetched from Visma, search by org-no then by email. Removed related obsolete setting.
* UI/UX improvement: settings sync tab now hides unnecessary options depending on chosen sync type https://app.clickup.com/t/8697nk9zd

= 2.4.1 =
* Bugfix: Issue with setting that control unique customer identifier corrected
* Bugfix: Correction of automatic order synchronization.

= 2.4.0 =
* Feature: Added support for choosing article coding manually. This in turn added new settings on Accounting tab. Client can choose articlecoding per VAT percentage and country.
* Optimization: Visma settings are only loaded on needed pages in admin to improve performance
* Feature: WooCommerce order notes from customer is added to order in Visma
* Optimization: Visma customer references are stored in its own database table. Previously it was stored in options table
* Bugfix: Wrongful refund sync on manual order synchronization has been corrected

= 2.3.5 =
* Bugfix: Fetching customer does not return false if an error is thrown, the error is thrown instead
* Feature: Pricefilters are removed before syncing product to Visma
* Enhancement: Introduced support for forcing voucher creation during the sync process.
* Bugfix: Corrected database version comparison logic for migrations.
* Feature: Implemented automatic delay for order synchronization using Action Scheduler.
* Improvement: Fixed formatting issues in the Makefile.
* Bugfix: Fetching customer does not return false if an error is thrown, the error is thrown instead
* Bugfix: Fixed handling of description length in the sanitize_description function.
* Feature: Pricefilters are removed before syncing product to Visma
* Fix: Adapted invoice conversion payload
= 2.3.4 =
* Bugfix: AccessToken expiry time is lowered to avoid getting invalid grant errors that can lead to customer duplicates due to errorhandling
* Bugfix: Corrected refund process

= 2.3.2 =
* Bugfix: Shipping Address fix
* Bugfix: Default settings are not working

= 2.3.1 =
* Feature: Supports nonexisting products i WooCommerce
* Bugfix: Organisation number fix on Visma Customer object
* Bugfix: Billing addresss is now default on Visma Customer object

= 2.3.0 =
* Feature: Visma invoice PDF is downloadable from order view
* Feature: Setting for not updating customer on order sync
* Feature: Order your reference is set to order billing customer
* Bugfix: Order deliveryname  is set to order billing customer when customer is a company
* Bugfix: Floating point issue is fixed
= 2.2.7 =
* Feature: support for WooCommerce HPOS
= 2.2.6 =
* Bugfix: Corrections on fetching Visma units and Article Account Codings
* Bugfix: Decimals on order row discount percentage is updated to 4 decimals
* Bugfix: UI cache is saved in correct directory
= 2.2.5 =
* Bugfix: Corrections on fetching Visma units and Article Account Codings
* Bugfix: Extended support for Norway
= 2.2.4 =
* Changed endpoints for fetching Visma units and Article Account Codings
= 2.2.3 =
* Bugfix: Currency conversion service changed
= 2.2.2 =
* Bugfixes
= 2.2.1 =
* Feature: support for refunds
= 2.1.8 =
* License check fix
= 2.1.7 =
* Feature: Added support for currencies AUD, CAD
= 2.1.6 =
* Fix: New currency API
= 2.1.5 =
* Feature: Prevents duplicate voucher to be created
* Bugfix: Prevent multiple shipping products from being created
= 2.1.4 =
* Feature: Support for Visma stock module
* Feature: Support for multiple units
* Fix: Removal of guzzle
= 2.1.1 =
* Bugfix: Settings validator showed an error message when all settings were valid.
= 2.1.0 =
* Vat rounding correction
* Settings validation correction
* Country selection fallback for vouchers
* Meta field exclusion when duplicating a product
= 2.0.5 =
* Fix: License SSL issue fix
= 2.0.4 =
* Fix: for virtual orders
= 2.0.3 =
* Fix: PHP 8.0 compatability
= 2.0.2 =
License check update
= 2.0.1 =
* BUGFIX: free shipping on ordersync

= 2.0 =
* Fix: All ENABLED payment methods appear in the plugin settings now, regardless if they are considered active or not.
* Change: Added migration script for license key setting
* New feature: It is now possible to synchronize orders in bulk.
* New feature: It is now possible to convert synchronized orders to invoices.
* New feature: It is now possible to set invoices as paid.
* Enhancement: The UI for the settings has been reworked.
    - Better descriptions in admin interface.
    - Visualized and described the 2 synchronization modes better.
    - Improved error handling and descriptions.
    - Hide accounting settings depending on sync option.
    - Improved plugin copy.
* Enhancement: Removed Guzzle dependency.
* BUGFIX: The organization number field was marked as mandatory in the backend but not in the frontend.
* BUGFIX: Corrected link in support button.


= 1.33 =
* BUGFIX: Return types void caused a crash

= 1.32 =
* BUGFIX: VAT

= 1.30 =
* Visma Product IDs are now visible and editable in product view
* BUGFIX: Removal of unused action

= 1.21 =
* BUGFIX: Fix VAT for EU fees

= 1.20 =
* FIX: Fix for administrators with multiple companies in e-Ekonomi

= 1.19 =
* BUGFIX: Bugfix for fetching single articles that affected product sync and thus order sync

= 1.15 =
* BUGFIX: Bugfix for custom ordernumbers

= 1.13 =
* BUGFIX: Too many decimals in products

= 1.12 =
* Truncate product name if over 50
* BUGFIX: Too many decimals in vouchers totals
* BUGFIX: Discount calculation

= 1.10 =
* BUGFIX: Too many decimals in vouchers
* BUGFIX: Fee handling


= 1.07 =
* BUGFIX: Too many decimals on NetPrice

= 1.06 =

*	BUGFIX: Discount percentage fix
= 1.04 =

*	BUGFIX: Too many decimals on UnitPrice
= 1.03 =

*	Better support for custom shipping methods

= 1.01 =

*	BUG: Product syncronization fixed when Visma Article ID is missing
*   Fixer API handling updated
