Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aUaQeLnwbb1zTpN7kHeat
12 lines
338 B
Plaintext
12 lines
338 B
Plaintext
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
|
@EndUserText.label: 'Cost of each cleaning job'
|
|
define view entity {{P}}I_JOB_COST
|
|
as select from {{p}}cln_job
|
|
{
|
|
key job_id as job_id,
|
|
site_id as site_id,
|
|
duration as work_hours,
|
|
cast( duration * hour_rate as abap.dec(15,2) ) as job_cost
|
|
}
|
|
where job_status <> 'C'
|