Documentation

Inventory
in package

Class SaveInventory.

Table of Contents

$errors  : array<string|int, mixed>
Arrays with errors.
$inventory  : array<string|int, mixed>
Inventory items passed from request.
$moduleName  : string
Module name.
$parentRecordModel  : Vtiger_Record_Model
Undocumented variable.
$pricebookId  : int|null
Pricebook id.
$products  : array<string|int, mixed>
Products.
$seq  : int
Sequence.
$storage  : int
Storage.
$fieldMapping  : array<string|int, mixed>|null
Field mapping.
__construct()  : mixed
Construct.
getErrors()  : array<string|int, mixed>
Get errors.
getInventoryData()  : array<string|int, mixed>
Get inventory data.
getInventoryFromRecord()  : array<string|int, mixed>
Get Inventory from record.
validate()  : bool
Validate inventory.
getFieldMapping()  : array<string|int, mixed>
Get field mapping.
getInventoryCurrency()  : int
Get currency.
getInventorySeq()  : int
Returns sequence.
getInventoryTaxmode()  : mixed
getValue()  : mixed
Get the value for the column. Return null if it does not apply to this column.
getProductsByInventory()  : mixed
Get products by inventory.

Properties

$errors

Arrays with errors.

protected array<string|int, mixed> $errors = []

$inventory

Inventory items passed from request.

protected array<string|int, mixed> $inventory

$moduleName

Module name.

protected string $moduleName

$pricebookId

Pricebook id.

protected int|null $pricebookId

$products

Products.

protected array<string|int, mixed> $products = []

$fieldMapping

Field mapping.

private array<string|int, mixed>|null $fieldMapping

Methods

__construct()

Construct.

public __construct(string $moduleName, array<string|int, mixed> $inventory, int $storage, int|null $accountId) : mixed
Parameters
$moduleName : string
$inventory : array<string|int, mixed>
$storage : int
$accountId : int|null
Return values
mixed

getErrors()

Get errors.

public getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>

getInventoryData()

Get inventory data.

public getInventoryData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getInventoryFromRecord()

Get Inventory from record.

public getInventoryFromRecord(int $recordId, string $moduleName) : array<string|int, mixed>
Parameters
$recordId : int
$moduleName : string
Return values
array<string|int, mixed>

validate()

Validate inventory.

public validate() : bool
Return values
bool

getFieldMapping()

Get field mapping.

protected getFieldMapping() : array<string|int, mixed>
Return values
array<string|int, mixed>

getInventoryCurrency()

Get currency.

protected getInventoryCurrency(int $inventoryKey) : int
Parameters
$inventoryKey : int
Return values
int

getInventorySeq()

Returns sequence.

protected getInventorySeq(int $inventoryKey) : int
Parameters
$inventoryKey : int
Return values
int

getInventoryTaxmode()

protected getInventoryTaxmode(int $inventoryKey) : mixed
Parameters
$inventoryKey : int
Return values
mixed

getValue()

Get the value for the column. Return null if it does not apply to this column.

protected getValue(string $columnName, int $inventoryKey) : mixed
Parameters
$columnName : string
$inventoryKey : int
Return values
mixed

getProductsByInventory()

Get products by inventory.

private getProductsByInventory() : mixed
Return values
mixed

        

Search results