Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changing the way FirstHandleTime is calculated to use Custom Setting

  • Loading branch information...
commit 375eb34a8e58f2ca3bcb23542aa5c14523384aa5 1 parent 2e61a66
@mickle00 authored
View
3  src/classes/TimeLogClass.cls
@@ -27,7 +27,8 @@ public class TimeLogClass {
//myTimeLog.Time_Bucket__c = caseTimeObj.getStatusTimeBucket(myTimeLog.Case_Status__c, myTimeLog.While_Case_Closed__c);
myTimeLog.Included_In_SLA_Time__c = caseTimeObj.isStatusIncludedInSLATime(myTimeLog.Case_Status__c, myTimeLog.While_Case_Closed__c, myTimeLog.While_Closing_Case__c);
myTimeLog.Included_In_AHT__c = caseTimeObj.isStatusIncludedInAHT(myTimeLog.Case_Status__c, myTimeLog.While_Case_Closed__c);
- if (myTimeLog.In_Effect_From__c == null) myTimeLog.In_Effect_From__c = myTimeLog.Most_Recent_Change__c == null ? myTimeLog.In_Effect_Until__c : myTimeLog.Most_Recent_Change__c;
+ if (myTimeLog.In_Effect_From__c == null) myTimeLog.In_Effect_From__c = myTimeLog.Most_Recent_Change__c == null ? myTimeLog.In_Effect_Until__c : myTimeLog.Most_Recent_Change__c;
+ myTimeLog.New_Case_Status_Included_in_AHT__c = caseTimeObj.isStatusIncludedInAHT(myTimeLog.New_Case_Status__c, myTimeLog.While_Closing_Case__c);
//myTimeLog.Business_Time_in_Hours__c = BusinessHours.diff(myTimeLog.Case_Business_Hours_ID__c, myTimeLog.In_Effect_From__c, myTimeLog.In_Effect_Until__c)/3600000.0;
}
}
View
4 src/layouts/Time_Log__c-Time Log Layout.layout
@@ -51,6 +51,10 @@
<behavior>Edit</behavior>
<field>Included_in_AHT__c</field>
</layoutItems>
+ <layoutItems>
+ <behavior>Edit</behavior>
+ <field>New_Case_Status_Included_in_AHT__c</field>
+ </layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
View
6 src/objects/Case_Time__c.object
@@ -136,9 +136,9 @@ if logged time changes, run is stop status method</description>
<label>First Handle Time</label>
<summarizedField>Time_Log__c.In_Effect_Until__c</summarizedField>
<summaryFilterItems>
- <field>Time_Log__c.New_Case_Status__c</field>
- <operation>notEqual</operation>
- <value>New, Reply: Customer Email</value>
+ <field>Time_Log__c.New_Case_Status_Included_in_AHT__c</field>
+ <operation>equals</operation>
+ <value>TRUE</value>
</summaryFilterItems>
<summaryForeignKey>Time_Log__c.Case_Time__c</summaryForeignKey>
<summaryOperation>min</summaryOperation>
View
7 src/objects/Time_Log__c.object
@@ -153,6 +153,13 @@
<unique>false</unique>
</fields>
<fields>
+ <fullName>New_Case_Status_Included_in_AHT__c</fullName>
+ <defaultValue>false</defaultValue>
+ <externalId>false</externalId>
+ <label>New Case Status Included in AHT?</label>
+ <type>Checkbox</type>
+ </fields>
+ <fields>
<fullName>New_Case_Status__c</fullName>
<externalId>false</externalId>
<label>New Case Status</label>
Please sign in to comment.
Something went wrong with that request. Please try again.