Task Completion Notification Alert within a template
<pre><code>if  ($this-&gt;id == NULL AND ($this-&gt;status_id == '62' OR $this-&gt;status_id = '63'))
    {
        $notify_url = Route::get('applications')-&gt;uri(array('controller' =&gt; 'calibration', 'action' =&gt; 'details', 'id' =&gt; $this-&gt;id));

        Notify::create(Kohana::$config-&gt;load('tip.top'), 'Calibration',
            $this-&gt;id.': '.$this-&gt;description,

            Route::get('applications')-&gt;uri(array('controller' =&gt; 'calibration', 'action' =&gt; 'details', 'id' =&gt; $this-&gt;id))

        );
    }
</code></pre>

<p>Hi,</p>

<p>I have this code which should send me a notification when the the ID of the record is not NULL , the status of the record is not "In Progress" and the status of the record is "Complete", it should only send me a notification then.</p>

<p>It sends me notifications the complete opposite. When I refresh a blank record &amp; when I add a record, when the status is "In Progress" it send notifications</p>

<p>Any help would,d be appreciated. </p>
