Merge pull request #3403 from defrance/patch-76
NEW add in get_origin function generic origintype
This commit is contained in:
commit
c09b130644
@ -662,7 +662,14 @@ class MouvementStock extends CommonObject
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return '';
|
if ($origintype)
|
||||||
|
{
|
||||||
|
dol_include_once ('/'.$origintype.'/class/'.$origintype.'.class.php');
|
||||||
|
$classname = ucfirst($origintype);
|
||||||
|
$origin = new $classname($this->db);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return '';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user