Positing date automatically change today even manual date added

While posting date in Sales Invoice and Purchase Invoice is automatically changed to today’s date although the previous date entered is past date.
The date is not changed manually but system is automatically updating the date to current date


you have to check “Edit posting date and time” else it will keep updating posting date and time until you submit it.