Invoice pdf bug fix
Created by: matthewsoohoo
- fixed bug where invoice pdfs would not be properly generated after complete transaction is selected and the user selects print invoice
- currently in master when print invoice is selected after clicking complete transaction, the error TypeError Cannot read properties of undefined (reading 'orderItems') is thrown
- This pr should make it so that the pdf loads in normally when print pdf is selected after transaction is complete