=== AWC Cost Pricing and Purchase Orders for WooCommerce ===
Contributors: australianwebconnections
Tags: woocommerce, purchase orders, cost pricing, margin, inventory
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires Plugins: woocommerce

Add cost pricing tools and a full purchase order workflow to WooCommerce, including supplier management, receiving, assignment, and reporting.

Developed and maintained by MERCHANDISING & SERVICES LOGISTICS GROUP PTY LTD (ABN: 15 678 131 434), trading as Australian Web Connections.

== Description ==
AWC Cost Pricing and Purchase Orders for WooCommerce extends WooCommerce with two core capabilities:

1. Cost pricing and margin tools on products (including variations).
2. Purchase order management for sourcing, receiving, and allocation.

Key features include:

- Cost fields and tax mode controls for simple and variable products.
- Live profit and margin calculator in product edit screens.
- Purchase order creation and status tracking.
- Supplier management with editable supplier details.
- Add PO items by product search (name or SKU) with product image context.
- Receive stock and track assigned vs unassigned quantities.
- Link WooCommerce orders to purchase orders.
- Purchase order PDF export with configurable branding/logo.
- Analytics and margin reporting pages.
- Admin-only PO activity log for audit trails.

This plugin requires WooCommerce to be active.

== Installation ==
1. Upload the plugin folder to the /wp-content/plugins/ directory, or install via Plugins > Add New in WordPress.
2. Activate AWC Cost Pricing and Purchase Orders for WooCommerce.
3. Ensure WooCommerce is active.
4. Go to WooCommerce > Purchase Orders to manage suppliers and POs.
5. Edit products to add cost data and use margin calculations.

== Frequently Asked Questions ==
= Does this work with variable products? =
Yes. You can store cost pricing and tax mode data per variation.

= Can I search products by SKU when adding PO items? =
Yes. PO item search supports product name and SKU.

= Can I export a purchase order to PDF? =
Yes. Each purchase order can be exported, and you can set a custom logo in PO settings.

== Screenshots ==
1. Purchase Orders list page.
2. Purchase Order detail screen with item management.
3. Supplier modal for create/edit.
4. Product edit margin and cost tools.
5. PO analytics and margin report pages.

== Changelog ==
= 1.0.8 =
- Standardized plugin-owned identifiers and added upgrade migration support.

= 1.0.7 =
- Updated plugin metadata and translation domain for WordPress.org compatibility.

= 0.4.5 =
- Added PO item removal from draft purchase orders.
- Added admin-only PO change log with actor tracking.
- Improved linked order display in PO list.
- Added supplier create/edit workflow enhancements.
- Added settings support for custom PO PDF logo.
- Fixed currency rendering and cost fallback edge cases.

== Upgrade Notice ==
= 0.4.5 =
Recommended update for PO audit logging, removal controls, and reporting/display fixes.
