Error with call method "avgcost" when Invoicing

We are trying to invoice order 4582.1-11 and getting the following message:

Error: Invoice Creation Failed: {UNKNOWN}: Can’t call method “avgcost” on an undefined value at lib/Cetec/Reboot/Schema/ResultSet/ line 1347. at lib/Cetec/Reboot/Schema/ResultSet/ line 1240

It looks like there were two pick records on Component MAC94060A213 that were from March (and were no longer valid). We’ll show that on the error message there in the upcoming release, but in the meantime we have cleared those bad records and you should be able to proceed.
Cetec ERP