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? For positive integer division floor/truncate same). Then subtotal sum. Shipping 340. tax = floor((subtotal+shipping)*8/100). total = subtotal+shipping+tax. Output keys: active_ids (original order), line_amounts_yen (same order), subtotal_yen, tax_yen, total_yen. JSON object only.

Let's compute.

Rows:
L1 active: unit 229 qty 6 disc 11 => factor 89/100. 229*6=1374. *89 = 1374*89 = 1374*90 -1374 = 123660-1374=122286. /100 = 1222.86 => truncate 1222.
L2 active: 152*12=1824. *89 = 1824*89 = 1824*90 -1824 = 164160-1824=162336. /100=1623.36 => 1623.
L3 cancelled exclude.
L4 active: 442*6=2652. *89 = 2652*89 = 2652*90 -2652 = 238680-2652=236028. /100=2360.28 => 2360.
L5 active: 910*6=5460. disc 3 => 97/100. 5460*97 = 5460*100 -5460*3 = 546000-16380=529620. /100=5296.20 => 5296.
L6 active: 551*9=4959. disc 7 => 93/100. 4959*93 = 4959*100 -4959*7 = 495900-34713=461187. /100=4611.87 => 4611.
L7 active: 703*2=1406. disc 0 => 100/100 => 1406.
L8 cancelled exclude.
L9 active: 362*8=2896. disc 11 => 89/100. 2896*89 = 2896*90 -2896 = 260640-2896=257744. /100=2577.44 => 2577.

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

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 truncation: "小数点以下を切り捨てる" for positive means floor. Good.

Potential nuance: unit_yen×quantity×(100−discount_percent)÷100. If integer division after multiplication? Yes. Could compute as integer division floor. All positive.

Need final JSON. Ensure no trailing commas.
