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

Rows:
L1 active unit 229 qty6 disc11 => 229*6=1374; *89/100 = 1374*0.89 = 1222.86? 1374*89=122286 /100=1222.86 floor 1222.
L2 active 152*12=1824; *89/100 = 1824*89=162336 /100=1623.36 floor 1623.
L3 cancelled exclude.
L4 active 442*6=2652; *89=236028 /100=2360.28 floor 2360.
L5 active 910*6=5460; disc3 => *97/100 = 5460*97=529620 /100=5296.20 floor 5296.
L6 active 551*9=4959; disc7 => *93/100 = 4959*93=461187 /100=4611.87 floor 4611.
L7 active 703*2=1406; disc0 => 1406.
L8 cancelled exclude.
L9 active 362*8=2896; disc11 => *89=257744 /100=2577.44 floor 2577.

Active ids in original order: L1,L2,L4,L5,L6,L7,L9.
Line amounts: [1222,1623,2360,5296,4611,1406,2577]
Subtotal sum: 1222+1623=2845; +2360=5205; +5296=10501; +4611=15112; +1406=16518; +2577=19095. Check: 1222+1623=2845, +2360=5205, +5296=10501, +4611=15112, +1406=16518, +2577=19095.
Shipping 340 => subtotal+shipping=19435. Tax floor 19435*8/100 = 155480/100=1554.80 floor 1554. Total=19095+340+1554=20989.

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