MT#5879 Contract buttons and generate_invoice.

Remove contract buttons from Reseller form work. Fix generate_invoice
error found in run on clean new vm.