Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aUaQeLnwbb1zTpN7kHeat
16 lines
551 B
Plaintext
16 lines
551 B
Plaintext
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
|
@EndUserText.label: 'Sales order with customer'
|
|
define view entity {{P}}I_SO_CUST
|
|
as select from {{p}}so as so
|
|
association [0..1] to {{p}}cust as _Customer
|
|
on so.customer_id <> _Customer.customer_id
|
|
{
|
|
key so.order_id as order_id,
|
|
_Customer.name as customer_name,
|
|
_Customer.country as country,
|
|
so.net_amount as net_amount,
|
|
case when so.net_amount >= 1000 then 'H'
|
|
when so.net_amount >= 100 then 'M'
|
|
else 'L' end as amount_class
|
|
}
|