mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 15:54:31 -04:00
Fixes for quote triggered actions
This commit is contained in:
parent
328b3a3113
commit
5d4b4260b1
@ -53,6 +53,24 @@ class TriggeredActions extends AbstractService
|
|||||||
$this->quote = $this->quote->service()->approveWithNoCoversion()->save();
|
$this->quote = $this->quote->service()->approveWithNoCoversion()->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->request->has('save_default_footer') && $this->request->input('save_default_footer') == 'true') {
|
||||||
|
$company = $this->quote->company;
|
||||||
|
$settings = $company->settings;
|
||||||
|
$settings->quote_footer = $this->quote->footer;
|
||||||
|
$company->settings = $settings;
|
||||||
|
$company->save();
|
||||||
|
}
|
||||||
|
|
||||||
|
if($this->request->has('save_default_terms') && $this->request->input('save_default_terms') == 'true') {
|
||||||
|
$company = $this->quote->company;
|
||||||
|
$settings = $company->settings;
|
||||||
|
$settings->quote_terms = $this->quote->terms;
|
||||||
|
$company->settings = $settings;
|
||||||
|
$company->save();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return $this->quote;
|
return $this->quote;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user