Dear All Experts,
Good Day
I have one History table where we maintain user and service order records when user create service Order
1st line generated with stage Id "Created" and when he change the stage to Next "In process" then 2nd line generated.
I need to make report their I need to show the difference between two DateTimeValue.
As you saw in image two record generated for one service order with different stages. I need difference that DateTimeValue.
if (historyTable.StageId== 'Created' && historyTable.Progress == SMAServiceOrderProgress::InProcess) { historyTmp.CreatedToInprocessDate = historyTable.createdDateTime; } if (historyTable.StageId== 'In Process' && historyTable.Progress == SMAServiceOrderProgress::InProcess) { historyTmp.InProcessToTodayDate = historyTable.createdDateTime; } historyTmp.ProcessDiff = DateTimeUtil::getDifference(historyTmp.CreatedToInprocessDate , historyTmp.InProcessToTodayDate);
This is not working for me.
*This post is locked for comments