Hierarchy

  • WorkOrderCosts

Properties

currentActivityType: string

Storage of object's active activityType

Labor Costs Methods

  • Get Cost Codes

    Returns

    Returns Promise that represents an object describing

    Parameters

    • employeeSids: Object

      A list of Employee IDs for which to get the job codes.

    • commonOnly: boolean = false

      Set to true to get the Cost Codes that are common to ALL employees in the list, otherwise get all job codes that apply to at least one employee in the list.

    Returns Promise<unknown>

  • Get Job Codes

    Returns

    Returns Promise that represents an object describing

    Returns Promise<unknown>

WorkOrder Costs Methods

  • Add WorkOrder Equipment Costs

    Returns

    Returns Promise that represents an object describing

    Parameters

    • workOrderSid: number

      the work order to add the equipment costs to

    • options: Object

      additional options

    Returns Promise<unknown>

  • Add WorkOrder Labor Costs

    Returns

    Returns Promise that represents an object describing

    Parameters

    • workOrderSid: number

      Array of inspection labor costings

    • hours: number

      Number of hours to add

    • options: Object

      options for the work order

    Returns Promise<unknown>

  • Add WorkOrder Material Costs

    Returns

    Returns Promise that represents a collection describing the work order material costs

    Parameters

    • workOrderSid: number

      Work Order SID number to add the material to

    • units: number

      Decimal units for material

    • options: Object

      Additional work order options

    • combineIssuesByMaterialSid: boolean = true

      Combine issues with the same MaterialSid into a single commit, default is true

    Returns Promise<unknown>

  • Delete WorkOrder Equipment Costs

    Returns

    Returns Promise that represents an object describing

    Parameters

    • equipmentCostIds: number[]
    • estimated: boolean = false

    Returns Promise<unknown>

  • Delete WorkOrder Labor Costs

    Returns

    Returns Promise that represents an object describing

    Parameters

    • laborCostIds: number[]

      List of labor cost IDs to delete

    • estimated: boolean = false

      Whether to delete estimates or actuals (defaults to false -- delete actuals)

    Returns Promise<unknown>

  • Delete WorkOrder Material Costs

    Returns

    Returns Promise that represents an object describing

    Parameters

    • materialCostIds: number

      list of material cost IDs to delete

    • estimated: boolean = false

      true to delete the estimated costs. defaults to false and deletes actuals.

    Returns Promise<unknown>

  • Get Equipment Costs for WorkOrder(s)

    Returns

    Returns Promise that represents an object describing

    Parameters

    • workOrderSid: number

      the work order to add the equipment costs to

    • estimated: boolean = false

      true to get estimated costs. defaults to false

    Returns Promise<unknown>

  • Get Labor Costs for WorkOrder(s)

    Returns

    Returns Promise that represents an object describing

    Parameters

    • workOrderSids: number[]

      Array of request Ids to get costs for

    • estimated: boolean = false

      Whether to get estimates or actuals (defaults to false -- get actuals)

    Returns Promise<unknown>

  • Get Material Costs for WorkOrder(s)

    Returns

    Returns Promise that represents an object describing

    Parameters

    • workOrderSid: number

      the work order to add the equipment costs to

    • estimated: boolean = false

      true to get estimated costs. defaults to false and gets actuals.

    Returns Promise<unknown>