Merge pull request #36950 from ruthra-kumar/use_reference_posting_date_on_je

refactor: gain/loss je should use same posting date as payment