feat(api/documents): upload contract
This commit is contained in:
parent
91f5971b01
commit
ffaf748ac8
@ -672,6 +672,10 @@ class Documents extends DolibarrApi
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
|
||||||
$object = new Contact($this->db);
|
$object = new Contact($this->db);
|
||||||
$fetchbyid = true;
|
$fetchbyid = true;
|
||||||
|
} elseif ($modulepart == 'contrat' || $modulepart == 'contract') {
|
||||||
|
$modulepart = 'contrat';
|
||||||
|
require_once DOL_DOCUMENT_ROOT . '/contrat/class/contrat.class.php';
|
||||||
|
$object = new Contrat($this->db);
|
||||||
} else {
|
} else {
|
||||||
// TODO Implement additional moduleparts
|
// TODO Implement additional moduleparts
|
||||||
throw new RestException(500, 'Modulepart '.$modulepart.' not implemented yet.');
|
throw new RestException(500, 'Modulepart '.$modulepart.' not implemented yet.');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user