[FIX] Reading invoice number for output file, better conversion from timestapm to datetime