Fix: Supplier is mandatory into adding invoice suppliers

This commit is contained in:
simnandez 2012-12-30 10:26:18 +01:00
parent f0f45b70da
commit 9732a2f336

View File

@ -230,7 +230,7 @@ elseif ($action == 'add' && $user->rights->fournisseur->facture->creer)
$datefacture=dol_mktime(12,0,0,$_POST['remonth'],$_POST['reday'],$_POST['reyear']);
$datedue=dol_mktime(12,0,0,$_POST['echmonth'],$_POST['echday'],$_POST['echyear']);
if (! GETPOST('socid','int')<1)
if (GETPOST('socid','int')<1)
{
$mesg='<div class="error">'.$langs->trans('ErrorFieldRequired',$langs->transnoentities('Supplier')).'</div>';
$action='create';