From 27a72cdd33641741b40ad258f28eac297fa192ae Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 1 Mar 2011 10:26:02 +0000 Subject: [PATCH] Use autoselect into combo box --- htdocs/compta/facture.php | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) 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.='