Review fixes G0019, G0108: added hidden tests; revalidated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aUaQeLnwbb1zTpN7kHeat
This commit is contained in:
Kral
2026-10-03 16:35:20 +02:00
parent 7510131a7d
commit 0e96c6708e
31 changed files with 632 additions and 608 deletions

View File

@@ -0,0 +1,32 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Call charge'
define view entity {{P}}I_CALL_CHARGE
as select from {{p}}calls
{
key call_id as call_id,
customer as customer,
cast( ceil( cast( duration_sec as abap.dec(15,2) ) / 60 ) as abap.int4 ) as billable_min,
cast(
case dest_type
when 'N' then 9
when 'I' then 25
else 15
end as abap.dec(5,2)
) / 100 as rate,
cast(
round(
cast( ceil( cast( duration_sec as abap.dec(15,2) ) / 60 ) as abap.dec(15,2) )
* ( cast(
case dest_type
when 'N' then 9
when 'I' then 25
else 16
end as abap.dec(5,2)
) / 100 )
* case when duration_sec > 1800
then cast( 90 as abap.dec(5,2) ) / 100
else cast( 100 as abap.dec(5,2) ) / 100
end
, 2 )
as abap.dec(15,2) ) as charge
}