=== ood.bg for WooCommerce ===
Contributors: dobgltd
Tags: invoicing, stock, bulgaria, warehouse, erp
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Requires Plugins: woocommerce
WC requires at least: 9.2
WC tested up to: 11.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connects a WooCommerce shop to ood.bg, the Bulgarian invoicing and stock platform: goods, prices and stock of an ood.bg warehouse come into the shop; orders go back as warehouse sales.

== Description ==

* **Catalogue from ood.bg.** The goods of one ood.bg warehouse, their groups, prices (with the warehouse's price list and deviation) and promo prices (a price list you choose) come into the shop — only after you confirm them in „Products from ood.bg“. Existing shop products are matched by SKU or GTIN; only empty titles, descriptions and images are filled, prices follow ood.bg, products with no match are never changed.
* **Stock always follows ood.bg**: the warehouse's stock minus the orders not yet delivered.
* **Orders to ood.bg.** An accepted order becomes a draft sale in the warehouse. When the delivery is confirmed — in the shop (order „Completed“) or in ood.bg (the sale posted) — the sale is posted and a стокова разписка is made. A cancellation before delivery deletes the draft; a cancellation or restocked refund after delivery returns the goods with a claim.
* **Invoice to a company** at checkout: company name, ЕИК, ДДС №, МОЛ and address; the buyer becomes a company partner in ood.bg.
* Bulgarian and English. Compatible with WooCommerce's order storage (HPOS) and block checkout.

= External service =

This plugin connects to **ood.bg** (https://new.ood.bg, operated by „ДО БГ“ ЕООД) through its REST API with your company's API key: it reads goods, groups, price lists, warehouses and stock, and sends partners and warehouse movements for your orders. An API key is available on the ood.bg Бизнес and Про plans. Terms: https://ood.bg/terms · Privacy: https://ood.bg/privacy. The plugin also checks https://ood.bg/plugins/woocommerce/latest.json twice a day for updates.

= Fiscal receipts =

Card and cash-on-delivery payments online fall under the fiscal-receipt rules of Наредба Н-18. A стокова разписка, a proforma or an invoice does not replace a fiscal receipt; this plugin does not issue fiscal receipts.

== Installation ==

1. In ood.bg: Profile → API keys → create a key with the rights goods: view; warehouse: view, create, post; partners: view, create; documents: create, issue.
2. In WordPress: Plugins → Add New → Upload Plugin → the zip from https://ood.bg/plugins → Activate.
3. WooCommerce → ood.bg → Settings: paste the key, „Test the connection“, choose the shop's warehouse, save.
4. „Products from ood.bg“: review what was found and import it. „Categories“: map ood.bg groups to shop categories.

== Changelog ==

= 1.0.0 =
* First version: catalogue, prices, promo prices, stock, category mapping, orders as warehouse sales with стокова разписка, returns, company details at checkout, self-hosted updates.

Developed by DOBG LTD — https://dobg.eu
