Statements "group by" config is failing

Overview

While downloading statements from a Journal with configuration of group statements by month I notice two statements were created from the same month, when only one was expected.

To replicate this error

  1. Add a Xunnel Token to an instance with xunnel account and download the accounts associated to this token.

  2. Create a Journal with Type = Bank and Bank Feeds = Automated Bank Synchronization.

  3. Associate this journal to an account previously downloaded with Xunnel.

  4. Return to the brand new journal and set Synchronization Frequency = Create monthly statements. journal-sync-frequency

  5. Go to the Accounting dashboard and select the journal you just create, change the Xunnel synchronization date to the 15th of the current month (for example), then press the Synchronize now link in the journal kanban.

  6. Change again the Xunnel synchronization date to the 1st of the current month (for example), and then press the Synchronize now link in the journal kanban.

  7. check the statements of the journal, you'll see two statements from the current month when only one was expected. statements

Expected behavior

After sync the journal (with Synchronization Frequency = Create monthly statements) more than once in the same month and with the Xunnel synchronization date from the same month every one of these times the result should be only one statement per month.

Edited by Ghost User