Cost of Goods Sold
This report answers the question: what did each material I sold really cost after it carries its share of the selling expenses, and how much did I earn on it? It reads the balance of the selling expenses account in the period, distributes it over the materials sold by quantity, sales value or a field of the material card, then adds the unit share to the average price, which gives the total unit cost and the profit of each material.
Opening the report
- From the ribbon: Manufacturing > Manufacture Reports > Analytical Reports > Cost of Goods Sold.
- The Manufacturing page appears in the ribbon when the licence includes manufacturing and a file is open.
- The user needs the Cost of Goods Sold permission in Users Management, on the Reports page.
The conditions window appears first. Set the parameters, then click Preview to show the report, or Summaries to show the totals in cards. The page Report parameter forms explains the buttons of this window, and the page Report viewer explains what follows the report.
How the report calculates
- Expenses: the total of (debit − credit) of the entries on the Selling Expenses account inside Date, on the chosen account and its sub-accounts, and on Cost Center with its sub-centers (if you choose no center, all centers and also the entries that have no center), converted to Currency at the exchange rate of the day of each entry.
- Materials sold: the materials of Group (with its sub-groups) that have in the period bill rows of the types chosen in Report Sources, with the cost center of the row (or of the bill if the row has none) in Cost Center. Materials without sales are not shown. The bill must have an exchange rate on its date for the chosen currency.
- Types: the report sources are only the Sale and Sale Return bill types, and the program shows those you may read. Quantity and value are counted positive for a sale and negative for a sale return.
- Quantity = total of the row quantities ÷ factor of the chosen unit. Sales Value = total of (row quantity × its price in the chosen currency). When you choose Second Unit or Third Unit (or Default Unit when it is a second or third unit), the materials that have that unit show a quantity of
0and no unit name, and only their sales value is calculated. So choose First Unit to read the quantities of all materials. - Average: the current average price of the material in its card, not its average on the day of the sale.
- Distribution Field: what the amount is distributed on. With by sales quantity: the quantity. With by sales value: the sales value. With By One of Material Fields: the value of the chosen field in the material card × the quantity; if the value of the field is not a number, the distribution field of the material stays empty.
- Calculations, for each material:
- Distribution Percentage = Distribution Field ÷ total of the distribution fields (
0if the total is zero). - Selling Costs = amount of the expenses × Distribution Percentage.
- Unit Portion = Selling Costs ÷ Quantity.
- Total Unit Cost = Average + Unit Portion.
- Cost of Goods Sold = Quantity × Total Unit Cost.
- Expenses / Cost Rate = Unit Portion ÷ Total Unit Cost.
- Profits = Sales Value − Cost of Goods Sold.
- Profit to Cost Percent = Profits ÷ Cost of Goods Sold.
- Distribution Percentage = Distribution Field ÷ total of the distribution fields (
Parameters
The table follows the order of the window in the standard layout: the basic fields, then the Expenses Allocation Options group, then Report Sources. In the Tabs layout the pages are General, Display Options and Sources. In Extended Tabs they are General, Expenses Allocation Options and Sources. You choose the layout in Report options.
The Option List panel in the viewer holds: the General group (selling expenses account, cost center, group and currency), the date field, Report Sources and Report Options (the allocation options), so you can change the parameters from it.
| Parameter | Meaning and effect | Default and rules |
|---|---|---|
| Selling Expenses | The account whose balance in the period is distributed. It includes its sub-accounts. | Required. If you leave it empty the message in Messages appears and the report does not run. |
| Cost Center | Limits the expenses and the sales to this center and its sub-centers. The field appears only when your licence includes cost centers. | Empty, meaning all centers. |
| Group | Keeps the materials of this group and its sub-groups. | Empty. |
| Currency | The currency of the expenses and the sales. The field appears only when the file has more than one currency; see the currency field. | The default currency. |
| Date | A list of ready-made periods and the From and To boxes. See the date range field. | From is the first day of the financial period, or the first day of the current month if you turned off the program option "Default start date is the first of the period". To is today. |
| Use Unit | The unit of quantities: First Unit, Second Unit, Third Unit or Default Unit. | Default Unit. |
| Report Sources | The sale and sale return types that are read. See report sources. |
The Expenses Allocation Options group has three options that work together like option buttons, so checking one clears the others:
| Option | What it does | Default |
|---|---|---|
| by sales quantity | Distributes the expenses in proportion to the quantity of each material. | On. |
| by sales value | Distributes them in proportion to the sales value of each material. | Off. |
| By One of Material Fields | Distributes them in proportion to (the value of a field in the material card × the quantity). It enables the next field. | Off. |
| The field list | Wholesale, Semi wholesale, Distributor, Export Price, Retail Price or Consumer (card prices), or Size, Origin, Location, Manufacturer, Color, Provenance, Quality or Model. | Wholesale. |
If you clear all three options the expenses are distributed by sales quantity.
Report header
The header shows Selling Expenses, Cost Center, Group, the currency and Use Unit if you chose them, then Period, then Branches if the file supports branches.
Columns
One row per material that has sales or returns in the period, sorted by material name. See Report grid tools.
| Column | Meaning | How it is calculated |
|---|---|---|
| Material Name | The material. It cannot be hidden. | |
| Quantity | The quantity sold, net of returns. | See item 4 of How the report calculates. |
| Unit | The unit of the quantity. | |
| Distribution Field | What the amount is distributed on. | Item 6. |
| Distribution Percentage | The share of the material in the expenses. | Distribution field ÷ total of the fields. |
| Selling Costs | The share of the material in the expenses. | Amount × distribution percentage. |
| Unit Portion | The share of one unit. | Selling costs ÷ quantity. |
| Average | The current average price of the material. | From the material card. |
| Total Unit Cost | The cost of the unit after the expenses. | Average + unit portion. |
| Cost of Goods Sold | The cost of the quantity sold. | Quantity × total unit cost. |
| Expenses / Cost Rate | The weight of the expenses in the cost. | Unit portion ÷ total unit cost. |
| Sales Value | The sales value, net of returns. | Item 4. |
| Profits | The profit of the material. | Sales value − cost of goods sold. |
| Profit to Cost Percent | The profit as a rate of cost. | Profits ÷ cost of goods sold. |
The totals row at the bottom adds the columns of quantity, distribution field, distribution percentage, selling costs, total unit cost, cost of goods sold, sales value and profits. Expenses / Cost Rate and Profit to Cost Percent are calculated from the totals (total expenses ÷ total cost, and total profits ÷ total cost). The total of Total Unit Cost means nothing, so do not rely on it.
Worked example
The account Selling Expenses has a balance of 1,000.00 in the period (in the default currency, exchange rate 1), the allocation is by sales quantity, and the unit is the default unit. Two materials were sold in the period:
| Material | Sold | Returned | Sales Value | Average |
|---|---|---|---|---|
A | 100 | 100 × 20.00 = 2,000.00 | 12.00 | |
B | 60 | 10 | 60 × 30.00 − 10 × 30.00 = 1,500.00 | 18.00 |
| Column | A | B | Total |
|---|---|---|---|
| Quantity | 100 | 60 − 10 = 50 | 150 |
| Distribution Percentage | 100 ÷ 150 = 66.67% | 50 ÷ 150 = 33.33% | 100% |
| Selling Costs | 1,000 × 0.6667 = 666.67 | 333.33 | 1,000.00 |
| Unit Portion | 666.67 ÷ 100 = 6.67 | 333.33 ÷ 50 = 6.67 | |
| Total Unit Cost | 12.00 + 6.67 = 18.67 | 18.00 + 6.67 = 24.67 | |
| Cost of Goods Sold | 100 × 18.6667 = 1,866.67 | 50 × 24.6667 = 1,233.33 | 3,100.00 |
| Expenses / Cost Rate | 6.6667 ÷ 18.6667 = 35.71% | 6.6667 ÷ 24.6667 = 27.03% | 1,000 ÷ 3,100 = 32.26% |
| Sales Value | 2,000.00 | 1,500.00 | 3,500.00 |
| Profits | 2,000 − 1,866.67 = 133.33 | 1,500 − 1,233.33 = 266.67 | 400.00 |
| Profit to Cost Percent | 133.33 ÷ 1,866.67 = 7.14% | 266.67 ÷ 1,233.33 = 21.62% | 400 ÷ 3,100 = 12.90% |
With by sales value the total of the fields is 2,000 + 1,500 = 3,500, so the percentage of A is 57.14% and its expenses 571.43, and the percentage of B is 42.86% and its expenses 428.57.
Summaries
The Summaries button in the conditions window shows as cards: Quantity, Distribution Field, Distribution Percentage, Selling Costs, Cost of Goods Sold, Expenses / Cost Rate, Sales Value, Profits and Profit to Cost Percent, calculated from the same rows. In the example: Quantity 150, Selling Costs 1,000.00, Cost of Goods Sold 3,100.00, Sales Value 3,500.00 and Profits 400.00. See Report summary.
Right-click menu
Right-click a row. The report has no commands of its own; the program adds the display commands for the material automatically, in this order. Double-clicking a row runs the last command you used from the menu, otherwise the first one in it.
| Command | When it shows | What it does |
|---|---|---|
| Display Material Movement... | You have the Material Movement permission. | Opens the conditions window of the material movement with the material of the row. |
| Display Daily Movement... | You have the Daily Movement permission. | Opens the conditions window of the daily movement of the material. |
| Display Material Card... | Always. | Opens the material card. |
Messages
- "Field is empty" with "Please enter account name": when you leave Selling Expenses empty. Choose the account and try again.
- The other messages of the conditions window are in Report parameter forms.
Related topics
This page applies to alameen ERP 10, version 10.1.79.764.