Skip to content
  • Damien Mat Jedrzejewski's avatar
    [cmso] Fix: fetch missing transactions at the start of a month · 26e5b5a0
    Damien Mat Jedrzejewski authored and hydrargyrum's avatar hydrargyrum committed
    For now, transactions were fetch on a month by month basis.
    Each month would display transactions with at least one type of id
    among 2 possible, and those are collected.
    Finally, a global history page is parsed, without month param.
    A special condition would avoid duplicates based on the ids.
    
    But at the turn of the month there are transactions that
    don't have any id, and so would not be selected.
    
    Solution:
    First page fetched is the 'SIX_DERNIERES_SEMAINES'. All transactions from
    current month are selected here (they don't bear any id).
    Then the month by month selection is done.
    No final page without month param is fetched at the end since we
    already got all transactions.
    
    Tested also on CMB and BPE child modules.
    26e5b5a0