Properties

$id_warehouse

$id_warehouse : integer

Type

integer — identifier of the warehouse

$id_product

$id_product : integer

Type

integer — identifier of the product

$id_product_attribute

$id_product_attribute : integer

Type

integer — identifier of the product attribute if necessary

$reference

$reference : string

Type

string — Product reference

$ean13

$ean13 : integer

Type

integer — Product EAN13

$upc

$upc : string

Type

string — UPC

$physical_quantity

$physical_quantity : integer

Type

integer — the physical quantity in stock for the current product in the current warehouse

$usable_quantity

$usable_quantity : integer

Type

integer — the usable quantity (for sale) of the current physical quantity

$price_te

$price_te : integer

Type

integer — the unit price without tax forthe current product

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

Methods

update()

update(  $null_values = false) 

Parameters

$null_values

add()

add(  $autodate = true,   $null_values = false) 

Parameters

$autodate
$null_values

getWsRealQuantity()

getWsRealQuantity() 

Webservice : used to get the real quantity of a product

deleteStockByIds()

deleteStockByIds(  $id_product = null,   $id_product_attribute = null) 

Parameters

$id_product
$id_product_attribute

productIsPresentInStock()

productIsPresentInStock(  $id_product,   $id_product_attribute,   $id_warehouse) 

Parameters

$id_product
$id_product_attribute
$id_warehouse

getProductInformations()

getProductInformations() 

Gets reference, ean13 and upc of the current product Stores it in stock for stock_mvt integrity and history purposes