We need answer user's request. Need produce final JSON only, no markdown. Need compute carefully.

Problem: cancelled rows excluded. For active rows: unit_yen * quantity * (100 - discount_percent) / 100, truncate decimal (floor? Japanese 小数点以下切り捨て for positive numbers = floor). subtotal sum line amounts. shipping 363. tax = floor((subtotal + shipping)*8/100). total = subtotal + shipping + tax.

Rows:
L1 active unit155 qty13 disc7 => 155*13=2015; *93/100 = 2015*0.93 = 1873.95? 2015*93=187395 /100=1873.95 floor 1873.
L2 active 265*7=1855 disc0 =>1855.
L3 cancelled exclude.
L4 active 221*6=1326 disc11 => *89/100 = 1326*89=118014 /100=1180.14 floor 1180.
L5 active 412*8=3296 disc0 =>3296.
L6 active 907*3=2721 disc0 =>2721.
L7 active 375*7=2625 disc11 => *89/100 = 2625*89=233625 /100=2336.25 floor 2336.
L8 cancelled exclude.
L9 active 214*12=2568 disc11 => *89/100 = 2568*89=228552 /100=2285.52 floor 2285.

active_ids in original order: L1,L2,L4,L5,L6,L7,L9.
line_amounts_yen: [1873,1855,1180,3296,2721,2336,2285]
subtotal: sum. 1873+1855=3728. +1180=4908. +3296=8204. +2721=10925. +2336=13261. +2285=15546. Check: 1873+1855=3728; 3728+1180=4908; +3296=8204; +2721=10925; +2336=13261; +2285=15546.
subtotal+shipping=15546+363=15909. tax = floor(15909*8/100)=127272/100=1272.72 floor 1272.
total=15546+363+1272=17181.

Need output JSON object with keys active_ids, line_amounts_yen, subtotal_yen, tax_yen, total_yen. Ensure valid JSON. No fences.
