defer regenerate_invoice_pdf and body on Invoice so selects do not fail