fixed #713
This commit is contained in:
@ -35,7 +35,6 @@ class Settings extends Controller
|
||||
|
||||
$setting->put('company_logo', Media::find($setting->pull('company_logo')));
|
||||
$setting->put('invoice_logo', Media::find($setting->pull('invoice_logo')));
|
||||
$setting->put('financial_start', $this->getFinancialStart()->format('d F'));
|
||||
|
||||
$timezones = $this->getTimezones();
|
||||
|
||||
@ -161,11 +160,6 @@ class Settings extends Controller
|
||||
$this->oneCompany($key, $value);
|
||||
}
|
||||
|
||||
// Format financial year
|
||||
if ($key == 'financial_start') {
|
||||
$value = Date::parse($value)->format('d-m');
|
||||
}
|
||||
|
||||
setting()->set('general.' . $key, $value);
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,6 @@ class Companies extends Controller
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param Company $company
|
||||
* @param Request $request
|
||||
*
|
||||
* @return Response
|
||||
@ -71,11 +70,6 @@ class Companies extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
// Format financial year
|
||||
if ($key == 'financial_start') {
|
||||
$value = Date::parse($value)->format('d-m');
|
||||
}
|
||||
|
||||
setting()->set('general.' . $key, $value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user