Skip to main content

Documentation Index

Fetch the complete documentation index at: https://help.mathership.com/llms.txt

Use this file to discover all available pages before exploring further.

Unit Conversions

Unit conversions define how ordered products are converted into ingredient stock. They are used when Mathership receives orders, updates inventory, calculates stock balances, creates inventory ledger entries, and calculates inventory value.

What unit conversions are used for

Use unit conversions when a product is ordered in one unit but inventory is tracked in another unit. Common examples:
  • A vendor product is ordered as a box, but stock is tracked in kilograms
  • Milk is ordered in packs, but inventory is tracked in liters
  • Bottles are ordered as cases, but stock is tracked as single bottles
  • A recipe uses grams, but the ingredient is stored in kilograms
  • POS sales reduce stock in smaller units than the purchasing unit

How unit conversions work

Mathership separates three concepts:
ConceptMeaning
Product unitThe unit or packaging used when ordering a product
Ingredient base unitThe unit used to track inventory for an ingredient
Conversion factorThe amount of ingredient stock created from one ordered product unit
Example:
Ordered productIngredientConversion
1 box tomatoesTomatoes10 kg
1 pack milkMilk10 L
1 case beerBeer bottle24 bottles
If you receive 2 boxes of tomatoes and one box equals 10 kg, Mathership creates a receipt of 20 kg.

Base units

Each ingredient has a base unit. The base unit is the main unit used for inventory balances, ledger entries, reports, and recipe usage. Examples:
IngredientBase unit
Flourkg
MilkL
Eggspcs
Ribeyekg
Winebottle
Choose the base unit carefully. Changing the base unit later can make old reports and stock movements harder to compare.

Product-to-ingredient conversion

Unit conversion is usually configured through product-to-ingredient mapping. A product mapping defines how a vendor product becomes an ingredient quantity.
FieldMeaning
Vendor productProduct ordered from the vendor
IngredientIngredient that receives stock
From unitUnit from the ordered product or packaging
To unitIngredient stock unit
FactorQuantity added to inventory per ordered product unit
Example:
Vendor productIngredientFactor
Tomato boxTomatoes10 kg
Milk packMilk10 L
Flour sackFlour25 kg

Conversion factor

The conversion factor tells Mathership how much ingredient stock one ordered product unit creates. Example:
Ordered quantityFactorInventory receipt
1 box10 kg10 kg
2 boxes10 kg20 kg
5 boxes10 kg50 kg
The calculation is: Received inventory quantity = Ordered quantity × Conversion factor

Packaging levels

Packaging levels describe nested product packaging. They are useful when a product has multiple layers. Example:
LevelQuantity per parentUnit
Box6Pack
Pack1kg
In this example, one box contains 6 packs, and each pack contains 1 kg. The total quantity per box is 6 kg.

Packaging example

A vendor sells flour as a box with 4 bags. Each bag contains 2.5 kg.
Packaging levelQuantity per parentUnit
Box4Bag
Bag2.5kg
Result:
Ordered productInventory quantity
1 box10 kg
2 boxes20 kg
3 boxes30 kg

Automatic factor calculation

Mathership can help calculate a conversion factor from packaging information. For example, if a product packaging says Box with 6 bottles of 0.75 L, Mathership can calculate:
ProductBase quantity
1 box4.5 L
If the mapped ingredient uses liters as the base unit, the factor becomes 4.5.
Automatic conversion depends on clear packaging information. Always review the calculated factor before using it for inventory.

AI-assisted packaging detection

Mathership can use AI-assisted packaging detection to interpret product packaging information. This helps when a vendor product contains packaging text such as:
Packaging textSuggested factor
6 x 0.75 L4.5 L
4 x 2.5 kg10 kg
24 bottles24 bottles
Mathership can use this information to create packaging levels and calculate a suggested conversion factor.
AI-assisted suggestions should always be reviewed before saving. Incorrect packaging text can lead to incorrect stock quantities.

From unit and to unit

A mapping can use a source unit and a target unit.
FieldMeaning
From unitUnit detected from the product packaging
To unitUnit used for the ingredient
FactorConverted quantity from product to ingredient
Example:
From unitTo unitConversion
gkg1000 g = 1 kg
mlL1000 ml = 1 L
kgkg1 kg = 1 kg
LL1 L = 1 L

Receiving orders

Unit conversions are used when receiving vendor orders into inventory. Example:
Ordered productOrdered quantityFactorLedger receipt
Tomato box210 kgRECEIPT +20 kg
Milk pack510 LRECEIPT +50 L
Flour sack125 kgRECEIPT +25 kg
If a product has no mapping, Mathership cannot correctly convert it into ingredient stock.
Products without a valid product-to-ingredient mapping cannot be received into inventory correctly.

Partial receiving

When receiving an order, the received quantity can differ from the ordered quantity. Example:
Ordered quantityReceived quantityFactorInventory receipt
10 boxes8 boxes10 kg80 kg
5 packs5 packs10 L50 L
6 cases4 cases24 bottles96 bottles
Mathership uses the received quantity for the inventory receipt.

