Miridia
Portal
Guides

Locations

Add the physical sites of the business. Stock, transfers, production, receipts, and price lists all refer to a location.

A location is a physical site where the business operates. Warehouses, stores, factories, and offices are all locations. Miridia uses one concept for all of them.

Many records refer to a location:

  • Stock is held for each product at each location.
  • A purchase order has a destination location.
  • A transfer order moves stock from one location to another.
  • A work order has a production location.
  • A price list can apply to a location.

Location types

Each location has a type:

TypeTypical use
HeadquartersThe head office.
OfficeAn office with no stock.
WarehouseA warehouse or a distribution centre.
StorefrontA shop or a branch that sells to customers.
FactoryA site that produces goods.
RemoteA remote site, for example a pickup point.
OtherAny other site.

Location codes

Give each location a short code. Use the code on documents, in reports, and in conversation. Examples:

  • CPT-WH1 for the first warehouse in Cape Town
  • JHB-STORE for the Johannesburg store
  • DBN-FACTORY for the Durban factory

The default location

One location is the default location of the business. Miridia uses it in two situations:

  • An order has no origin location. The order starts at the default location.
  • A connected sales channel syncs stock. The default location is the fallback.

Add a location

Open the locations page

In the portal, go to the settings of the business and open Locations.

Add the location

Give the location a title, a type, a code, and an address.

Set the capabilities

Optionally, set what the location can do. Read the next section.

Capabilities

Each location has a set of capability flags. The flags tell what the location can do:

mayCreatePurchaseOrders
boolean
The location can buy from a supplier.
mayRequestTransferOrders
boolean
The location can request stock from another location.
mayFulfillTransferOrders
boolean
The location can send stock to another location.
mayCreateSalesOrders
boolean
The location can sell to customers.
mayProduce
boolean
The location can run work orders.
defaultFulfillmentLocationId
uuid
The location that usually supplies this location, for example the distribution centre of a store.

A location with no saved capabilities has no restrictions.

You can save the capability flags today. Miridia does not enforce them yet. The enforcement is planned for the multi-branch work. Read Business hierarchy.

A typical set-up for a franchise has two kinds of location:

FlagBranchDistribution centre
mayCreatePurchaseOrdersNoYes
mayRequestTransferOrdersYesNo
mayFulfillTransferOrdersNoYes
mayCreateSalesOrdersYesYes
defaultFulfillmentLocationIdThe distribution centreNot set

Location insights

The location insights give metrics for each location over a period. The default period is the current calendar month. For one location, you can also get the top-selling products by revenue and the monthly inventory turnover history.

API reference