=== Bundsgaard Dashboard ===
Contributors: aabunds
Tags: woocommerce, inventory, stock, goods receipt, barcode
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 0.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A simple WooCommerce dashboard for receiving incoming stock by SKU, EAN or barcode and keeping a receipt history.

== Description ==

Bundsgaard Dashboard adds a straightforward goods receipt workflow to WooCommerce.

It is intended for stores that need to register incoming stock without implementing a complete warehouse management system.

With Goods Receipt you can:

* Search or scan products by SKU, WooCommerce global unique ID / EAN, or supported barcode metadata.
* Search by product name when an exact identifier is not available.
* See the current WooCommerce stock quantity.
* Enter a positive quantity received.
* Increase WooCommerce stock using WooCommerce stock functions.
* Add an optional delivery note, invoice number, or other reference.
* Add an optional note.
* Keep a receipt history with date, product, quantity, stock before and after, user, and reference.
* See simple receipt statistics on the dashboard.

The plugin intentionally does not manage warehouse bins, locations, purchase orders, suppliers, or cost prices.

Bundsgaard Dashboard does not require a Bundsgaard account or license key and does not send store data to a Bundsgaard service.

= WooCommerce stock =

Bundsgaard Dashboard updates the existing WooCommerce stock quantity. Stock management must be enabled for the product before goods can be received.

= EAN and barcode lookup =

The product lookup is compatible with the identifiers used by the current Bundsgaard warehouse development model. It supports WooCommerce SKU, `_global_unique_id`, and `_zettle_barcode` when those values are present.

= Future integrations =

Goods receipt records use a movement structure designed for future integration with other Bundsgaard inventory modules. Bundsgaard Dashboard remains independent and does not require a warehouse plugin.

== Installation ==

1. Install and activate WooCommerce.
2. Install and activate Bundsgaard Dashboard.
3. Open "Bundsgaard" in the WordPress administration menu.
4. Open "Goods Receipt".
5. Search for a product and register the received quantity.

== Frequently Asked Questions ==

= Does this replace WooCommerce stock management? =

No. It uses WooCommerce's existing stock management and increases the product's WooCommerce stock when goods are received.

= Does it support warehouse bins or locations? =

No. This plugin intentionally provides simple goods receipt without bin or warehouse-location management.

= Can I search by SKU? =

Yes.

= Can I search by EAN or barcode? =

Yes. The plugin checks the WooCommerce global unique ID field and can also read `_zettle_barcode` when present.

= Can I use it for product variations? =

Yes. Receipts record the parent product ID and variation ID separately.

= What happens if stock management is disabled? =

The product can be found, but goods cannot be received until WooCommerce stock management is enabled for that product.

= Does the plugin send data to Bundsgaard? =

No. Version 0.2.0 does not send store data to an external Bundsgaard service.

== Screenshots ==

1. Bundsgaard Dashboard with daily receipt statistics.
2. Goods Receipt product search.
3. Goods Receipt form with current stock, quantity and reference.
4. Receipt History with stock before and after each receipt.

== Changelog ==

= 0.2.1 =

* Added nonce verification to Goods Receipt GET requests and result notices.
* Added translator context for formatted receipt messages.
* Reworked product lookup to use WordPress/WooCommerce APIs instead of direct product database queries.
* Improved custom movement-table queries with identifier placeholders and object caching.
* Added documented PHPCS exceptions for direct access to the plugin-owned movement table.

= 0.2.0 =

* Rebuilt Goods Receipt around the existing WooCommerce stock model.
* Aligned receipt movement fields with the current Bundsgaard warehouse development model.
* Added SKU, EAN / global unique ID, Zettle barcode and product-name search.
* Added receipt reference and note.
* Added parent product and variation ID handling.
* Added WooCommerce stock before and after logging.
* Added extensibility events for future Bundsgaard integrations.
* Added dashboard statistics and receipt history.
* Removed any dependency on a separate Bundsgaard Core plugin.

== Upgrade Notice ==

= 0.2.0 =

Development release of the standalone Bundsgaard Dashboard and Goods Receipt workflow.
