Fixed loading of external numeration modules in FactureFournisseur and Propal
This commit is contained in:
parent
fe5533d1c3
commit
ed839114ab
@ -2564,11 +2564,14 @@ class Propal extends CommonObject
|
|||||||
$classname = $conf->global->PROPALE_ADDON;
|
$classname = $conf->global->PROPALE_ADDON;
|
||||||
|
|
||||||
// Include file with class
|
// Include file with class
|
||||||
foreach ($conf->file->dol_document_root as $dirroot)
|
$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
|
||||||
{
|
|
||||||
$dir = $dirroot."/core/modules/propale/";
|
foreach ($dirmodels as $reldir) {
|
||||||
// Load file with numbering class (if found)
|
|
||||||
$mybool|=@include_once $dir.$file;
|
$dir = dol_buildpath($reldir."core/modules/propale/");
|
||||||
|
|
||||||
|
// Load file with numbering class (if found)
|
||||||
|
$mybool|=@include_once $dir.$file;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $mybool)
|
if (! $mybool)
|
||||||
|
|||||||
@ -1497,10 +1497,14 @@ class FactureFournisseur extends CommonInvoice
|
|||||||
|
|
||||||
$file = $conf->global->INVOICE_SUPPLIER_ADDON_NUMBER.".php";
|
$file = $conf->global->INVOICE_SUPPLIER_ADDON_NUMBER.".php";
|
||||||
$classname = $conf->global->INVOICE_SUPPLIER_ADDON_NUMBER;
|
$classname = $conf->global->INVOICE_SUPPLIER_ADDON_NUMBER;
|
||||||
|
|
||||||
// Include file with class
|
// Include file with class
|
||||||
foreach ($conf->file->dol_document_root as $dirroot)
|
$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
|
||||||
{
|
|
||||||
$dir = $dirroot."/core/modules/supplier_invoice/";
|
foreach ($dirmodels as $reldir) {
|
||||||
|
|
||||||
|
$dir = dol_buildpath($reldir."core/modules/supplier_invoice/");
|
||||||
|
|
||||||
// Load file with numbering class (if found)
|
// Load file with numbering class (if found)
|
||||||
$mybool|=@include_once $dir.$file;
|
$mybool|=@include_once $dir.$file;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user