Fix: Error when amount not provided
This commit is contained in:
parent
3617a36f06
commit
092f0dcf77
@ -104,14 +104,17 @@ if ($action == 'add_paiement')
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
if ($total == 0)
|
||||||
\TODO A activer qd gestion avoir active et que creation facture fournisseur negative interdit
|
|
||||||
if ($total <= 0)
|
|
||||||
{
|
{
|
||||||
$mesg = '<div class="error">'.$langs->trans('ErrorFieldRequired',$langs->transnoentities('Amount')).'</div>';
|
$mesg = '<div class="error">'.$langs->transnoentities('ErrorFieldRequired',$langs->trans('PaymentAmount')).'</div>';
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($datepaye))
|
||||||
|
{
|
||||||
|
$fiche_erreur_message = '<div class="error">'.$langs->trans('ErrorFieldRequired',$langs->transnoentities('Date')).'</div>';
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user