refs #702 solved month issue

This commit is contained in:
cuneytsenturk 2018-12-27 19:48:23 +03:00
parent 2521c2f352
commit a702d1ccba
5 changed files with 15 additions and 5 deletions

View File

@ -28,7 +28,9 @@ class ExpenseSummary extends Controller
$year = request('year', Date::now()->year); $year = request('year', Date::now()->year);
// check and assign year start // check and assign year start
if (($financial_start = Date::parse(setting('general.financial_start'))->month) != 1) { $financial_start = Date::parse(setting('general.financial_start'));
if ($financial_start->month != 1) {
// check if a specific year is requested // check if a specific year is requested
if (!is_null(request('year'))) { if (!is_null(request('year'))) {
$financial_start->year = $year; $financial_start->year = $year;

View File

@ -32,7 +32,9 @@ class IncomeExpenseSummary extends Controller
$year = request('year', Date::now()->year); $year = request('year', Date::now()->year);
// check and assign year start // check and assign year start
if (($financial_start = Date::parse(setting('general.financial_start'))->month) != 1) { $financial_start = Date::parse(setting('general.financial_start'));
if ($financial_start->month != 1) {
// check if a specific year is requested // check if a specific year is requested
if (!is_null(request('year'))) { if (!is_null(request('year'))) {
$financial_start->year = $year; $financial_start->year = $year;

View File

@ -28,7 +28,9 @@ class IncomeSummary extends Controller
$year = request('year', Date::now()->year); $year = request('year', Date::now()->year);
// check and assign year start // check and assign year start
if (($financial_start = Date::parse(setting('general.financial_start'))->month) != 1) { $financial_start = Date::parse(setting('general.financial_start'));
if ($financial_start->month != 1) {
// check if a specific year is requested // check if a specific year is requested
if (!is_null(request('year'))) { if (!is_null(request('year'))) {
$financial_start->year = $year; $financial_start->year = $year;

View File

@ -28,7 +28,9 @@ class ProfitLoss extends Controller
$year = request('year', Date::now()->year); $year = request('year', Date::now()->year);
// check and assign year start // check and assign year start
if (($financial_start = Date::parse(setting('general.financial_start'))->month) != 1) { $financial_start = Date::parse(setting('general.financial_start'));
if ($financial_start->month != 1) {
// check if a specific year is requested // check if a specific year is requested
if (!is_null(request('year'))) { if (!is_null(request('year'))) {
$financial_start->year = $year; $financial_start->year = $year;

View File

@ -30,7 +30,9 @@ class TaxSummary extends Controller
$year = request('year', Date::now()->year); $year = request('year', Date::now()->year);
// check and assign year start // check and assign year start
if (($financial_start = Date::parse(setting('general.financial_start'))->month) != 1) { $financial_start = Date::parse(setting('general.financial_start'));
if ($financial_start->month != 1) {
// check if a specific year is requested // check if a specific year is requested
if (!is_null(request('year'))) { if (!is_null(request('year'))) {
$financial_start->year = $year; $financial_start->year = $year;