mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 17:34:30 -04:00
Allow admins ability to approve quotes
This commit is contained in:
parent
dc2353db04
commit
2336199cfa
@ -49,7 +49,8 @@ class TriggeredActions extends AbstractService
|
|||||||
$this->quote = $this->quote->service()->convert()->save();
|
$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();
|
$this->quote = $this->quote->service()->approveWithNoCoversion()->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user