Handle already approved quote
This commit is contained in:
parent
535246916c
commit
2247697f68
1 changed files with 6 additions and 4 deletions
|
|
@ -156,9 +156,11 @@ class QuoteController extends BaseController
|
|||
}
|
||||
}
|
||||
|
||||
$invitationKey = $this->invoiceService->approveQuote($invoice, $invitation);
|
||||
Session::flash('message', trans('texts.quote_is_approved'));
|
||||
|
||||
return Redirect::to("view/{$invitationKey}");
|
||||
if ($invoiceInvitationKey = $this->invoiceService->approveQuote($invoice, $invitation)) {
|
||||
Session::flash('message', trans('texts.quote_is_approved'));
|
||||
return Redirect::to("view/{$invoiceInvitationKey}");
|
||||
} else {
|
||||
return Redirect::to("view/{$invitationKey}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue