playtestcloud / ruby_fints

Basic FinTS 3.0 (formerly known as HBCI) implementation in Ruby
MIT License
14 stars 6 forks source link

A transaction's entry_date might be a year before its date #9

Open agross opened 5 years ago

agross commented 5 years ago

I have some transactions that happened late last year (2018) that were booked in 2019. The transaction's entry_date shows up as a year before the actual entry date.

[
    [0] {
                     "sha" => "6935c51e4bcde81c7492431bbdab9f6f4a7830c6b1635ea704de2b53a0b55d2f",
                    "date" => Mon, 31 Dec 2018,
              "entry_date" => Tue, 02 Jan 2018,
                  "amount" => 46.4,
         "amount_in_cents" => 4640,
                    "sign" => -1,
                   "debit" => true,
                  "credit" => false,
                  "storno" => false,
              "funds_code" => "D",
              "swift_code" => "NMSC",
               "reference" => "NONREF",
          "bank_reference" => "",
         "currency_letter" => nil,
                     "bic" => nil,
                    "iban" => nil,
                    "name" => "does not matter",
                    "sepa" => {},
             "information" => "does not matter",
             "description" => "does not matter",
              "sub_fields" => {
            "20" => "does not matter",
            "32" => "does not matter",
            "33" => "does not matter"
        },
        "transaction_code" => "835",
                 "details" => "does not matter"
    }
]

This seems to be related to https://github.com/railslove/cmxl/issues/28 which was resolved in https://github.com/railslove/cmxl/pull/32 as of cmxl 1.4.1. Can you please update the dependency?