diff options
author | Camil Staps | 2015-02-24 10:09:56 +0100 |
---|---|---|
committer | Camil Staps | 2015-02-24 10:09:56 +0100 |
commit | 1da3a53285bf7693e1e53f0c6a541cd7cbfb9a45 (patch) | |
tree | 1f65c663fee170d60c7694586827a90b19b94b24 /include/home.php | |
parent | Fix for long contact names in currently active offers (diff) |
Active offers can have an invoice
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 219c205..b1e21a3 100644 --- a/include/home.php +++ b/include/home.php @@ -61,7 +61,7 @@ require('header.php'); </div> <div class="col-lg-4 col-md-4 col-sm-6"> <?php - $count = count(BusinessAdmin::getOfferIds($_pdo, array("`accepted`=1", "`start_date` <= CURDATE()", "`end_date` >= CURDATE()", "`invoice_date` IS NULL OR `invoice_date` = '1970-01-01'"))); + $count = count(BusinessAdmin::getOfferIds($_pdo, array("`accepted`=1", "`start_date` <= CURDATE()", "`end_date` >= CURDATE()"))); ?> <div class="panel panel-<?=($count==0 ? 'primary' : ($count < 3) ? 'green' : ($count < 5 ? 'yellow' : 'red'))?>"> <div class="panel-heading"> @@ -120,7 +120,7 @@ require('header.php'); <!-- /.panel-heading --> <div class="panel-body"> <?php - $offers = BusinessAdmin::getOffers($_pdo, array("`accepted`=1", "`start_date` <= CURDATE()", "`end_date` >= CURDATE()", "`invoice_date` IS NULL OR `invoice_date` = '1970-01-01'")); + $offers = BusinessAdmin::getOffers($_pdo, array("`accepted`=1", "`start_date` <= CURDATE()", "`end_date` >= CURDATE()")); $list = array(); foreach ($offers as $offer) { $start = BusinessAdmin::formatDate($offer->getStartDate(), false); |