Documentation

NSInvoicesWrapper extends NetSuiteWrapper
in package

Table of Contents

createInvoiceFromOrder()  : bool
getBySalesOrderById()  : bool|Invoice|array<string|int, Invoice>
getBySalesOrderNumber()  : bool|Invoice|array<string|int, Invoice>
getInvoice()  : mixed
getInvoiceAmounts()  : mixed
getInvoiceAmountsBySalesOrderNumber()  : array<string|int, NetSuiteInvoicesAmountsResults>|false
getInvoicesBySearchId()  : bool
getInvoicesReadyForDispatchByPost()  : bool
getPdf()  : false|string
setInvoiceParam()  : bool
update()  : bool
updateCustomFields()  : mixed

Methods

createInvoiceFromOrder()

public static createInvoiceFromOrder(int $nsId) : bool
Parameters
$nsId : int
Tags
throws
Exception
Return values
bool

| int

getBySalesOrderById()

public static getBySalesOrderById(int $so_id[, int $cache = 300 ][, bool $multiple = false ]) : bool|Invoice|array<string|int, Invoice>
Parameters
$so_id : int
$cache : int = 300

Numbers Of Seconds To Cache Results, Zero To Flush

$multiple : bool = false
Return values
bool|Invoice|array<string|int, Invoice>

getBySalesOrderNumber()

public static getBySalesOrderNumber(string $orderNumber[, int $cache = 300 ][, bool $multiple = false ]) : bool|Invoice|array<string|int, Invoice>
Parameters
$orderNumber : string
$cache : int = 300

Numbers Of Seconds To Cache Results, Zero To Flush

$multiple : bool = false

Retrieve multiple invoices

Return values
bool|Invoice|array<string|int, Invoice>

getInvoice()

public static getInvoice(int $iId) : mixed
Parameters
$iId : int
Return values
mixed

getInvoiceAmounts()

public static getInvoiceAmounts(mixed $invoiceId) : mixed
Parameters
$invoiceId : mixed
Return values
mixed

getInvoicesBySearchId()

public static getInvoicesBySearchId(int|string $searchId[, int $pageSize = 100 ][, bool $bodyFieldsOnly = false ][, bool $returnSearchColumns = false ]) : bool
Parameters
$searchId : int|string
$pageSize : int = 100
$bodyFieldsOnly : bool = false
$returnSearchColumns : bool = false
Tags
throws
Exception
Return values
bool

| NetSuiteInvoicesResults

getInvoicesReadyForDispatchByPost()

public static getInvoicesReadyForDispatchByPost() : bool
Tags
throws
Exception
Return values
bool

| nsInvoice[]

getPdf()

public static getPdf(int $iId) : false|string
Parameters
$iId : int
Return values
false|string

setInvoiceParam()

public static setInvoiceParam(int $internalId, string $param, bool $value) : bool
Parameters
$internalId : int
$param : string
$value : bool
Tags
throws
Exception
Return values
bool

updateCustomFields()

public static updateCustomFields(int $internalId, array<string|int, mixed> $params) : mixed
Parameters
$internalId : int
$params : array<string|int, mixed>
Return values
mixed

Search results