mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-02 22:57:33 -05:00 
			
		
		
		
	Handle already approved quote
This commit is contained in:
		
							parent
							
								
									535246916c
								
							
						
					
					
						commit
						2247697f68
					
				@ -156,9 +156,11 @@ class QuoteController extends BaseController
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $invitationKey = $this->invoiceService->approveQuote($invoice, $invitation);
 | 
					        if ($invoiceInvitationKey = $this->invoiceService->approveQuote($invoice, $invitation)) {
 | 
				
			||||||
            Session::flash('message', trans('texts.quote_is_approved'));
 | 
					            Session::flash('message', trans('texts.quote_is_approved'));
 | 
				
			||||||
 | 
					            return Redirect::to("view/{$invoiceInvitationKey}");
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
            return Redirect::to("view/{$invitationKey}");
 | 
					            return Redirect::to("view/{$invitationKey}");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user