Skip to content

Commit

Permalink
NEW : get_full_arbo() & get_children_warehouses() functions documenta…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
atm-gauthier committed Oct 20, 2016
1 parent 012be8e commit d85dd69
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion htdocs/product/stock/class/entrepot.class.php
Expand Up @@ -616,7 +616,12 @@ function initAsSpecimen()
$this->country_id=1;
$this->country_code='FR';
}


/**
* Return full path to current warehouse
*
* @return string String full path to current warehouse separated by " >> "
*/
function get_full_arbo() {

global $user,$langs,$conf;
Expand Down Expand Up @@ -645,6 +650,13 @@ function get_full_arbo() {

}

/**
* Return array of children warehouses ids from $id warehouse (recursive function)
*
* @param int $id id parent warehouse
* @param array() $TChildWarehouses array which will contain all children (param by reference)
* @return array() $TChildWarehouses array which will contain all children
*/
function get_children_warehouses($id, &$TChildWarehouses) {

$sql = 'SELECT rowid
Expand Down

0 comments on commit d85dd69

Please sign in to comment.