dolibarr  18.0.0
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 ( )

dispatchedOrders

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

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

◆ 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.

◆ getProducts()

getProducts (   $order_id)

getProducts

Parameters
int$order_idOrder id
Returns
array|integer[]

Definition at line 155 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.