Skip to content

Commit

Permalink
Fix: Error when amount not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 9, 2011
1 parent 3617a36 commit 092f0dc
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions htdocs/fourn/facture/paiement.php
Expand Up @@ -104,14 +104,17 @@
}
}

/*
\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>';
$error++;
}
*/
if ($total == 0)
{
$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++;
}

if (! $error)
{
Expand Down

0 comments on commit 092f0dc

Please sign in to comment.