2
0
forked from Wavyzz/dolibarr

NEW: Add an API for fichinter

We missed an API for fichinter
It add list, create and create line functions
This commit is contained in:
kadogo
2018-01-27 18:59:07 +01:00
parent 1834be79a0
commit b48bcc9ab8
3 changed files with 346 additions and 0 deletions

View File

@@ -89,6 +89,13 @@ foreach ($modulesdir as $dir)
}
if (empty($conf->$module->enabled)) $enabled=false;
if ($module == 'ficheinter') {
$obj = 'fichinter';
$part = 'fichinter';
$enabled=true;
$module='fichinter';
}
if ($enabled)
{
/*

View File

@@ -148,6 +148,11 @@ if (! empty($reg[1]) && $reg[1] == 'explorer' && ($reg[2] == '/resources.json' |
$enabled=true;
if (empty($conf->$modulenameforenabled->enabled)) $enabled=false;
if ($module == 'ficheinter'){
$enabled=true;
$moduledirforclass='fichinter';
}
if ($enabled)
{
// If exists, load the API class for enable module
@@ -249,6 +254,7 @@ if (! empty($reg[1]) && ($reg[1] != 'explorer' || ($reg[2] != '/resources.json'
$classfile = str_replace('_', '', $module);
if ($module == 'supplierinvoices') $classfile = 'supplier_invoices';
if ($module == 'supplierorders') $classfile = 'supplier_orders';
if ($module == 'fichinters') $moduledirforclass = 'fichinter';
$dir_part_file = dol_buildpath('/'.$moduledirforclass.'/class/api_'.$classfile.'.class.php');
$classname=ucwords($module);