Fixes for quote triggered actions
This commit is contained in:
parent
328b3a3113
commit
5d4b4260b1
1 changed files with 18 additions and 0 deletions
|
|
@ -53,6 +53,24 @@ class TriggeredActions extends AbstractService
|
|||
$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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue