fixed financial start
This commit is contained in:
parent
c3720fcd2e
commit
bc9fbfb3fb
@ -6,6 +6,7 @@ use App\Http\Controllers\Controller;
|
|||||||
use App\Http\Requests\Wizard\Company as Request;
|
use App\Http\Requests\Wizard\Company as Request;
|
||||||
use App\Models\Common\Company;
|
use App\Models\Common\Company;
|
||||||
use App\Traits\Uploads;
|
use App\Traits\Uploads;
|
||||||
|
use Date;
|
||||||
|
|
||||||
class Companies extends Controller
|
class Companies extends Controller
|
||||||
{
|
{
|
||||||
@ -70,6 +71,11 @@ class Companies extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Format financial year
|
||||||
|
if ($key == 'financial_start') {
|
||||||
|
$value = Date::parse($value)->format('d-m');
|
||||||
|
}
|
||||||
|
|
||||||
setting()->set('general.' . $key, $value);
|
setting()->set('general.' . $key, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class Settings extends Seeder
|
|||||||
$company_id = $this->command->argument('company');
|
$company_id = $this->command->argument('company');
|
||||||
|
|
||||||
Setting::set([
|
Setting::set([
|
||||||
'general.financial_start' => Date::now()->startOfYear()->format('d F'),
|
'general.financial_start' => Date::now()->startOfYear()->format('d-m'),
|
||||||
'general.timezone' => 'Europe/London',
|
'general.timezone' => 'Europe/London',
|
||||||
'general.date_format' => 'd M Y',
|
'general.date_format' => 'd M Y',
|
||||||
'general.date_separator' => 'space',
|
'general.date_separator' => 'space',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user