Using Carriers

In Duett Økonomi, the collective term Carriers is used for both cost and income carriers. Carriers are utilized to allocate costs and income to entities such as departments or projects.

Types of Carriers

A carrier can be of the following types:

  • Free
  • Project
  • Production
  • Employee
  • Department
  • Task
  • Activity
  • Year
  • Product
  • Trade
  • Asset
  • CostType
  • WorkType
  • Contract
  • RealEstate
  • Person
  • Issuer
  • Team
  • Product2
  • Detail
  • Quality
  • AdditionalTrait
  • Organic
  • ForestInfo
  • WageType
  • WorkplaceLocation
Common Types in the API

The most commonly used types in the API are:

  • Free
  • Employee
  • Project
  • Department
  • WageType

There are dedicated endpoints for details and creation of Employee and Project. The Free type can be created directly under the Carrier endpoint.

It is only possible to create carriers of type Free from this endpoint.

Carrier
Property Description Default Create
carrierTypeId Required. The id of the carrier type of this carrier x
name Required: Name used to identify this carrier x
key Required: depending on the type of carrier, this is an identifier for that type. For example, this would be an employee number for an employee, a project id for a project etc. True x
carrierType add ?extend=CarrierType to your request to populate this field with carrierType details. See here for carrierType details
employee Returns employee details if the carrierType is employee
project Returns project details if the carrierType is project
department Returns department details if the carrierType is department
wageType You can specify the wageType of the carrier here (for carrierType that has usedInHour only). The wageType object should contain the id, typeId, typeName, and usedInHour fields. See below on how to find wageTypes
hourRegistration
show Returns false if record has been soft deleted true
Tips on finding wage type for use in hour registration

                                        {
                                            "carrierType.carrierTypeKind": {
                                                "EQ": [
                                                    "wagetype"
                                                ]
                                            },
                                            "wageType.usedInHour": {
                                                "EQ": [
                                                    "true"
                                                ]
                                            }
                                        }
                                    
As url:
extend=CarrierType&filter[carrierType.carrierTypeKind][EQ]=wagetype&filter[wageType.usedInHour][EQ]=true
Warning: Not all wage types are valid for use in hour registration.