<commit_before><commit_msg>Reports now display currency conversion related gains and losses.<commit_after>Feature: Currency Conversion
  In order to do bookkeeping
  As a bookkeeper
  I want to be able to handle currency conversion gains and losses
  
  Background:
    Given an account "Currency Conversion" exists with name: "Currency Conversion", type: "CurrencyConversion"
    And I am <NAME> and Flour Corp is my supplier
    And a match exists
    And a ledger_item exists with total_amount: -100, currency: "EUR", account: account "Revenue", transacted_on: "2009/01/30", sender: contact "<NAME>", recipient: contact "<NAME>", match: that match
    And a ledger_item exists with total_amount: 100, currency: "EUR", account: account "Currency Conversion", transacted_on: "2009/01/30", sender: contact "<NAME>", recipient: contact "<NAME>", match: that match
    And a match exists
    And a ledger_item exists with total_amount: 110, currency: "USD", account: account "Bank Account", transacted_on: "2009/01/30", sender: contact "<NAME>", recipient: contact "<NAME>", match: that match
    And a ledger_item exists with total_amount: -110, currency: "USD", account: account "Currency Conversion", transacted_on: "2009/01/30", sender: contact "<NAME>", recipient: contact "<NAME>", match: that match
    And I am logged in

  Scenario: FX Loss
    Given the USD to EUR rate is 1.2 on "2008-01-01"
    When I go to path "/reports/income-statement"
    Then I should see "Total Currency Conversion"
    And I should see "CR $10.00"

  Scenario: FX Gain
    Given the USD to EUR rate is 1.0 on "2008-01-01"
    When I go to path "/reports/income-statement"
    Then I should see "Total Currency Conversion"
    And I should see "$10.00"
{'fraction_non_alphanumeric': 0.09902130109383996, 'fraction_numerical': 0.04145077720207254, 'mean_word_length': 4.188059701492537, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4998534', 'n_tokens_mistral': 552, 'n_tokens_neox': 492, 'n_words': 225}