Buying in Cases and Selling Single Units in Business Central Without Decimal Stock
Base unit set to each, a case unit with its quantity, purchase and sales units set, prices per unit, and barcodes that tell the scanner which unit it is reading.
Set the item's base unit of measure to the smallest unit you sell, each, because Business Central holds all stock in the base unit. Add a case unit of measure on the item with its Qty. per Unit of Measure, for example 12, and set the Purchase Unit of Measure to the case and the Sales Unit of Measure to each. A receipt of ten cases then adds 120 units, and selling one unit never leaves a fraction. Set rounding precision on the base unit to 1 where your version offers it. Finally, make sure the scanner or integration sends the unit code with every line, through barcodes mapped to the right unit.
Why does buying in cases and selling units create decimal stock?
Because the base unit of measure is the case. Business Central keeps every quantity in the base unit, so when the base unit is a case of 12 and you sell one bottle, the item ledger records 0.08333 of a case. Stock shows decimals, rounding differences build up, counts never match, and value per unit drifts.
The fix is to flip the relationship: the base unit is the smallest unit you sell or count, and every larger pack is a unit of measure expressed as a multiple of it. Then a case of 12 is 12 base units and every sale of one unit is a whole number.
How do you set up the case and each units on an item?
Every item gets one base unit and as many other units as you buy or sell in.
| Field | Where | Value for a 12 unit case |
|---|---|---|
| Base Unit of Measure | Item card | EACH (or PCS) |
| Item unit of measure EACH | Item Units of Measure | Qty. per Unit of Measure 1 |
| Item unit of measure CASE | Item Units of Measure | Qty. per Unit of Measure 12 |
| Purchase Unit of Measure | Item card, Replenishment | CASE |
| Sales Unit of Measure | Item card, Prices and Sales | EACH |
| Put-away Unit of Measure | Item card, Warehouse | What sits on the shelf, often EACH |
| Qty. Rounding Precision | Item Units of Measure, base unit | 1, where your version has the field |
- A purchase line for 10 CASE posts 120 EACH to inventory; the vendor sees cases, the stock sees units.
- Customers who buy whole cases can order in CASE on the sales line; the default stays EACH for everyone else.
- Pallet or inner pack units can be added the same way, each as a multiple of the base unit.
Can you change the base unit of an item that already has stock?
Usually not directly. Business Central restricts changing the base unit of measure once an item has ledger entries, because every existing quantity is stored in the old unit. The dependable route is a new item number set up correctly: post a negative adjustment of the old item and a positive adjustment of the new one at the same value, move open orders and price lists across, and block the old item so it cannot be used again. Do this at a quiet moment, after a count, and test the sequence in a sandbox copy of production first. For many items at once, it is worth scripting with a configuration package or a small AL routine rather than by hand.
How do you make sure the scanner sends the right unit?
A scanner that sends only an item number lets Business Central fall back to a default unit, so a scanned case can be booked as one unit, or a single unit as a case. The answer is to let the barcode carry the unit. Create item references of type Bar Code: the outer case barcode mapped to the item with unit CASE, and the unit barcode mapped to the item with unit EACH. A scan of the case barcode then puts CASE on the line, and the quantity converts to base units correctly.
If the scanning app or a warehouse system posts through an API, check that it sends the unit of measure code with each line rather than relying on the default; a missing unit code is how receipts end up twelve times too low. Scanning with lots, serial numbers and expiry dates is covered on warehouse scanning with serial and expiry, and integrations that post quantities from a third party warehouse on 3PL and WMS integration.
How should prices work per case and per unit?
Set prices per unit of measure in the price lists rather than relying on conversion. A purchase price per case on the vendor's price list matches the vendor's invoice; a sales price per each, and a separate price per case for customers who buy whole cases, keep the case discount visible instead of buried in a line discount. Without a price for a unit, Business Central converts from the price it has, which is rarely the price you want for a whole case. Vendor item numbers for the case can be held as item references of type Vendor, so the purchase order shows the vendor's own code.
What does the setup look like step by step?
A sequence that ends decimal stock and wrong scans for items bought in cases and sold in units.
| Step | What to do |
|---|---|
| 1. Choose the base unit | Make the smallest unit you sell or count the base unit of measure on the item, usually each or piece. |
| 2. Add the case unit | On the item units of measure, add the case unit with its Qty. per Unit of Measure in base units, and any other pack sizes you buy or sell. |
| 3. Set the defaults | Set Purchase Unit of Measure to the case, Sales Unit of Measure to each, and Put-away Unit of Measure to what you store on the shelf. |
| 4. Block fractions | Where your version offers it, set Qty. Rounding Precision on the base unit to 1 so a document can never create a fraction of an each. |
| 5. Map the barcodes | Create item references of type Bar Code for the case barcode with the case unit and for the unit barcode with each, so a scan carries the right unit. |
| 6. Set prices per unit | Set purchase prices per case and sales prices per each, and per case for customers who buy whole cases, in the price lists. |
| 7. Test the flow | In a sandbox, receive cases, sell single units, scan both barcodes and check that the item ledger shows whole base quantities only. |
How do you count stock held in units and bought in cases?
Count in the base unit, or let the counting sheet accept cases and convert. A physical inventory journal line can be entered in a different unit of measure on recent versions and converts to base units; where yours does not, count full cases and loose units separately and enter the total in base units. Either way, the result posted to the item ledger is in whole units, and a difference against the system is a real difference, not a rounding artefact. Distributors with many such items will find the wider picture on food and wholesale distribution.
What does Solzet set up for units of measure in Business Central?
Solzet reviews your items and how you buy, store and sell them, sets the base unit and pack units, the purchase, sales and put-away defaults and rounding, maps the barcodes and vendor codes as item references, sets prices per unit, moves items that were set up the wrong way round to new items with an audit trail, and checks that scanners and integrations send the unit code. We test the whole flow in a sandbox before it goes live. Our own senior consultants and AL developers do the work. The service line is Dynamics 365 Business Central.
Where the sales team needs a customer system and the company would rather not carry Microsoft licensing for it, a custom CRM is an option. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.
What do people ask us?
What should the base unit of measure be when I buy in cases and sell single units?
The smallest unit you sell or count, usually each or piece. Business Central holds all stock in the base unit, so a base unit of each means every sale is a whole number and cases are multiples of it.
How do I convert cases to units in Business Central?
Add the case as an item unit of measure with Qty. per Unit of Measure set to the units in a case. A purchase line in cases then posts the converted quantity in base units to inventory.
Why does my stock show decimals?
Usually because the base unit is the case and you sell single units, so each sale is a fraction of the base unit. Make each the base unit and the case a multiple of it.
Can I change the base unit of measure on an item with stock?
Business Central restricts it once the item has ledger entries. The usual route is a new item with the right base unit, adjusting stock across at the same value and blocking the old item, tested in a sandbox first.
How do I make a barcode scanner book cases correctly?
Create item references of type Bar Code: the case barcode with unit CASE and the unit barcode with unit EACH. Any app or integration posting through an API must send the unit code with each line.
Can I have different prices for a case and a single unit?
Yes. Set prices per unit of measure in the sales and purchase price lists, so a case has its own price instead of a converted unit price.
Can Solzet fix our units of measure setup?
Yes. We set base and pack units, defaults, rounding, barcodes and prices per unit, move wrongly set up items to new items with an audit trail, and test scanning and integrations in a sandbox.
Where should you go next?
Business Central implementation
Business Central online, AL extensions, integrations, assessment and support.
Warehouse scanning with serial and expiry
Scanning in the warehouse with item tracking.
Food and wholesale distribution
Business Central for distributors buying and selling in many pack sizes.
3PL and WMS integration
Integrations that post receipts and shipments from a warehouse system.
Counting stock without closing
Cycle counts aisle by aisle.
Custom CRM development
CRM built on React, Node.js, PostgreSQL and .NET, without Microsoft licensing.
Which solution is right for your business?
Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.