Implementing create invoice