More code on invoice creation code.