boilerplate code for invoice creation