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

Task: Given rows. Exclude cancelled. For active rows compute unit_yen*quantity*(100-discount_percent)/100, truncate decimal (floor? Japanese 切り捨て for positive means floor/truncate toward zero). Sum line amounts = subtotal_yen. Shipping 409. tax_yen = floor((subtotal+409)*8/100). total = subtotal+409+tax. Output keys: active_ids (original order), line_amounts_yen (same order), subtotal_yen, tax_yen, total_yen. JSON object one.

Let's compute.

Rows:
L1 active: unit 629 qty5 discount11 => factor 89/100. 629*5=3145. *89 = 3145*89 = 3145*90 -3145 = 283050-3145=279905. /100 = 2799.05 -> truncate 2799.
L2 active: 388*3=1164 discount0 => 1164.
L3 cancelled exclude.
L4 active: 320*5=1600 discount7 => *93/100 = 1600*93=148800 /100=1488 exactly.
L5 active: 375*4=1500 discount11 => *89=133500 /100=1335 exactly.
L6 active: 634*8=5072 discount0 => 5072.
L7 active: 329*12=3948 discount0 => 3948.
L8 cancelled exclude.
L9 active: 179*6=1074 discount3 => *97=1074*97 = 1074*100 - 1074*3 = 107400-3222=104178 /100=1041.78 -> truncate 1041.

Active ids: L1,L2,L4,L5,L6,L7,L9.
Line amounts: 2799,1164,1488,1335,5072,3948,1041.
Subtotal sum: let's sum carefully.
2799+1164=3963.
+1488=5451.
+1335=6786.
+5072=11858.
+3948=15806.
+1041=16847.
Subtotal 16847.
Shipping 409 => subtotal+shipping=17256.
Tax = floor(17256*8/100). 17256*8=138048. /100=1380.48 -> 1380.
Total = 16847+409+1380 = 18636? 16847+409=17256; +1380=18636.

Need output JSON object with keys exactly. Ensure integers. No markdown. Could include only JSON. Need maybe active_ids array strings, line_amounts_yen array ints.

Double-check if discount formula: unit_yen×quantity×(100−discount_percent)÷100. For L1: 629*5*89/100 = 2799.05 floor 2799. Yes.
L9: 179*6*97/100 = 1041.78 floor 1041.

Potential nuance: "小数点以下を切り捨てる" could mean truncate after each row. Yes.

Need final JSON only. Ensure valid JSON.
