mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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}");
|
||||||
return Redirect::to("view/{$invitationKey}");
|
} else {
|
||||||
|
return Redirect::to("view/{$invitationKey}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user