new InvoiceBase(rec: NonNullable<ClientCurrentRecord | Record>): InvoiceBase
Creates an NSDAL instance for the given existing NetSuite record object.
This does NOT reload the record - it just wraps the supplied rec
Example
// assume `ctx` is the _context_ object passed to a `beforeSubmit()` entrypoint. // results in an NFT representation of the 'new record' constcustomer = newCustomer(ctx.newRecord)
Note unlike other identifiers in NetSuite, this one is a string (e.g. 'Partially Fulfilled')
statusRef
statusRef:string
Note unlike other references in NetSuite, this one is a set of undocumented string keys (e.g. 'partiallyFulfilled')
The possible statusref values differ for each transaction type
subsidiary
subsidiary:number
subtotal
subtotal:number
taxitem
taxitem:number
taxrate
taxrate:string | number
taxregoverride
taxregoverride:boolean
tobeemailed
tobeemailed:boolean
tobefaxed
tobefaxed:boolean
tobeprinted
tobeprinted:boolean
total
total:number
trackingnumbers
trackingnumbers:string
trandate
trandate:Date
tranid
tranid:string
tranisvsoebundle
tranisvsoebundle:boolean
vsoeautocalc
vsoeautocalc:boolean
Accessors
id
get id(): number
Returns number
Methods
ProtectedfindApplyLine
findApplyLine(docId: number): null | { Â Â Â Â amount: number; Â Â Â Â apply: boolean; Â Â Â Â line: number; }
locates line on the 'apply' sublist that corresponds to the passed related record internal id
expose this method in derived classes that need dynamic access to the apply sublist
returns undefined
Deprecated
dynamic access to the apply sublist should generally work using normal collection oriented means
Parameters
docId: number
Returns null | { Â Â Â Â amount: number; Â Â Â Â apply: boolean; Â Â Â Â line: number; }
NetSuite Invoice Record