Properties

$warehouses

$warehouses : 

Type

Methods

__construct()

__construct() 

init()

init() 

AdminController::init() override

initPageHeaderToolbar()

initPageHeaderToolbar() 

renderForm()

renderForm() 

AdminController::renderForm() override

getList()

getList(  $id_lang,   $order_by = null,   $order_way = null,   $start,   $limit = null,   $id_lang_shop = false) 

AdminController::getList() override

Parameters

$id_lang
$order_by
$order_way
$start
$limit
$id_lang_shop

renderList()

renderList() 

AdminController::renderList() override

initChangeStateContent()

initChangeStateContent() 

Init the content of change state action

initUpdateSupplyOrderContent()

initUpdateSupplyOrderContent() 

Init the content of change state action

initUpdateReceiptContent()

initUpdateReceiptContent() 

Inits the content of 'update_receipt' action Called in initContent()

initContent()

initContent() 

AdminController::initContent() override

manageOrderProducts()

manageOrderProducts() 

Ths method manage associated products to the order when updating it

postProcess()

postProcess() 

AdminController::postProcess() override

displayUpdateReceiptLink()

displayUpdateReceiptLink(string  $token = null, integer  $id) : string

Display state action link

Parameters

string $token

the token to add to the link

integer $id

the identifier to add to the link

Returns

string

displayChangestateLink()

displayChangestateLink(string  $token = null, integer  $id) : string

Display receipt action link

Parameters

string $token

the token to add to the link

integer $id

the identifier to add to the link

Returns

string

displayCreateSupplyOrderLink()

displayCreateSupplyOrderLink(string  $token = null, integer  $id) : string

Display state action link

Parameters

string $token

the token to add to the link

integer $id

the identifier to add to the link

Returns

string

renderDetails()

renderDetails() 

ajaxProcessSearchProduct()

ajaxProcessSearchProduct() 

method call when ajax request is made for search product to add to the order

renderView()

renderView() 

printExportIcons()

printExportIcons(integer  $id_supply_order, string  $tr) : string

Callback used to display custom content for a given field

Parameters

integer $id_supply_order
string $tr

Returns

string —

$content

initToolbar()

initToolbar() 

Assigns default actions in toolbar_btn smarty var, if they are not set.

uses override to specifically add, modify or remove items

beforeAdd()

beforeAdd(\ObjectModel  $object) 

Overrides AdminController::beforeAdd()

Parameters

\ObjectModel $object

initProcess()

initProcess() 

renderCSV()

renderCSV() 

Exports CSV

postProcessUpdateReceipt()

postProcessUpdateReceipt() 

Helper function for AdminSupplyOrdersController::postProcess()

afterAdd()

afterAdd(\ObjectModel  $object) : boolean

Overrides AdminController::afterAdd()

Parameters

\ObjectModel $object

Returns

boolean

loadProducts()

loadProducts(integer  $threshold) 

Loads products which quantity (hysical quantity) is equal or less than $threshold

Parameters

integer $threshold

postProcessCopyFromTemplate()

postProcessCopyFromTemplate() 

Helper function for AdminSupplyOrdersController::postProcess()

getCurrentWarehouse()

getCurrentWarehouse() : integer

Gets the current warehouse used

Returns

integer —

id_warehouse

getFilterStatus()

getFilterStatus() : integer

Gets the current filter used

Returns

integer —

status