dolibarr  13.0.2
Functions
replenishment.lib.php File Reference

Contains functions used in replenish.php and replenishorders.php. More...

Go to the source code of this file.

Functions

 dolDispatchToDo ($order_id)
 Check if there is still some dispatching of stock to do. More...
 
 dispatchedOrders ()
 dispatchedOrders More...
 
 ordered ($product_id)
 ordered More...
 
 getProducts ($order_id)
 getProducts More...
 

Detailed Description

Contains functions used in replenish.php and replenishorders.php.

Definition in file replenishment.lib.php.

Function Documentation

dispatchedOrders ( )

dispatchedOrders

Returns
string Array of id of orders wit all dispathing already done or not required

Definition at line 81 of file replenishment.lib.php.

References $resql, and dolDispatchToDo().

dolDispatchToDo (   $order_id)

Check if there is still some dispatching of stock to do.

Parameters
int$order_idId of order to check
Returns
boolean True = There is some dispatching to do, False = All dispatching is done (may be we receive more) or is not required

Definition at line 33 of file replenishment.lib.php.

References $resql.

Referenced by dispatchedOrders().

getProducts (   $order_id)

getProducts

Parameters
int$order_idOrder id
Returns
array|integer[]

Definition at line 158 of file replenishment.lib.php.

ordered (   $product_id)

ordered

Parameters
int$product_idProduct id
Returns
string|null

Definition at line 115 of file replenishment.lib.php.

References $resql, and dol_print_error().