Revize 2bd3da8a
Přidáno uživatelem Ondřej Fibich před téměř 6 roky(ů)
application/helpers/callback.php | ||
---|---|---|
{
|
||
switch ($message->type)
|
||
{
|
||
case Message_Model::BIG_DEBTOR_MESSAGE:
|
||
|
||
if ($item->balance < Settings::get('big_debtor_boundary')
|
||
&& !$item->interrupt
|
||
&& ($item->type != Member_Model::TYPE_FORMER)
|
||
&& (!$item->whitelisted || $message->ignore_whitelist))
|
||
{
|
||
$selected = Notifications_Controller::ACTIVATE;
|
||
}
|
||
|
||
break;
|
||
|
||
case Message_Model::DEBTOR_MESSAGE:
|
||
|
||
if ($item->balance < Settings::get('debtor_boundary')
|
||
if ($item->balance >= Settings::get('big_debtor_boundary')
|
||
&& $item->balance < Settings::get('debtor_boundary')
|
||
&& !$item->interrupt
|
||
&& ($item->type != Member_Model::TYPE_FORMER)
|
||
&& (!$item->whitelisted || $message->ignore_whitelist))
|
Také k dispozici: Unified diff
Fixes #1096: Big debtor message + notification auto activation e-mail report [develop]