Recipes and unit conversions

Recipes use ingredient quantities. The ingredient base unit should match how the ingredient is normally consumed. Example:
Recipe itemQuantity usedIngredient base unit
Ribeye steak0.3 kgkg
Tomato soup0.15 kgkg
Milk sauce0.2 LL
When a POS sale or recipe issue is posted, Mathership reduces stock using the ingredient unit.

POS usage

POS mappings can reduce inventory through recipes or direct ingredient mappings. Example:
POS itemRecipe usageInventory issue
Ribeye steak300 g ribeyeISSUE -0.3 kg
Tomato soup150 g tomatoesISSUE -0.15 kg
Cappuccino0.15 L milkISSUE -0.15 L
POS stock usage depends on correct recipe quantities, product mappings, and ingredient base units.

Inventory ledger impact

Unit conversions directly affect inventory ledger entries. When an order is received, the ledger stores the converted ingredient quantity. Example:
Ordered quantityConversion factorLedger quantity
2 boxes10 kg+20 kg
5 packs10 L+50 L
3 cases24 bottles+72 bottles
The ledger does not only store the vendor order quantity. It stores the converted stock movement in the ingredient unit.

Cost conversion

Costs are also affected by the conversion factor. If one ordered product costs €20 and creates 10 kg of stock, the unit cost is €2 per kg. Example:
Ordered product costFactorUnit cost
€20.00 per box10 kg€2.00/kg
€15.00 per pack5 L€3.00/L
€24.00 per case24 bottles€1.00/bottle
This unit cost is used for inventory value and weighted average cost.

Common workflows

Create a product mapping

  1. Go to InventoryIngredients
  2. Select an ingredient
  3. Open Product Mapping
  4. Select the vendor product
  5. Choose the target ingredient
  6. Enter or calculate the conversion factor
  7. Save the mapping

Use AI-assisted factor calculation

  1. Select the vendor product
  2. Select the target ingredient
  3. Let Mathership analyze the product packaging
  4. Review the suggested packaging levels
  5. Review the calculated factor
  6. Save the mapping if the result is correct

Review a calculated factor

  1. Open the product mapping
  2. Check the packaging levels
  3. Confirm the bottom-level unit
  4. Compare the calculated factor with the real package size
  5. Save only if the result is correct

Receive an order with conversions

  1. Open the received order
  2. Check which order items are mapped
  3. Select the storage unit
  4. Review the received quantity
  5. Review the converted base quantity
  6. Post the receipt to inventory

Fix a wrong conversion

  1. Open the product-to-ingredient mapping
  2. Check the packaging levels
  3. Check the from unit and to unit
  4. Correct the factor
  5. Save the mapping
  6. Review affected receipts and ledger entries
Changing a mapping affects future inventory movements. It does not automatically rewrite old ledger entries.

Best practices

Use clear base units

Use base units that match how you manage stock. Good examples:
Ingredient typeRecommended base unit
Meatkg
Vegetableskg
Milk and liquidsL
Bottled drinksbottle or L
Eggspcs

Keep packaging levels accurate

Packaging levels should match the real product structure. Check:
  • Number of items per box
  • Weight or volume per item
  • Correct bottom-level unit
  • Correct order of packaging levels

Check conversion factors before receiving

A wrong factor can create large stock errors. Example:
Wrong factorResult
1 box = 1 kg instead of 10 kgStock too low
1 pack = 10 L instead of 1 LStock too high
1 case = 1 bottle instead of 24 bottlesStock too low

Use one consistent unit per ingredient

Avoid mixing base units for the same ingredient. For example, do not track the same ingredient sometimes in grams and sometimes in kilograms. Use one base unit and convert everything into that unit.

Common problems

Received stock is too high

Check:
  • Product mapping factor
  • Packaging levels
  • From unit and to unit
  • Whether the ordered quantity was entered correctly
  • Whether the product was received twice

Received stock is too low

Check:
  • Product mapping factor
  • Missing packaging levels
  • Wrong bottom-level unit
  • Product mapped to the wrong ingredient
  • Partial received quantity

Product cannot be received into inventory

Check:
  • Product is mapped to an ingredient
  • Ingredient exists and is active
  • Ingredient has a base unit
  • Mapping has a valid factor
  • Storage unit was selected

Unit cost looks wrong

Check:
  • Product price
  • Conversion factor
  • Received quantity
  • Unit cost override
  • Weighted average cost history

Packaging was parsed incorrectly

Check:
  • Product packaging text
  • Packaging levels
  • Quantity per parent
  • Bottom-level unit
  • Calculated factor
If automatic parsing creates the wrong result, edit the packaging levels manually.

Ingredients

Manage ingredients and their base units.

Product Mapping

Map vendor products to inventory ingredients.

Receiving Orders

Receive vendor orders and convert products into ingredient stock.

Inventory Ledger

View converted inventory movements and running stock balances.

Recipes

Use ingredient quantities for recipes and POS stock reduction.

Inventory Reports

Analyze stock, movement quantities, costs, and inventory values.