forked from Wavyzz/dolibarr
Merge pull request #1174 from FHenry/3.4
Fix: Supplier invoice and supplier order are not displayed into object
This commit is contained in:
@@ -4,6 +4,7 @@ English Dolibarr ChangeLog
|
||||
|
||||
***** ChangeLog for 3.4.1 compared to 3.4.0 *****
|
||||
Fix: [ bug #1029 ] Tulip numbering mask
|
||||
Fix: Supplier invoice and supplier order are not displayed into object link into agenda event card
|
||||
|
||||
***** ChangeLog for 3.4 compared to 3.3.* *****
|
||||
For users:
|
||||
|
||||
@@ -2506,12 +2506,6 @@ abstract class CommonObject
|
||||
if ($objecttype == 'delivery') {
|
||||
$classpath = 'livraison/class'; $subelement = 'livraison'; $module = 'livraison_bon';
|
||||
}
|
||||
if ($objecttype == 'invoice_supplier') {
|
||||
$classpath = 'fourn/class';
|
||||
}
|
||||
if ($objecttype == 'order_supplier') {
|
||||
$classpath = 'fourn/class';
|
||||
}
|
||||
if ($objecttype == 'contract') {
|
||||
$classpath = 'contrat/class'; $module='contrat'; $subelement='contrat';
|
||||
}
|
||||
@@ -2529,12 +2523,18 @@ abstract class CommonObject
|
||||
|
||||
$classfile = strtolower($subelement); $classname = ucfirst($subelement);
|
||||
if ($objecttype == 'invoice_supplier') {
|
||||
$classfile = 'fournisseur.facture'; $classname='FactureFournisseur';
|
||||
$classfile = 'fournisseur.facture';
|
||||
$classname='FactureFournisseur';
|
||||
$classpath = 'fourn/class';
|
||||
$module='fournisseur';
|
||||
}
|
||||
if ($objecttype == 'order_supplier') {
|
||||
$classfile = 'fournisseur.commande'; $classname='CommandeFournisseur';
|
||||
$classfile = 'fournisseur.commande';
|
||||
$classname='CommandeFournisseur';
|
||||
$classpath = 'fourn/class';
|
||||
$module='fournisseur';
|
||||
}
|
||||
|
||||
|
||||
if (! empty($conf->$module->enabled))
|
||||
{
|
||||
$res=dol_include_once('/'.$classpath.'/'.$classfile.'.class.php');
|
||||
|
||||
Reference in New Issue
Block a user