Step F first pass: 81/92 accepted; budget floor 60 calls; rejected slots moved for regeneration

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 12:10:52 +02:00
parent d3250acfb8
commit 39769afce8
741 changed files with 40573 additions and 317 deletions

View File

@@ -0,0 +1,29 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Green fee per tee time'
define view entity {{P}}I_GREEN_FEE
as select from {{p}}tee as tee
left outer join {{p}}member as mem on mem.member_id = tee.member_id
{
key tee.tee_id as tee_id,
tee.member_id as member_id,
mem.member_kind as member_kind,
tee.day_kind as day_kind,
tee.player_count as player_count,
case
when mem.member_kind = 'J' and tee.day_kind = 'W'
then cast( 8 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'J'
then cast( 12 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S' and tee.day_kind = 'W'
then cast( 20 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S' and tee.day_kind = 'E'
then cast( 30 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S'
then cast( 35 as abap.dec(7,2) ) * tee.player_count
when tee.day_kind = 'W'
then cast( 35 as abap.dec(7,2) ) * tee.player_count
when tee.day_kind = 'E'
then cast( 55 as abap.dec(7,2) ) * tee.player_count
else cast( 60 as abap.dec(7,2) ) * tee.player_count
end as green_fee
}

View File

@@ -0,0 +1,29 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Green fee per tee time'
define view entity {{P}}I_GREEN_FEE
as select from {{p}}tee as tee
inner join {{p}}member as mem on mem.member_id = tee.member_id
{
key tee.tee_id as tee_id,
tee.member_id as member_id,
mem.member_kind as member_kind,
tee.day_kind as day_kind,
tee.player_count as player_count,
case
when mem.member_kind = 'J' or tee.day_kind = 'W'
then cast( 8 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'J'
then cast( 12 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S' and tee.day_kind = 'W'
then cast( 20 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S' and tee.day_kind = 'E'
then cast( 30 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S'
then cast( 35 as abap.dec(7,2) ) * tee.player_count
when tee.day_kind = 'W'
then cast( 35 as abap.dec(7,2) ) * tee.player_count
when tee.day_kind = 'E'
then cast( 55 as abap.dec(7,2) ) * tee.player_count
else cast( 60 as abap.dec(7,2) ) * tee.player_count
end as green_fee
}

View File

@@ -0,0 +1,29 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Green fee per tee time'
define view entity {{P}}I_GREEN_FEE
as select from {{p}}tee as tee
inner join {{p}}member as mem on mem.member_id = tee.member_id
{
key tee.tee_id as tee_id,
tee.member_id as member_id,
mem.member_kind as member_kind,
tee.day_kind as day_kind,
tee.player_count as player_count,
case
when mem.member_kind = 'J' and tee.day_kind = 'W'
then cast( 8 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'J'
then cast( 12 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S' and tee.day_kind = 'Z'
then cast( 20 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S' and tee.day_kind = 'E'
then cast( 30 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S'
then cast( 35 as abap.dec(7,2) ) * tee.player_count
when tee.day_kind = 'W'
then cast( 35 as abap.dec(7,2) ) * tee.player_count
when tee.day_kind = 'E'
then cast( 55 as abap.dec(7,2) ) * tee.player_count
else cast( 60 as abap.dec(7,2) ) * tee.player_count
end as green_fee
}

View File

@@ -0,0 +1,29 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Green fee per tee time'
define view entity {{P}}I_GREEN_FEE
as select from {{p}}tee as tee
inner join {{p}}member as mem on mem.member_id = tee.member_id
{
key tee.tee_id as tee_id,
tee.member_id as member_id,
mem.member_kind as member_kind,
tee.day_kind as day_kind,
tee.player_count as player_count,
case
when mem.member_kind = 'J' and tee.day_kind = 'W'
then cast( 8 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'J'
then cast( 12 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S' and tee.day_kind = 'W'
then cast( 20 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S' or tee.day_kind = 'E'
then cast( 30 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S'
then cast( 35 as abap.dec(7,2) ) * tee.player_count
when tee.day_kind = 'W'
then cast( 35 as abap.dec(7,2) ) * tee.player_count
when tee.day_kind = 'E'
then cast( 55 as abap.dec(7,2) ) * tee.player_count
else cast( 60 as abap.dec(7,2) ) * tee.player_count
end as green_fee
}

View File

@@ -0,0 +1,29 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Green fee per tee time'
define view entity {{P}}I_GREEN_FEE
as select from {{p}}tee as tee
inner join {{p}}member as mem on mem.member_id = tee.member_id
{
key tee.tee_id as tee_id,
tee.member_id as member_id,
mem.member_kind as member_kind,
tee.day_kind as day_kind,
tee.player_count as player_count,
case
when mem.member_kind = 'J' and tee.day_kind = 'W'
then cast( 8 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'J'
then cast( 12 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S' and tee.day_kind = 'W'
then cast( 20 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S' and tee.day_kind = 'E'
then cast( 30 as abap.dec(7,2) ) * tee.player_count
when mem.member_kind = 'S'
then cast( 35 as abap.dec(7,2) ) * tee.player_count
when tee.day_kind <> 'W'
then cast( 35 as abap.dec(7,2) ) * tee.player_count
when tee.day_kind = 'E'
then cast( 55 as abap.dec(7,2) ) * tee.player_count
else cast( 60 as abap.dec(7,2) ) * tee.player_count
end as green_fee
}