We need answer in Japanese likely. User asks: fix Python function bug. Answer only function definition, no import. Need use only facts? It's coding. Need produce concise. Need analyze bug.

Original:
def invoice_total(rows, shipping_yen):
    subtotal = 0
    for row in rows:
        subtotal += round(row['unit_yen'] * row['quantity'] * (1-row['discount_percent']/100))
    return round(subtotal*1.1)+shipping_yen

Spec: rows list dicts. status active only. integer unit_yen quantity discount_percent. For each row compute unit_yen*quantity*(100-discount_percent)//100 and sum. Then add shipping_yen, then add tax 10% of total truncated decimal (floor? 小数点以下を切り捨て). Negative not input. Large integers no rounding error. Empty array still shipping and tax. Do not modify input.

Need fix: filter status == 'active'. Use integer arithmetic: row['unit_yen'] * row['quantity'] * (100 - row['discount_percent']) // 100. Sum. total = subtotal + shipping_yen. tax = total * 10 // 100? Since 10% and truncate decimal. For nonnegative integer total, total * 10 // 100 = total // 10? But 10% of total: total * 10 // 100. Return total + tax. Or total + total * 10 // 100. Need ensure large ints no float. Use // integer division. Since negative not input, floor/truncate same. If negative? not needed. Could use (total * 110) // 100? Spec: add shipping, then add tax 10% truncated. total + total*10//100. Equivalent to total*110//100? For nonnegative integer, total + floor(total*0.1) = floor(total*1.1)? Since total integer, floor(total + total/10) = total + floor(total/10). total*110//100 = floor(total*1.1) = total + floor(total/10) because total integer? Yes. But spec says add tax separately; either okay. Use total + total * 10 // 100.

Need only function definition. No imports. Maybe include type? Not necessary. Need not modify input: don't mutate rows. Use row.get? Spec says status active. If missing? Not specified. Could use row['status'] == 'active'. If missing KeyError. But spec rows have status? It says statusがactiveの行だけ. Could assume key exists. To be robust use row.get('status') == 'active'? But if missing, not active. Does that violate? Probably okay. But if status key absent? Not specified. Use row.get to avoid error? But maybe tests expect only active. row.get('status') == 'active' is safe. But if status value not string? okay.

Need consider discount_percent integer. Use (100 - row['discount_percent']) //? Actually formula: unit_yen*quantity*(100-discount_percent)//100. Multiplication before division. Python // floor. Nonnegative. Good.

Potential issue: original uses round and float. Need integer.

Return: total = subtotal + shipping_yen; return total + total * 10 // 100.

Need ensure empty rows: subtotal 0, total shipping, tax shipping*10//100.

Could write:
def invoice_total(rows, shipping_yen):
    subtotal = 0
    for row in rows:
        if row.get('status') == 'active':
            subtotal += row['unit_yen'] * row['quantity'] * (100 - row['discount_percent']) // 100
    total = subtotal + shipping_yen
    return total + total * 10 // 100

Need answer only function definition. No markdown? User says 回答はimportを含まない関数定義だけ. So output code only. Could include triple backticks? That's not function definition? Better plain code. Ensure no imports.

Double-check tax: "その合計に税率10%を掛け小数点以下を切り捨てた税を加える" Means total = subtotal + shipping; tax = floor(total * 0.10); return total + tax. For integer total, total * 10 // 100. If total=105, tax=10, return 115. total*110//100=115. Good. If total=9, tax=0, return 9. Good.

Need maybe use row['status'] not get? If tests include missing status? get safer. But if row is not dict? no.

Need not modify input. We don't.

Potential nuance: discount_percent could be 100? Then zero. If >100? negative not input? discount_percent maybe 0-100. If >100, formula negative? But negative not input? "負数は入力されない" likely all values nonnegative. If discount_percent >100, (100-discount) negative, //100 floor negative not trunc toward zero. But not relevant. If want trunc toward zero for negative? Not needed.

Need final only code. Ensure no analysis in final.
