Stage 2 summary at 50 accepted trajectories

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Kral
2026-10-05 18:02:52 +02:00
parent 332fb4601d
commit 5bcd1bf9cd
1230 changed files with 77563 additions and 33 deletions

View File

@@ -0,0 +1,22 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Berth fee'
define view entity {{P}}I_BERTH_FEE
as select from {{p}}berth as berth
inner join {{p}}pier as pier on pier.pier_code = berth.pier_code
{
key berth.berth_id as berth_id,
berth.boat_name as boat_name,
case
when berth.length_m < 8 then 'SMALL'
when berth.length_m <= 15 then 'MEDIUM'
else 'LARGE'
end as size_class,
cast( berth.length_m * 100 as abap.int4 ) as length_cm,
cast( round( ( pier.base_fee + berth.length_m * pier.rate_per_m
+ case when berth.shore_power = 'Y'
then pier.power_fee
else cast( 0 as abap.dec( 10, 2 ) )
end )
* berth.stay_days, 2 )
as abap.dec( 15, 2 ) ) as total_fee
}