<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions and answers in 2014 - r6640</title>
<link>https://overflow.efficy.io/?qa=qa/developers/bug-fixes/major-bug-fixes/2014-r6640</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: R6640 - Actions not displayed in the Agenda</title>
<link>https://overflow.efficy.io/?qa=888/r6640-actions-not-displayed-in-the-agenda&amp;show=2034#a2034</link>
<description>&lt;p&gt;The query for SQL Server is not correct, it will create rounded dates, so actions before noon are today and actions in the afternoon will become tommorow.&lt;/p&gt;

&lt;p&gt;The correct query to generate the delphi value for P&amp;#95;D&amp;#95;BEGIN and P&amp;#95;D&amp;#95;End is :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;UPDATE au
SET 
    P_D_BEGIN = floor(cast(a.D_BEGIN as float)) + 2, 
    P_D_END =  floor(cast(a.D_END as float)) + 2, 
    ISAGENDA = (SELECT
    CASE 
        WHEN a.PLANNED = '1' AND au.ISACTIVE = '1' AND (au.STATUS IS NULL OR au.STATUS IN ('', '0', '2', '3', '5', '6')) 
        THEN '1' 
        ELSE '0' 
    END)
FROM
 ACTI_USER au
LEFT JOIN 
 ACTIONS a ON a.K_action = au.k_action;
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>2014 - r6640</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=888/r6640-actions-not-displayed-in-the-agenda&amp;show=2034#a2034</guid>
<pubDate>Tue, 22 Nov 2016 10:50:40 +0000</pubDate>
</item>
</channel>
</rss>