=== Restaurant Costing ===
Contributors: Steve Vogelaar, IT Oversight
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.2
Stable tag: 0.4.3
License: GPLv2 or later

Restaurant meal/drink costing, margins, and profit/loss tracking (metric).

== Description ==

= Ingredients =

- Database-driven food master with 700+ pre-loaded ingredients from FoodMaster CSV.
- Sortable, filterable, paginated list (food type, supplier, is_recipe status).
- Inline add/edit modal with autocomplete from existing ingredients.
- Type and supplier fields use normalized database tables with combo-box + inline create.
- Sub-recipe ingredients blocked from direct editing (managed via Recipes).
- Automatic name normalization and duplicate detection.
- CSV re-import and export.
- Template CSV download for bulk additions.

= Recipes =

- Two-column recipe builder with live cost/nutrition calculation.
- Ingredient autocomplete with unit and density hints.
- Scaled recipe support (multiply all quantities by a factor).
- Duplicate name prevention on save.
- Sub-recipe mirroring — recipes flagged as ingredients for nested costing.
- Labour tracking per recipe (labour rate, itemised prep time).
- Sortable, paginated recipe list with search.
- Print-ready recipe sheets (scalable, with method, nutrition, labour breakdown).
- Copy existing recipe as a starting point.
- Active/inactive toggle — hide recipes from lists without deleting.
- Individual recipe deletion.

= Suppliers =

- Full supplier directory (business name, address, phone, email, contact person).
- Inline add/edit modal.
- Sortable, filterable, paginated list.
- CSV export.

= Inventory =

- Mobile-optimised entry screen with area-grouped collapsible sections.
- Min Level, Order Qty, hide subrecipes, hide empty rows.
- One-time items for manual additions. Auto-named on creation.
- Dashboard list with Edit / Delete / Print / Order actions.
- 8.5x11 print grouped by area, 2-column layout, hide empty rows.
- Order modal: supplier-grouped, Order by Email button, resend prompt.
- Print Remaining prints unemailed items only.
- Emailed items flagged and highlighted green.

= Areas =

- Custom sortable areas for inventory organisation.
- Add/edit/delete areas with move up/down reordering.

= Suppliers =

- Full directory with business name, address, phone, email, contact person.
- Inline add/edit modal with Email Order checkbox.
- Sortable, filterable, paginated list + CSV export.

= Settings & Tools =

- Database backup and restore.
- Import reference column guide.
- View plugin details and changelog inline.

== Installation ==

1. Upload the `restaurant-costing` folder to `wp-content/plugins/`.
2. Activate **Restaurant Costing** in WordPress admin.
3. On activation, `data/foodmaster.csv` is imported (~733 ingredients).
4. Open **Restaurant Costing → Ingredients** to verify or re-import.
