mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:07:32 -05:00 
			
		
		
		
	Working on form requests
This commit is contained in:
		
							parent
							
								
									7f168f87b9
								
							
						
					
					
						commit
						e7296cf513
					
				@ -447,9 +447,9 @@ class InvoiceController extends BaseController
 | 
				
			|||||||
        Session::flash('message', $message);
 | 
					        Session::flash('message', $message);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ($action == 'clone') {
 | 
					        if ($action == 'clone') {
 | 
				
			||||||
            return $this->cloneInvoice($invoice->public_id);
 | 
					            return $this->cloneInvoice($request, $invoice->public_id);
 | 
				
			||||||
        } elseif ($action == 'convert') {
 | 
					        } elseif ($action == 'convert') {
 | 
				
			||||||
            return $this->convertQuote($invoice->public_id);
 | 
					            return $this->convertQuote($request, $invoice->public_id);
 | 
				
			||||||
        } elseif ($action == 'email') {
 | 
					        } elseif ($action == 'email') {
 | 
				
			||||||
            return $this->emailInvoice($invoice, Input::get('pdfupload'));
 | 
					            return $this->emailInvoice($invoice, Input::get('pdfupload'));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@ -546,7 +546,7 @@ class InvoiceController extends BaseController
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function convertQuote($publicId)
 | 
					    public function convertQuote(InvoiceRequest $request, $publicId)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $invoice = Invoice::with('invoice_items')->scope($publicId)->firstOrFail();
 | 
					        $invoice = Invoice::with('invoice_items')->scope($publicId)->firstOrFail();
 | 
				
			||||||
        $clone = $this->invoiceService->convertQuote($invoice);
 | 
					        $clone = $this->invoiceService->convertQuote($invoice);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user