|
@@ -547,7 +547,7 @@ class Notify
|
|
|
break;
|
|
|
case 'ORDER_SUPPLIER_VALIDATE':
|
|
|
$link = '<a href="'.$urlwithroot.'/fourn/commande/card.php?id='.$object->id.'&entity='.$object->entity.'">'.$newref.'</a>';
|
|
|
- $dir_output = $conf->fournisseur->commande->dir_output;
|
|
|
+ $dir_output = $conf->fournisseur->commande->multidir_output[$object->entity]."/".get_exdir(0, 0, 0, 1, $object);
|
|
|
$object_type = 'order_supplier';
|
|
|
$mesg = $outputlangs->transnoentitiesnoconv("Hello").",\n\n";
|
|
|
$mesg .= $outputlangs->transnoentitiesnoconv("EMailTextOrderValidatedBy", $link, $user->getFullName($outputlangs));
|
|
@@ -555,7 +555,7 @@ class Notify
|
|
|
break;
|
|
|
case 'ORDER_SUPPLIER_APPROVE':
|
|
|
$link = '<a href="'.$urlwithroot.'/fourn/commande/card.php?id='.$object->id.'&entity='.$object->entity.'">'.$newref.'</a>';
|
|
|
- $dir_output = $conf->fournisseur->commande->dir_output;
|
|
|
+ $dir_output = $conf->fournisseur->commande->multidir_output[$object->entity]."/".get_exdir(0, 0, 0, 1, $object);
|
|
|
$object_type = 'order_supplier';
|
|
|
$mesg = $outputlangs->transnoentitiesnoconv("Hello").",\n\n";
|
|
|
$mesg .= $outputlangs->transnoentitiesnoconv("EMailTextOrderApprovedBy", $link, $user->getFullName($outputlangs));
|
|
@@ -563,7 +563,7 @@ class Notify
|
|
|
break;
|
|
|
case 'ORDER_SUPPLIER_REFUSE':
|
|
|
$link = '<a href="'.$urlwithroot.'/fourn/commande/card.php?id='.$object->id.'&entity='.$object->entity.'">'.$newref.'</a>';
|
|
|
- $dir_output = $conf->fournisseur->commande->dir_output;
|
|
|
+ $dir_output = $conf->fournisseur->commande->multidir_output[$object->entity]."/".get_exdir(0, 0, 0, 1, $object);
|
|
|
$object_type = 'order_supplier';
|
|
|
$mesg = $outputlangs->transnoentitiesnoconv("Hello").",\n\n";
|
|
|
$mesg .= $outputlangs->transnoentitiesnoconv("EMailTextOrderRefusedBy", $link, $user->getFullName($outputlangs));
|
|
@@ -815,7 +815,7 @@ class Notify
|
|
|
break;
|
|
|
case 'ORDER_SUPPLIER_VALIDATE':
|
|
|
$link = '<a href="'.$urlwithroot.'/fourn/commande/card.php?id='.$object->id.'&entity='.$object->entity.'">'.$newref.'</a>';
|
|
|
- $dir_output = $conf->fournisseur->commande->dir_output;
|
|
|
+ $dir_output = $conf->fournisseur->commande->multidir_output[$object->entity]."/".get_exdir(0, 0, 0, 1, $object);
|
|
|
$object_type = 'order_supplier';
|
|
|
$mesg = $langs->transnoentitiesnoconv("Hello").",\n\n";
|
|
|
$mesg .= $langs->transnoentitiesnoconv("EMailTextOrderValidatedBy", $link, $user->getFullName($langs));
|
|
@@ -823,7 +823,7 @@ class Notify
|
|
|
break;
|
|
|
case 'ORDER_SUPPLIER_APPROVE':
|
|
|
$link = '<a href="'.$urlwithroot.'/fourn/commande/card.php?id='.$object->id.'&entity='.$object->entity.'">'.$newref.'</a>';
|
|
|
- $dir_output = $conf->fournisseur->commande->dir_output;
|
|
|
+ $dir_output = $conf->fournisseur->commande->multidir_output[$object->entity]."/".get_exdir(0, 0, 0, 1, $object);
|
|
|
$object_type = 'order_supplier';
|
|
|
$mesg = $langs->transnoentitiesnoconv("Hello").",\n\n";
|
|
|
$mesg .= $langs->transnoentitiesnoconv("EMailTextOrderApprovedBy", $link, $user->getFullName($langs));
|
|
@@ -831,7 +831,7 @@ class Notify
|
|
|
break;
|
|
|
case 'ORDER_SUPPLIER_APPROVE2':
|
|
|
$link = '<a href="'.$urlwithroot.'/fourn/commande/card.php?id='.$object->id.'&entity='.$object->entity.'">'.$newref.'</a>';
|
|
|
- $dir_output = $conf->fournisseur->commande->dir_output;
|
|
|
+ $dir_output = $conf->fournisseur->commande->multidir_output[$object->entity]."/".get_exdir(0, 0, 0, 1, $object);
|
|
|
$object_type = 'order_supplier';
|
|
|
$mesg = $langs->transnoentitiesnoconv("Hello").",\n\n";
|
|
|
$mesg .= $langs->transnoentitiesnoconv("EMailTextOrderApprovedBy", $link, $user->getFullName($langs));
|