Assignment 22 -- doesn't work, can't figure out problem

Probably several problems in here, but here's where I've been stuck:

solution22.rb:42:in `<main>': undefined local variable or method `invoice' for main:Object (NameError)