diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index b0e26a914bb..04157334410 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -548,6 +548,7 @@ if ($_POST['action'] == 'add' && $user->rights->facture->creer) $object->type = 1; $facid=$object->createFromCurrent($user); + if ($facid <= 0) $mesg=$object->error; } } @@ -1426,6 +1427,17 @@ if ($_GET['action'] == 'create') } $absolute_discount=$soc->getAvailableDiscounts(); + + if ($conf->use_javascript_ajax) + { + print ''; + } + print '
'; print ''; print ''; @@ -1555,12 +1567,12 @@ if ($_GET['action'] == 'create') print '>'; print ''; $text=$langs->trans("InvoiceReplacementAsk").' '; - $text.=''; - $text.='