diff options
Diffstat (limited to 'include/home.php')
-rw-r--r-- | include/home.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/home.php b/include/home.php index d9832fd..0aca402 100644 --- a/include/home.php +++ b/include/home.php @@ -86,7 +86,7 @@ require('header.php'); </div> <div class="col-lg-3 col-md-3 col-sm-6"> <?php - $count = count(BusinessAdmin::getOfferIds($_pdo, array("`accepted`=1", "`end_date` <= CURDATE()", "`invoice_date` IS NULL OR `invoice_date`='1970-01-01'"))); + $count = count(BusinessAdmin::getOfferIds($_pdo, array("`accepted`=1", "`end_date` <= CURDATE()", "`invoice_date` IS NULL OR `invoice_date`='1970-01-01' OR `invoice_date`>CURDATE()"))); ?> <div class="panel panel-<?=($count==0 ? 'primary' : ($count < 3) ? 'green' : ($count < 5 ? 'yellow' : 'red'))?>"> <div class="panel-heading"> @@ -197,7 +197,7 @@ require('header.php'); </thead> <tbody> <?php - $offers = BusinessAdmin::getOffers($_pdo, array("`accepted`=1", "`end_date` <= CURDATE()", "`invoice_date` IS NULL OR `invoice_date`='1970-01-01'")); + $offers = BusinessAdmin::getOffers($_pdo, array("`accepted`=1", "`end_date` <= CURDATE()", "`invoice_date` IS NULL OR `invoice_date`='1970-01-01' OR `invoice_date`>CURDATE()")); foreach ($offers as $offer) { echo "<tr>"; echo "<td>{$offer->getId()}</td>"; |