From 2c12d99d42529f4821e2612bf440f80318bdab6a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 21 Dec 2011 17:29:04 +0100 Subject: [PATCH] Fix: [ bug #248 ] Send by mail doesn't find the files in provider's invoices --- htdocs/fourn/facture/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 357ad3df07b..57464b1a448 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -677,7 +677,7 @@ if ($action == 'send' && ! $_POST['addfile'] && ! $_POST['removedfile'] && ! $_P if ($result > 0) { $ref = dol_sanitizeFileName($object->ref); - $file = $conf->fournisseur->facture->dir_output . '/' . $ref . '/' . $ref . '.pdf'; + $file = $conf->fournisseur->facture->dir_output.'/'.get_exdir($object->id,2).$ref.'/'.$ref.'.pdf'; if (is_readable($file)) { @@ -1831,7 +1831,7 @@ else if ($action == 'presend') { $ref = dol_sanitizeFileName($object->ref); - $file = $conf->fournisseur->facture->dir_output.'/'.get_exdir($object->id,2).$ref.'.pdf'; + $file = $conf->fournisseur->facture->dir_output.'/'.get_exdir($object->id,2).$ref.'/'.$ref.'.pdf'; print '
'; print_titre($langs->trans('SendBillByMail'));