From 4f14abc74c903b3425384d38db773265e77ea2ab Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 28 Jan 2009 15:44:25 +0000 Subject: [PATCH] Fix: Abandonned invoice are not late --- htdocs/includes/boxes/box_factures.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/includes/boxes/box_factures.php b/htdocs/includes/boxes/box_factures.php index 77d7ae7b952..f6d9a2706bd 100644 --- a/htdocs/includes/boxes/box_factures.php +++ b/htdocs/includes/boxes/box_factures.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2004-2009 Laurent Destailleur * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -94,7 +94,7 @@ class box_factures extends ModeleBoxes { { $num = $db->num_rows($result); $now=gmmktime(); - + $i = 0; $l_due_date = $langs->trans('Late').' ('.strtolower($langs->trans('DateEcheance')).': %s)'; @@ -103,12 +103,12 @@ class box_factures extends ModeleBoxes { $objp = $db->fetch_object($result); $datelimite=$db->jdate($objp->datelimite); $datec=$db->jdate($objp->datec); - + $picto='bill'; if ($objp->type == 1) $picto.='r'; if ($objp->type == 2) $picto.='a'; $late = ''; - if($objp->paye == 0 && $datelimite < ($now - $conf->facture->warning_delay)) { $late = img_warning(sprintf($l_due_date,dolibarr_print_date($datelimite,'day')));} + if ($objp->paye == 0 && $objp->fk_statut != 3 && $datelimite < ($now - $conf->facture->warning_delay)) { $late = img_warning(sprintf($l_due_date,dolibarr_print_date($datelimite,'day')));} $this->info_box_contents[$i][0] = array('td' => 'align="left" width="16"', 'logo' => $picto,