mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-28 04:11:33 +01:00
Added stock warehouse document upload
This commit is contained in:
@@ -994,6 +994,10 @@ class Documents extends DolibarrApi
|
||||
$modulepart = 'mrp';
|
||||
require_once DOL_DOCUMENT_ROOT . '/mrp/class/mo.class.php';
|
||||
$object = new Mo($this->db);
|
||||
} elseif ($modulepart == 'stock') {
|
||||
$modulepart = 'stock';
|
||||
require_once DOL_DOCUMENT_ROOT . '/product/stock/class/entrepot.class.php';
|
||||
$object = new Entrepot($this->db);
|
||||
} elseif ($modulepart == 'ecm') {
|
||||
throw new RestException(500, 'Using a non empty "ref" is not compatible with using modulepart = '.$modulepart);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user