dealLate
dealLate($data, $options = array())
Description:
Late - closing date is today or earlier; approval has not been given to all TodoValues.
Options:
You can pass $todoStats if you have them.
Example:
//
$dealLate = $this->Deals->dealLate($data);
//
echo 'This Deal is ' . ($dealLate ? 'late' : 'not late') . '.';
/**
* Late - closing date is today or earlier; approval has not been given to all TodoValues.
*
* $data array() Deal
* return Boolean
*/
public function dealLate($data, $options = array()) {
//
$return = false;
//
if (!$data) {
//
return $return;
}
//
$defaults = array(
'todoStats' => array()
,
);
//
$options = am($defaults , $options);
//
$closingDate = $this->closingDate($data);
//
$return = !$this->dealComplete($data) && date('Y-m-d') >= date('Y-m-d', $closingDate)
? true
: $return;
//
return $return;
}