Fix: Can validate an order with amount of 0

This commit is contained in:
Laurent Destailleur
2008-03-04 08:53:51 +00:00
parent 6fa2bf13f7
commit 0cad028fb8

View File

@@ -1659,7 +1659,7 @@ else
print '<div class="tabsAction">';
// Valid
if ($commande->statut == 0 && $numlines > 0 && $user->rights->commande->valider)
if ($commande->statut == 0 && $commande->total_ttc >= 0 && $numlines > 0 && $user->rights->commande->valider)
{
print '<a class="butAction" ';
if ($conf->use_javascript_ajax && $conf->global->MAIN_CONFIRM_AJAX)