Skip to content
Snippets Groups Projects
Commit e88a3758 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Gestion erreur plus complete

parent 5313528b
No related branches found
No related tags found
No related merge requests found
...@@ -115,11 +115,14 @@ if (($_POST['action'] == 'confirm_deleteproductline' && $_POST['confirm'] == 'ye ...@@ -115,11 +115,14 @@ if (($_POST['action'] == 'confirm_deleteproductline' && $_POST['confirm'] == 'ye
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf); $outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs",$conf);
$outputlangs->setDefaultLang($_REQUEST['lang_id']); $outputlangs->setDefaultLang($_REQUEST['lang_id']);
} }
facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
$result=facture_pdf_create($db, $fac->id, '', $fac->modelpdf, $outputlangs);
if ($result > 0)
{
Header('Location: '.$_SERVER["PHP_SELF"].'?facid='.$_GET['facid']); Header('Location: '.$_SERVER["PHP_SELF"].'?facid='.$_GET['facid']);
exit; exit;
} }
}
else else
{ {
$mesg='<div clas="error">'.$fac->error.'</div>'; $mesg='<div clas="error">'.$fac->error.'</div>';
...@@ -1146,6 +1149,8 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post ...@@ -1146,6 +1149,8 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post
} }
} }
llxHeader('',$langs->trans('Bill'),'HelpInvoice'); llxHeader('',$langs->trans('Bill'),'HelpInvoice');
$html = new Form($db); $html = new Form($db);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment