total, estimates = Decimal('0'), {}
for row in data['ledger_fixture']:
    multiplier = Decimal(row['fx_cny']) if row['currency'] == 'USD' else Decimal('1')
    total += Decimal(row['actual']) * multiplier
    if row.get('estimated') is not None:
        estimates[row['id']] = str(Decimal(row['estimated']) * multiplier)
check('明确样例汇率算出实际项合计0.17', total == Decimal('0.17'))
check('估算0.056与实际金额分栏', Decimal(estimates['a']) == Decimal('0.056'))
result = {'fictional_billing': True, 'cny_total': str(total), 'estimates_cny': estimates, 'explanation': output}
