# Units of measure: count stock the way you buy and sell it

> Give every product a unit such as pcs, kg or box. With the Inventory module, buy in bags or cartons and sell in kg or pieces while stock converts itself.

URL: https://daftiq.com/features/products-and-stock/units-of-measure (last updated 2026-12-03)

- All features of this group: [Products and stock](https://daftiq.com/features/products-and-stock)
- Previous: [Product Categories: Group Items for Reports](https://daftiq.com/features/products-and-stock/product-categories)
- Next: [Sales Tax Rates: GST, PST, SST on Items](https://daftiq.com/features/products-and-stock/tax-rates)

Every product in Daftiq has a unit, such as Pcs, Kg, Litre or Box, and stock is always kept in that unit. With the Inventory module, units also belong to a category with a conversion factor, so you can buy in 50 kg bags and sell in kg. Daftiq converts each line to the stock unit when it posts.

- **Where:** Setup → Inventory setup → Categories, taxes, units → Units
- **Stock unit:** The unit on the product; stock is always held in it
- **Standard units:** Weight, Count, Length and Volume sets with the Inventory module
- **Conversion:** Example: 10 bag-50kg on a bill = 500 kg in stock

## How do I add units in Daftiq?

1. Go to Setup → Inventory setup → Categories, taxes, units and open Units in the System Setup sidebar.
2. Click Create Unit, type the Unit Name (for example Pcs, Kg, Dozen, Box, Meter) and click Create.
3. Pick the unit when you [create a product](https://daftiq.com/features/products-and-stock/products-and-services). If you have none yet, the product form offers + Add unit so you do not lose what you typed.

_A unit that any product or service still uses cannot be deleted. Change those items first._

## Can I buy in cartons and sell in pieces?

Yes, with the [Inventory module](https://daftiq.com/marketplace/inventory). Its Units of measure page groups units into categories, each unit with a factor to the category reference unit. Add standard units creates four sets for you in one click:

| Category | Units and factors |
| --- | --- |
| Weight | kg (reference), g = 0.001 kg, ton = 1000 kg, bag-50kg = 50 kg |
| Count | pcs (reference), dozen = 12 pcs, carton-12 = 12 pcs |
| Length | m (reference), cm = 0.01 m, yard = 0.9144 m, ft = 0.3048 m |
| Volume | litre (reference), ml = 0.001 litre |

## How do purchase units and sales units work?

On the same page each product can get a Purchase unit and a Sales unit from its stock unit category. The bill line then starts in the purchase unit and the invoice line in the sales unit, with the price scaled by the unit ratio. You can still pick another unit of the same category on any line.

When the document posts, Daftiq converts the quantity to the stock unit before it moves stock: a [purchase bill](https://daftiq.com/features/purchases/purchase-bills) for 10 bag-50kg adds 500 kg to the warehouse, and a [sales invoice](https://daftiq.com/features/sales/sales-invoices) for 2 carton-12 takes out 24 pcs. Purchase returns convert the same way, so the stock that goes back matches what came in. The stock check before an invoice posts also compares in the stock unit.

_Units of different categories never convert into each other. A kg product cannot be sold in pcs unless you set it up that way._

## Where do units fit in the flow?

Units are set up with [categories](https://daftiq.com/features/products-and-stock/product-categories) and [tax rates](https://daftiq.com/features/products-and-stock/tax-rates) before products. After that they ride along on every bill, invoice, return, [transfer](https://daftiq.com/features/products-and-stock/stock-transfers) and stock count, and the [stock levels](https://daftiq.com/features/products-and-stock/stock-levels) page shows quantities in the stock unit.

## Frequently asked questions

### Can quantities have decimals?

Yes. A quantity such as 12.5 kg is valid on products, opening stock and documents. With the Inventory module each unit also has a Decimals setting.

### Which unit is stock kept in?

Always the unit on the product, called the stock unit. Purchase and sales units are converted to it when documents post.

### Do I need the Inventory module for units?

No for simple units: every plan has the Units list and a unit on each product. Yes for categories, conversion factors, purchase units and sales units. See [pricing](https://daftiq.com/pricing).

### What happens if I sell more cartons than I have?

The draft invoice is saved with a warning, and posting is refused until enough stock, counted in the stock unit, is in the warehouse.

## In this group: Products and stock

- [Products and Services List with SKU and Prices](https://daftiq.com/features/products-and-stock/products-and-services)
- [Product Categories: Group Items for Reports](https://daftiq.com/features/products-and-stock/product-categories)
- [Sales Tax Rates: GST, PST, SST on Items](https://daftiq.com/features/products-and-stock/tax-rates)
- [Warehouses: Stock per Shop and Godown](https://daftiq.com/features/products-and-stock/warehouses)
- [Opening Stock: Enter What You Already Have](https://daftiq.com/features/products-and-stock/opening-stock)
- [Stock Levels: On Hand per Warehouse, Low Stock](https://daftiq.com/features/products-and-stock/stock-levels)
- [Stock Transfers Between Warehouses](https://daftiq.com/features/products-and-stock/stock-transfers)

## Related pages

- [Products and services](https://daftiq.com/features/products-and-stock/products-and-services)
- [Stock levels](https://daftiq.com/features/products-and-stock/stock-levels)
- [Purchase bills](https://daftiq.com/features/purchases/purchase-bills)
- [Sales invoices](https://daftiq.com/features/sales/sales-invoices)
- [Inventory features](https://daftiq.com/features/inventory)

## Match your units to your trade

Add the units you use, then [create products](https://daftiq.com/features/products-and-stock/products-and-services) with them. All [products and stock features](https://daftiq.com/features/products-and-stock).

[Create a free account](https://daftiq.com/register) · [Book a demo](https://daftiq.com/book-demo) · [Pricing](https://daftiq.com/pricing)
