15 lines
449 B
Plaintext
15 lines
449 B
Plaintext
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
|
@EndUserText.label: 'Spirit output per still'
|
|
define view entity {{P}}I_STILL_OUTPUT
|
|
as select from {{p}}runlog
|
|
{
|
|
key still_id as still_id,
|
|
count( * ) as runs,
|
|
sum( wash_litre ) as wash_l,
|
|
sum( spirit_litre ) as spirit_l,
|
|
count( distinct cask_no ) as casks,
|
|
max( run_date ) as last_run
|
|
}
|
|
where spirit_litre <= 0
|
|
group by still_id
|