@AccessControl.authorizationCheck: #NOT_REQUIRED @EndUserText.label: 'Batch quality' define view entity {{P}}I_BATCH_QUALITY as select from {{p}}batch { key batch_id as batch_id, product as product, site as site, prod_date as prod_date, bars_total as bars_total, bars_good as bars_good, bars_total - bars_good as bars_scrap } where bars_total > 0