user_id = $user_id; $invoice->po_number = $quote->po_number; $invoice->footer = $quote->footer; $invoice->line_items = $quote->line_items; return $invoice; } }