Fixed ugly errors in invoices and payments.
Working on Returns.