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:
parent
dc2353db04
commit
2336199cfa
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user