views/itemfulfillment/assets

Item Fulfillment Assets Component Adds a sublist to Itemfulfillment that creates or updates Assets records from fulfilled Asset Items

Members

element

Type

Description

Object

Form element definitions.

Properties

Property

Type

Description

element.list

Object

Asset sublist.

element.item

Object

Source the item from the transaction line. This is populated with script from the fulfilled line.

element.serial

Object

Source the serial number from the transaction line. This is populated with script from the fulfilled line inventory detail.

element.id

Object

Link to existing Asset record. This is populated with script when a matching Asset record is found.

element.customer

Object

Sources the customer from the transaction body field.

element.parent

Object

Sources the parent from the transaction body field.

element.addressbook

Object

Source the address id from the transaction ship address.

element.addresstext

Object

Source the address text from the transaction ship address text. When present, this is populated with script to format the address and remove the Attention and Addressee.

Default

            {
  "element": {
    "list": {
      "label": "Create/Update Assets",
      "name": "custpage_nx_assets",
      "type": "inlineeditor",
      "parent": "custom6"
    },
    "item": {
      "label": "Item",
      "type": "select",
      "parent": "list",
      "display": "disabled",
      "required": true
    },
    "serial": {
      "label": "Serial Number",
      "type": "text",
      "parent": "list",
      "required": true
    },
    "id": {
      "label": "Asset",
      "type": "select",
      "parent": "list",
      "display": "disabled"
    },
    "customer": {
      "label": "Customer",
      "type": "select",
      "parent": "list",
      "display": "hidden",
      "source": "customer",
      "sourcefrom": "custbody_nx_customer"
    },
    "parent": {
      "label": "Parent",
      "type": "select",
      "parent": "list",
      "display": "hidden",
      "source": "customrecord_nx_asset",
      "sourcefrom": "custbody_nx_asset"
    },
    "addressbook": {
      "label": "Address Book",
      "type": "integer",
      "parent": "list",
      "display": "hidden",
      "sourcefrom": "shipaddresslist"
    },
    "addresstext": {
      "label": "Address",
      "type": "textarea",
      "parent": "list",
      "display": "disabled",
      "sourcefrom": "shipaddress"
    }
  }
} 

          

error

Type

Description

Object

User error messages.

Properties

Property

Type

Description

error.required

String

Alert text when an Asset does not have the require fields completed. The scope of this template is a hash of the missing required element name and labels.

error.duplicate

String

Alert text when the Asset line is not unique. The scope of this template is the duplicate line data.

Default

            {
  "error": {
    "required": "Please enter value(s) for: ${ Array.prototype.join.apply(arguments, [', ']) }",
    "duplicate": "Duplicate Asset already exists at line ${ line }."
  }
} 

          

hidden

Type

Description

Boolean

This view is to be shown or hidden

Default

            {
  "hidden": false
} 

          

General Notices