GL Journal batch with journal from different period not completing
Description
Test case
1. create GL Journal Batch in Dec 2021 period 2. Create Journal record with same date as of Batch and add any two Journal line 3. Create second Journal with acct date on Nov 2021 and add any two journal line balancing debit and credit 4. Now try to complete Journal Batch, it will report not valid period.
I looked and found that when journal line created in GL Journal Batch window, it default date acct from Batch instead of Journal. So at time of prepare validation of Journal line and Journal should have same period fails.
Test case
1. create GL Journal Batch in Dec 2021 period
2. Create Journal record with same date as of Batch and add any two Journal line
3. Create second Journal with acct date on Nov 2021 and add any two journal line balancing debit and credit
4. Now try to complete Journal Batch, it will report not valid period.
I looked and found that when journal line created in GL Journal Batch window, it default date acct from Batch instead of Journal. So at time of prepare validation of Journal line and Journal should have same period fails.