Orders Posting Date Wrong

Here is the issue:

One of our accounting guy post an invoice in a wrong posting date, the allow posting date in G/L set up is from 2015/07/04 to 2016/06/30. But he as permission allow posting date until year of 2017. Then he wanted to post an invoice with posting date 2015/12/18, however, he chose the posting date as 2016/12/18.

Now, the problem is, any orders create now which contains items in the wrong posting date order, when you post these orders, the error message will be always “Posting date allowed is not within your range.”

Then I do the debug, and turns out, even the posting date appeared in orders are 2016/01/14 which is within the posting date, but when system create a item journal line, the posting date will be always 2016/12/18.

Even the accounting guy already did the reverse of invoice, problem still exist. What we are doing now, is to extend the allow to posting date as 2016/12/31 in G/L set up. But this is not right, can anyone teach me how to get this issue solved? Thanks.

OK, problem solved! It’s all about the “Value Entries”. I changed the posting date 2016-12-18 to 2015-12-18 in value entries, and problem solve.