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

Rows:
L1 active unit 629 qty5 disc11 => 629*5=3145; *89/100 = 3145*0.89 = 2799.05? 3145*89=279905 /100=2799.05 floor 2799.
L2 active 388*3=1164 disc0 =>1164.
L3 cancelled exclude.
L4 active 320*5=1600 disc7 => *93/100=1488 exactly? 1600*93=148800/100=1488.
L5 active 375*4=1500 disc11 => *89/100=1335 exactly? 1500*89=133500/100=1335.
L6 active 634*8=5072 disc0 =>5072.
L7 active 329*12=3948 disc0 =>3948.
L8 cancelled exclude.
L9 active 179*6=1074 disc3 => *97/100=1041.78? 1074*97=104178 /100=1041.78 floor 1041.

active_ids original order: L1,L2,L4,L5,L6,L7,L9.
line_amounts_yen: [2799,1164,1488,1335,5072,3948,1041]
subtotal = sum: 2799+1164=3963; +1488=5451; +1335=6786; +5072=11858; +3948=15806; +1041=16847.
shipping 409 => subtotal+shipping=17256. tax = floor(17256*8/100)=138048/100=1380.48 floor 1380.
total=16847+409+1380=18636.

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