From 0cad028fb8ee6622f1720b56ea536bf34d25fbb8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 4 Mar 2008 08:53:51 +0000 Subject: [PATCH] Fix: Can validate an order with amount of 0 --- htdocs/commande/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 83206e63911..3af370fb4e1 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1659,7 +1659,7 @@ else print '
'; // 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 'use_javascript_ajax && $conf->global->MAIN_CONFIRM_AJAX)