How to make reversing journal post to two dates

I am trying to implement reversing journals via a custom doctype. I have the core functionality working by duplicating the existing journal_entry.py and general_journal.py files and making some adjustments (primarily swapping round the logic for debit and credit), but it is posting both the initial and reverse journals to the same date.

I would like to have the reverse journals posted at some date after the initial posting date (I will add that validation in via a custom script), what do I need to change to do this?

Figured it out, just needed to add

"posting_date" = self.reversing_date

to the self.get_gl_dict call of the reverse_gl_entries method. Please mark this as answered :slight_smile: