MT#5879 Fix invoice date insertion in DB