FSM Consumable Model Reference

Note:

This reference is intended for administrators and developers who work with Consumable model mappings and processing behavior.

The Consumable model represents customrecord_nx_consumable. It supports NetSuite Consumable validation and consumption processing. The FSM Mobile consumables resource has its own article definition.

Standard default structure (JSON fragment):

          {
  "models/consumable": {
    "prototype": {
      "record": "customrecord_nx_consumable",
      "map": {
        "task": "custrecord_nx_constask",
        "case": "custrecord_nx_conscase",
        "asset": "custrecord_nx_consasset",
        "employee": "custrecord_nx_consemployee",
        "item": "custrecord_nx_consitem",
        "quantity": "custrecord_nx_consqty",
        "billable": "custrecord_nx_consbillable",
        "location": "custrecord_nx_conslocation",
        "transaction": "custrecord_nx_constransaction",
        "serial": "custrecord_nx_conserial",
        "bin": "custrecord_nx_conbin",
        "binnumber": "custrecord_nx_conbin#|",
        "created": "<formuladate:{created}",
        "id": "internalid"
      },
      "defaults": {}
    }
  }
} 

        

The prototype.map.pricelevel mapping is generated when Multiple Prices is enabled. Its standard formula reads the Consumable price-level field, supplies Custom Price when blank, and leaves Item Groups without a price level. The following table lists the Consumable model's standard mappings and defaults.

Property

Purpose

Standard Mapping or Default

prototype.map.task, prototype.map.case, prototype.map.asset, prototype.map.employee

Links to the job, Asset, and employee.

custrecord_nx_constask, custrecord_nx_conscase, custrecord_nx_consasset, custrecord_nx_consemployee

prototype.map.item, prototype.map.quantity, prototype.map.billable, prototype.map.location

Usage and billing data.

custrecord_nx_consitem, custrecord_nx_consqty, custrecord_nx_consbillable, custrecord_nx_conslocation

prototype.map.transaction, prototype.map.serial, prototype.map.bin

Resulting transaction and inventory references.

custrecord_nx_constransaction, custrecord_nx_conserial, custrecord_nx_conbin

prototype.map.pricelevel

Price level used for a sales line.

Conditional on Multiple Prices. Blank level is read as Custom Price, except Item Groups.

prototype.defaults

Supplies default model attributes on creation.

{}

The billing rule can set billable status and price level during validation. A custom price result is represented by a blank Consumable price level. Related Sales Order processing handles the custom rate. A consumable linked to a completed task and a case can be queued for processing when it is not yet linked to a transaction. Preserve Task and transaction links when extending mappings. For billing rules, see Configuring FSM Billing Rules. For transaction-processing controls, see Configuring FSM Consumable Processing.

Additional Information

Related Topics

General Notices