Units
The Units module defines measurement units for ingredients. Each unit has:
- Unit Name - Display name (e.g., "Kilogram", "Gram", "Piece")
- Code - Short code (e.g., "KG", "G", "PCS")
- Base Unit - Optional parent unit (e.g., Gram's base unit is Kilogram)
- Operator - "multiply" or "divide" conversion direction
- Factor - Conversion factor (e.g., 0.001 for Gram to Kg)
Example: If you define "Gram" with base unit "Kilogram", operator "multiply", and factor "0.001", then 500 Gram = 0.5 Kilogram. This conversion is used automatically when calculating recipe costs and stock movements.
Units support CRUD operations, status toggle, search/filter, bulk delete, and export.

