SELECT DISTINCT
(select cast(cast(sum(New_Durationorig) as decimal(13,2)) / 60 as
decimal (13,2)) * 95 FROM FilteredBB_urenregistratie
where BB_werkzaamhedenName not like 'GENERIEK%'
AND datepart(month,bb_datum) = @TDate
AND datepart(year,bb_datum)= @TYear
AND BB_ProjectIdName = @TProject
AND BB_Billable = 1
AND bb_momentvandedagname = 'Kantoortijden(08:30-17:30)') +
(select cast(cast(sum(New_Durationorig) as decimal(13,2)) / 60 as decimal(13,2)) * 143 FROM FilteredBB_urenregistratie
where BB_werkzaamhedenName not like 'GENERIEK%'
AND datepart(month,bb_datum) = @TDate
AND datepart(year,bb_datum)= @TYear
AND BB_ProjectIdName = @TProject
AND BB_Billable = 1
AND bb_momentvandedagname = 'Avond(17:30-24:00)') +
(select cast(cast(sum(New_Durationorig) as decimal(13,2)) / 60 as decimal(13,2)) * 190 FROM FilteredBB_urenregistratie
where BB_werkzaamhedenName not like 'GENERIEK%'
AND datepart(month,bb_datum) = @TDate
AND datepart(year,bb_datum)= @TYear
AND BB_ProjectIdName = @TProject
AND BB_Billable = 1
AND bb_momentvandedagname = 'Weekend') as TOTAAL,
|