@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 >= 1001 then 'H' when so.net_amount >= 100 then 'M' else 'L' end as amount_class }