If you have set up your pre-payments properly check that you have selected the finance side of the posting first in your journal. The order of account selection is important in a journal.
Read about pre-payment set ups here. (use google chrome translator as the article has not yet been translated to English). https://www.uniconta.com/da/unipedia/periodisering/