', '品目 '], aggregate_types: ['発生額'], start_date: fy.start_date, end_date: fy.end_date, account_item_ids: [売上高 ], ).fetch_grouped_aggregate_values (相当する)SQL SELECT item_id, section_id, SUM(amount) AS sales_amount, FROM journal_lines WHERE company_id = 123 AND account_item = '売上高' AND booked_on BETWEEN … GROUP BY item_id, section_id