utilities/config

Reads an attribute from config and templates object attributes into a string or object containing strings. This is not a configurable module.

Members

accounting

Type

Description

Accounts internalid ids

Properties

Property

Type

Description

debit_account

Number

Account internal id to debit labor recovery journey lines.

credit_account

Number

Account internal id to credit labor recovery journey lines.

asset_profitability_report

Number

NextService Asset Profitability Report internal id unique to the account.

entity_profitability_report

Number

NextService Entity Profitability Report internal id unique to the account.

Default

            {
  "accounting": {
    "debit_account": 0,
    "credit_account": 0,
    "asset_profitability_report": 0,
    "entity_profitability_report": 0
  }
} 

          

billing

Type

Description

Billing rules

Properties

Property

Type

Description

task

Array.<Object>

Set of task type rules to apply a default billing type.

task[].project

Array.<Number>

Project types to match on.

task[].case

Array.<Number>

Case types to match on.

task[].task

Array.<Number>

Task types to match on.

task[].billing

Array.<Number>

Default Billing Type to set on task.

time

Boolean

Resolves to true if the time and task context should be billable.

expense

Boolean

Resolves to true if the expense category and task context should be billable.

consumable

Boolean

Resolves to true if the consumable and task context should be billable.

Default

            {
  "billing": {
    "task": [],
    "time": {
      "join": true,
      "item": {
        "record": "item",
        "filters": "${ time.item }",
        "map": "formulatext:case when ${ task.billing } in (3,4,7,8) then 'F' else 'T' end"
      }
    },
    "expense": {
      "boolean": true,
      "category": {
        "record": "expensecategory",
        "filters": "${ expense.category }",
        "map": "formulatext:case when ${ task.billing } in (2,4,6,8) then 'F' else 'T' end"
      }
    },
    "consumable": {
      "join": true,
      "item": {
        "record": "item",
        "filters": "${ consumable.item }",
        "map": "formulatext:case when ${ task.billing } in (5,6,7,8) then 'F' else 'T' end"
      }
    }
  }
} 

          

icons

Type

Description

SVG Definitions with a 100 x 100 view box.

Properties

Property

Type

Description

defs

Object

Namespace for icon paths.

defs.default

String

Flag icon path.

Default

            {
  "icons": {
    "defs": {
      "flag": "<path d=\"M80.9,30c-0.2,0-0.3,0-0.5,0.1v0c-2.7,1.4-5.8,2.2-9.1,2.2c-6,0-11.5-2.7-15.1-7c-3.3-3.1-7.6-5-12.5-5 c-4.7,0-8.9,1.7-12.1,4.6c-0.7-1.4-2.1-2.4-3.8-2.4c-2.3,0-4.2,1.9-4.2,4.2v50.6c0,2.3,1.9,4.2,4.2,4.2s4.2-1.9,4.2-4.2V54.6 c2.7-1.3,5.7-2.1,8.8-2.1c6.1,0,11.5,2.7,15.1,7.1c3.3,3.1,7.6,4.9,12.5,4.9c5.2,0,9.9-2.2,13.2-5.7c0.2-0.2,0.4-0.6,0.4-0.9V31.3 C82.1,30.6,81.5,30,80.9,30z\"/>",
      "torsos": "<path d=\"M40.348,49.813c0.919-0.584,1.763-1.303,2.527-2.121c-2.683-4.036-4.239-8.966-4.239-14.191 c0-3.492,0.689-6.798,1.896-9.787c-1.879-1.25-4.026-2.022-6.349-2.022c-7.114,0-12.872,6.702-12.872,14.978 c0,5.79,2.83,10.801,6.962,13.295l-17.448,8.121c-1.087,0.511-1.804,1.739-1.804,3.111v13.771c0,1.846,1.289,3.341,2.874,3.341 h11.532v-14.45c0-3.739,2.068-7.121,5.275-8.623L40.348,49.813z\"/><path d=\"M88.772,60.017l-15.023-7.167l-6.353-3.03c2.775-1.748,5.028-4.445,6.503-7.695c1.169-2.581,1.866-5.502,1.866-8.625 c0-1.753-0.278-3.416-0.666-5.023c-1.89-7.782-7.968-13.515-15.263-13.515c-7.158,0-13.144,5.529-15.15,13.09 c-0.463,1.734-0.782,3.538-0.782,5.448c0,3.319,0.775,6.412,2.092,9.103c1.523,3.121,3.78,5.696,6.527,7.35l-6.085,2.834 L30.93,60.01c-1.348,0.631-2.233,2.151-2.233,3.849v14.45v2.593c0,2.284,1.591,4.136,3.557,4.136H87.42 c1.965,0,3.557-1.852,3.557-4.136v-2.593v-14.45C90.977,62.168,90.106,60.662,88.772,60.017z\"/>"
    }
  }
} 

          

program

Type

Description

Program definitions for projects and cases

Properties

Property

Type

Description

project

Array.<Object>

Set of rules to generate a Program of Work for a Project.

Default

            {
  "program": {
    "project": [],
    "case": []
  }
} 

          

tab

Type

Description

Tab internal ids. These properties are configured automatically on install.

Properties

Property

Type

Description

tab.transaction

String

Label or internalid of the tab to attach form elements to..

tab.entity

String

Label or internalid of the tab to attach form elements to..

tab.item

String

Label or internalid of the tab to attach form elements to..

tab.crm

String

Label or internalid of the tab to attach form elements to..

tab.asset

String

Label or internalid of the tab to attach form elements to..

Default

            {
  "tab": {
    "transaction": "custom6",
    "entity": "custom8",
    "item": "custom7",
    "crm": "custom9",
    "asset": "custom4"
  }
} 

          

warranty

Type

Description

Object

Warranty projects to create when an asset is created.

Default

            {
  "warranty": {
    "asset": {
      "array": true,
      "item": {
        "record": "item",
        "filters": [
          [
            "custitem_nx_project_type",
            "noneof",
            "@NONE@"
          ],
          "and",
          [
            "formulatext:case when {internalid} in ('${ asset.item }') then 'T' else 'F' end",
            "is",
            "T"
          ]
        ],
        "map": {
          "type": "custitem_nx_project_type",
          "start": "formuladate:CURRENT_TIMESTAMP at time zone ${ asset.timezoneid ? '\\'' + asset.timezoneid + '\\'' : 'SESSIONTIMEZONE' }",
          "end": "formuladate:ADD_MONTHS(CURRENT_TIMESTAMP at time zone ${ asset.timezoneid ? '\\'' + asset.timezoneid + '\\'' : 'SESSIONTIMEZONE' }, {custitem_nx_project_duration}) - 1"
        }
      }
    }
  }
} 

          

General Notices