1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Allow admins ability to approve quotes

This commit is contained in:
David Bomba 2023-03-17 19:57:03 +11:00
parent dc2353db04
commit 2336199cfa

View File

@ -49,7 +49,8 @@ class TriggeredActions extends AbstractService
$this->quote = $this->quote->service()->convert()->save();
}
if ($this->request->has('approve') && $this->request->input('approve') == 'true' && in_array($this->quote->status_id, [Quote::STATUS_SENT, Quote::STATUS_DRAFT])) {
// if ($this->request->has('approve') && $this->request->input('approve') == 'true' && in_array($this->quote->status_id, [Quote::STATUS_SENT, Quote::STATUS_DRAFT])) {
if ($this->request->has('approve') && $this->request->input('approve') == 'true') {
$this->quote = $this->quote->service()->approveWithNoCoversion()->save();
}