Fixed a couple bugs in invoice generation.
Initial code dump for fixing order form. >.<