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 386. tax = floor((subtotal + shipping)*8/100). total = subtotal + shipping + tax.

Rows:
L1 active unit 916 qty3 disc7 => 916*3=2748; *93/100 = 2748*0.93 = 2555.64? 2748*93=255564 /100=2555.64 floor 2555.
L2 active 207*4=828; *93/100=770.04? 828*93=77004 /100=770.04 floor 770.
L3 cancelled exclude.
L4 active 801*2=1602; disc0 =>1602.
L5 active 848*5=4240; disc3 => *97/100 = 4112.8? 4240*97=411280 /100=4112.8 floor 4112.
L6 active 384*12=4608; disc3 => *97/100 = 4469.76? 4608*97=446976 /100=4469.76 floor 4469.
L7 active 808*2=1616; disc3 => *97/100 = 1567.52? 1616*97=156752 /100=1567.52 floor 1567.
L8 cancelled exclude.
L9 active 581*9=5229; disc0 =>5229.

Active ids in original order: L1,L2,L4,L5,L6,L7,L9.
Line amounts: [2555,770,1602,4112,4469,1567,5229]
Subtotal sum: 2555+770=3325; +1602=4927; +4112=9039; +4469=13508; +1567=15075; +5229=20304. Check: 2555+770=3325, +1602=4927, +4112=9039, +4469=13508, +1567=15075, +5229=20304.
Shipping 386 => subtotal+shipping=20690. Tax = floor(20690*8/100)=floor(165520/100=1655.2)=1655. Total=20304+386+1655=22345? 20304+386=20690; +1655=22345.

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