Fix for bug #1184 - entered date appeared in amount field -> caused sql syntax error