I believe so. Sorry it only got rid of one of your errant Work Orders.
Would definitely be interested in what's causing the other two. I have seen some rounding issues before, but not 24 hours. I have also occasionally seen it get out of sync with some mobile transactions and on the materials side with lots of Issues/Returns for the same Work Order. Do you happen to have any "negative" Labor Entries on the other two?
That's an interesting one.
------------------------------
Steve Platt
Georgia Building Authority
------------------------------
Original Message:
Sent: Fri October 29, 2021 09:55 AM
From: User1971
Subject: WO actual labor hours vs. LABTRANS regular hours
Thanks Steve. Good catch!
Users just started entering premium pay a couple of weeks ago. So I didn't think of it.
Do you think adding regularhrs + premiumpayhours together would be the correct way of handling it?
select
wo.wonum,
wo.istask,
round(wo.actlabhrs,1) as wo_actlabhrs,
round(lab.regpremhrs,1) as lab_regpremhrs,
round(wo.actlabhrs - nvl(lab.regpremhrs,0),3) as hrs_difference
from
maximo.workorder wo
left join
(
select
refwo,
sum(regularhrs + nvl(premiumpayhours,0)) as regpremhrs
from
maximo.labtrans
where
genapprservreceipt = 1 --aka "Approved"
group by
refwo
) lab
on wo.wonum = lab.refwo
where
abs(wo.actlabhrs - nvl(lab.regpremhrs,0)) >= 0.1
Accounting for premium pay hours will eliminate WO2011 from the resultset (which is good).
Thanks again.
#Maximo
#AssetandFacilitiesManagement