Make targetDate as optional when creating an invoice