- generator: budget floor (2x oracle activations, 3x calls), static checks for CDS $parameters and UNION annotation - harness/mutation.py: deterministic mutants of the reference; hidden tests must fail - G0022 revalidated with harness fixes: oracle 100, null 0 - results in docs/faz1-tasarim.md 11f Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
596 B
Plaintext
16 lines
596 B
Plaintext
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
|
@EndUserText.label: 'Sales per product in a period'
|
|
define view entity {{P}}I_SALES_REPORT
|
|
with parameters
|
|
p_from : abap.dats,
|
|
p_to : abap.dats
|
|
as select from {{p}}sales as sale
|
|
{
|
|
key sale.product as product,
|
|
sum( sale.quantity ) as total_qty,
|
|
sum( cast( sale.quantity as abap.dec( 15, 2 ) ) * sale.price ) as total_amount
|
|
}
|
|
where sale.sold_on >= $parameters.p_from
|
|
and sale.sold_on <= $parameters.p_to
|
|
group by sale.product
|