diff options
author | Camil Staps | 2015-04-26 00:01:36 +0200 |
---|---|---|
committer | Camil Staps | 2015-04-26 00:01:36 +0200 |
commit | f8b607fb9f4d7c0b2cdbc06f1959dc69d73a1a9a (patch) | |
tree | 8c285ef6eae9c99f2119580b8138d147cae51c04 /include/home.php | |
parent | Hide collapse menu on small screens (diff) |
Fixed finished offers
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>"; |