NetSuite FastTrack Toolkit (NFT) - v8.0.0
    Preparing search index...

    The 'item' sublist

    Hierarchy (View Summary)

    Index

    Constructors

    • Note that the sublistId and _line are used by the Sublist decorators to actually implement functionality, even though they are not referenced directly in this class. We mark them as not-enumerable because they are an implementation detail and need not be exposed to the typical consumer

      Parameters

      • sublistId: string

        netsuite internal id (string name) of the sublist

      • rec: Record

        netsuite record on which the sublist exists

      • _line: number

        the line number needed in decorator calls to underlying sublist. That's also why this is public - so that the decorators have access to it.

      Returns ItemSublist

    Properties

    _line: number

    the line number needed in decorator calls to underlying sublist. That's also why this is public - so that the decorators have access to it.

    currencyprecision: number
    expectedrate: number
    forceSyncSourcing: boolean = false

    If true, and in dynamic mode, this parameter can be used to alleviate a timing situation that may occur in some browsers when fields are sourced. For some browsers, some APIs are triggered without waiting for the field sourcing to complete. For example, if forceSyncSourcing is set to false when adding sublist lines, the lines aren't committed as expected. Setting the parameter to true, forces synchronous sourcing.

    fulfillable: boolean
    fxrate: number
    id: number
    ignoreFieldChange: boolean = false

    If set to true, the field change and the secondary event is ignored.

    inventorydetailavail: boolean
    inventorydetailid: number
    isnumbereditem: boolean
    itemid: number
    itemtype: string
    lineid: number
    nsrecord: Record
    ownershiptransferscount: number
    pocurrency: number
    porate: number
    povendor: string | number
    povendorkey: string | number
    povendorurl: string
    purchaseorder: string | number
    purchaseorderkey: string
    purchaseorderurl: string
    quantitybilled: number
    quantityexpected: number
    quantityexpectedorig: number
    quantityreceived: number
    quantityremaining: number
    receivinglocation: string | number
    relatedtransactions: string | number
    relatedtransactionsurl: string
    sequencenumber: number
    shipmentitem: string | number
    shipmentitemamount: number
    shipmentitemdescription: string | number
    shipmentitemeffectivedate: Date
    shipmentitemexchangerate: number
    shipmentitemfxrateoverriden: boolean
    shipmentitemkey: string
    shipmentitemtext: string
    shipmentitemurl: string
    sublistId: string

    netsuite internal id (string name) of the sublist

    totalunitcost: number
    tracklandedcost: string | number
    unit: string
    unitlandedcost: string
    unitrate: number
    useDynamicModeAPI: boolean

    If true, uses dynamic mode API calls to access sublist line field values. If false, uses standard mode The default behavior is to use dynamic mode if the record is in dynamic mode. You can override this (force using 'standard mode' APIs even with a dynamic record) by setting this value false prior to your code that manipulates the sublist line.

    vendorid: number
    weightlbs: string | number

    Methods

    • Gets the subrecord for the given field name, handling both dynamic and standard mode.

      Normally you don't call this method directly. Instead, simply define a property on your sublist class matching the field name for the subrecord and decorate it as a subrecord. e.g.

      @FieldType.subrecord(AddressBase)
      billingaddress: AddressBase

      Parameters

      • fieldId: string

        the field that points to the subrecord

      Returns Omit<Record, "save">

    • Defines a descriptor for nsrecord so as to prevent it from being enumerable. Conceptually only the field properties defined on derived classes should be seen when enumerating

      Parameters

      • value: any

      Returns void