dolibarr 21.0.0-alpha
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.
 
 dispatchedOrders ()
 dispatchedOrders
 
 ordered ($product_id)
 ordered
 
 getProducts ($order_id)
 getProducts
 

Detailed Description

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

Definition in file replenishment.lib.php.

Function Documentation

◆ dispatchedOrders()

dispatchedOrders ( )

dispatchedOrders

Returns
string Array of id of orders with all dispatching already done or not required

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

References dolDispatchToDo().

◆ 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 getDolGlobalString().

Referenced by dispatchedOrders().

◆ getProducts()

getProducts ( $order_id)

getProducts

Parameters
int$order_idOrder id
Returns
array|integer[]

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

◆ ordered()

ordered ( $product_id)

ordered

Parameters
int$product_idProduct id
Returns
string|null

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

References dol_print_error().