An invoice manager I was working on. The project has been abandoned since, but I put the code up for reference