Cost recalculation when changing the unit in cost sheets and work item templates
When you change the unit of a line in the bill of quantities of a cost sheet or a work item template, the system recalculates the figures at once from the factors of the product's unit template: the Unit Cost of a material or labour line converts, and the Cons./Unit and the material quantities under a work item change when the work item's own unit changes. So you enter a cost once, in any unit, and the system converts it when you switch.
Article contents
- Before you start
- Steps to change a line's unit
- Materials and labour: converting the unit cost
- Work items and templates: recalculating consumption
- Illustrative examples
- Fields
- Settings that affect it
- Updating the unit template from the bill of quantities
- Validations and error messages
- Restrictions
- Permissions
- What happens after saving
- Troubleshooting
- FAQs
Before you start
- The Construction app is active in Apps Manager.
- Permission to add or edit cost sheets, or to add or edit work item templates (see Permissions).
- The material, labour or work item has a unit template with more than one unit. If the product has no unit template, the unit menu shows No results found and the cell shows the message «Please select a unit factor or add a new one». Templates are managed in Unit Templates or with Update Template in the unit menu.
- In a unit template the base unit's factor is 1, and every other unit's factor is how many base units it equals (for example Load = 6 m³).
Steps to change a line's unit
First: open the bill of quantities
- Open Cost Sheets or Work Item Templates, then add a new record or open one for editing.
- In the Bill of Quantities, choose the line's item first; until then the unit cell shows Unit and its menu does not open.
Second: change the unit
- In the Quantity column, click the unit button next to the number (such as m³).
- A menu opens with:
- A Search… box.
- The units of the product's template by short name, with the currently selected unit first.
- Update Template, to add a unit or change the template's factors.
- Choose the new unit; the figures on the line and on its work item change at once.
- Check the Quantity, then click Save.
Note: The Quantity number of a material line does not convert when its unit changes: 10 m³ becomes 10 Load. If that is not what you want, edit the quantity after changing the unit.
Third: change the unit of a work item or a template
- To change the work item's own unit in a cost sheet, click the unit button on the work item line and choose the new unit.
- In a work item template, change the unit next to the Quantity field in the template's details.
- In a cost sheet the Cons./Unit of every material and labour line under the work item is recalculated; in a work item template the Quantity of every line changes, so material quantities and costs change.
Materials and labour: converting the unit cost
When the unit of a material or labour line changes, its Unit Cost converts by the factor ratio, and the Cost is recalculated from the quantity and the new unit cost:
- New unit cost = old unit cost ÷ old unit factor × new unit factor.
- The Quantity number does not change.
- A cost of zero stays zero.
- The cost of the work item above it changes; its sale rate stays the same, so its profit % changes and can turn negative with the warning “Profit% is negative”.
Work items and templates: recalculating consumption
When the work item's own unit (in a cost sheet) or the template's unit (in a work item template) changes, the work item quantity stays the same and the quantities of the material and labour lines under it are recalculated by the factor ratio, because the new unit is a different amount of work. In a cost sheet the Cons./Unit of every line is recalculated, so material quantities and costs change, then the work item cost and sale rate, while the Profit % stays the same. In a work item template the Quantity and Subtotal of every line change.
Illustrative examples
| Case | Before | After |
|---|---|---|
| Material Sand (m³, and Load = 6 m³): material unit changed to Load | 10 m³, unit cost 100, cost 1,000 | 10 Load, unit cost 600, cost 6,000 |
| Work item Backfilling Works (10 m³, profit 20%) with the same material: material unit changed to Load | Work item cost 1,000, sale rate 120, profit 20% | Work item cost 6,000, sale rate stays 120, profit -80% with the warning “Profit% is negative” |
| The same work item: work item unit changed to Load (material in m³) | Cons./Unit 1, material quantity 10, work item cost 1,000, profit 20%, sale rate 120 | 10 Load, Cons./Unit 6, material quantity 60, work item cost 6,000, profit 20%, sale rate 720 |
| Work item template, quantity 1 m³, with Sand 1 m³ at 100: template unit changed to Load | Material quantity 1, subtotal 100 | Material quantity 6, subtotal 600 |
| Material with a unit cost of 0 (in a cost sheet) | 0 | Stays 0 |
Note: The names and figures are illustrative; the calculation itself was tested in the system.
Fields
| Field | Required / optional | Default | Accepted values | What it does |
|---|---|---|---|---|
| Quantity (number) | Required | Empty on bill of quantities lines (Enter quantity), and 1 in Template Information | A number above zero | The line's quantity in the chosen unit; it does not convert when a material's unit changes. |
| Unit (next to the quantity) | Required | The product's base unit | The units of the product's unit template | The line's unit; changing it recalculates the unit cost or the consumption. |
| Cons./Unit | Calculated | — | — | Cost sheets only: material quantity per one unit of the work item = item quantity ÷ work item quantity (shown as material unit/work item unit, such as m³/Load). |
| Unit Cost | Required for materials and labour | The product's price | A number; in a work item template it must be greater than 0 | The cost of one unit in the chosen unit; converts by the factor ratio when the unit changes. Work item unit cost = ∑(Cons./Unit × item unit cost). |
| Cost | Calculated | — | — | Quantity × unit cost. |
| Profit / Sale Rate | Optional (work item in a cost sheet) | — | A percentage or a number | When the work item’s own unit changes, the profit % stays the same and the sale rate is recalculated from the new cost; when the unit of a material or labour line under it changes, the sale rate stays the same and the profit % changes. |
Settings that affect it
| Setting | Where | Default | Effect |
|---|---|---|---|
| The product's unit template and factors | Unit Templates or Update Template | No template: no units to choose from | Sets the units available on the line and each unit's factor, which the recalculation uses. |
| Recalculation on unit change | — | Always on | There is no setting to turn it off. |
Updating the unit template from the bill of quantities
Update Template in the unit menu opens Update Unit Template for the line's product:
- Unit Source: Select From Existing (choose from the Template field, or open Manage Units) or Create New Unit Template (enter the Template Name).
- Base Unit Name and Short Name.
- Template Factors: for each unit a Unit Name, a Factor (how many base units it Equals) and a Short Name, then Add.
- Save saves the template and the message Units saved successfully shows; the new units then show in the menu.
Validations and error messages
| Message | When it appears | Fix |
|---|---|---|
| «Please select a unit factor or add a new one» | On the unit cell of a cost sheet when the line has no unit (such as a product with no unit template). | Choose a unit from the unit menu or add one with Update Template. |
| «Please Select a valid unit factor» | On save, when a work item template line has no valid unit. | Choose a unit from the unit menu. |
| «Cost must be greater than 0» | On the Unit Cost cell of a work item template when it is 0. | Enter a cost above zero. |
| «Factor must be greater than 0» | When saving a unit template with a factor of zero or less. | Enter a factor above zero. |
| «Required» | When saving a new unit template without the Template Name, Base Unit Name or Short Name. | Fill in the required fields. |
| «You can't edit a rejected cost sheet, instead you can clone it.» | When opening a Rejected cost sheet for editing. | Clone the cost sheet and edit the copy. |
Restrictions
| Restriction | Details |
|---|---|
| Available units | The unit menu shows only the units of the product's template; a product with no template shows No results found in its menu. |
| Product with transactions | Update Unit Template shows Product Has Existing Transactions: existing transactions keep the units they were recorded in, and the changes apply to new transactions only. |
| Rejected cost sheet | It cannot be edited, so its units cannot be changed (clone it). |
| Quantity | Does not convert when a material or labour unit changes; the same number stays in the new unit. |
| Zero values | In a cost sheet a unit cost of zero stays zero after conversion; in a work item template a cost of zero is not accepted. |
Permissions
| Permission | What it allows | Without it |
|---|---|---|
| Add Cost Sheets | Add a cost sheet and change its lines' units. | The add button does not show. |
| Edit & Delete All Cost Sheets / Edit & Delete His Own (Created) Cost Sheets | Edit cost sheets (all, or the ones they created) and change their units. | The cost sheet cannot be opened for editing. |
| Add Work Item Templates | Add a work item template. | The add button does not show. |
| Edit & Delete All Work Item Templates / Edit & Delete His Own (Created) Work Item Templates | Edit templates (all, or the ones they created). | The template cannot be opened for editing. |
| Edit General Settings | Manage unit templates and use Update Template. | The button is disabled with the tooltip Requires Permission. |
What happens after saving
- Each line keeps its chosen unit; values are stored in the base unit and shown in the chosen unit, so the same figures show when the record is opened again.
- On save, Cons./Unit, the work item cost and the profit % or sale rate are recalculated from the figures shown.
- In a cost sheet, changes are kept automatically as a draft before saving (Autosaved at shows next to Save as Draft); the draft is removed when you save or cancel.
- A cost sheet linked to a contract shows Updates to the cost sheet will reflect in related contract; By activating the contract, changes in cost sheet will only impact project budget!
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| The unit menu shows No results found or only one unit | The product has no unit template, or its template has one unit. | Add units with Update Template or in Unit Templates. |
| Update Template is disabled | You do not have Edit General Settings. | Add the permission to the role. |
| The line cost multiplied after changing the unit | The unit cost converted and the quantity number stayed the same. | Edit the quantity to match the new unit. |
| Material quantities changed after changing the work item unit | The quantities (and the Cons./Unit in a cost sheet) were recalculated for the new unit. | This is expected; check the quantities or go back to the previous unit. |
| Product Has Existing Transactions shows | The product already has transactions. | Continue if needed; the changes apply to new transactions only. |
| The cost sheet cannot be edited | It is Rejected, or you lack the edit permission. | Clone it, or add the permission. |
FAQs
Do I have to enter the cost for each unit?
No. Enter the unit cost once, in any unit; the system converts it by the factor ratio when the unit changes.
Why didn't the quantity change when the material unit changed?
The quantity number does not convert; the same number stays in the new unit and only the unit cost converts. Edit the quantity if needed.
Why did material quantities change when the work item unit changed?
Because the material quantities (and the Cons./Unit in a cost sheet) are recalculated for the new unit: a larger unit of work uses more material.
Does the profit % change when the unit changes?
It depends on which line’s unit changes: for the work item’s own unit, the Profit % stays the same and the sale rate is recalculated. For a material or labour line under it, the sale rate stays the same and the profit % changes, and can turn negative with the warning “Profit% is negative”.
What is the base unit's factor?
1. Every other unit's factor is how many base units it equals.
Is there a setting to turn the recalculation off?
No. It always runs in cost sheets and work item templates.
What does the message «Product Has Existing Transactions» in Update Template mean?
The product already has transactions; existing transactions keep the units they were recorded in, and template changes apply to new transactions only.