close#702 Fixed:Unopened report pages in Php version 5.6

This commit is contained in:
Batuhan Baş
2018-12-27 11:34:21 +03:00
parent ee54db8246
commit 63118af448
5 changed files with 15 additions and 12 deletions

View File

@ -28,7 +28,7 @@ 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) { if (($financial_start = Date::parse(setting('general.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,8 @@ 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) { //if (($financial_start = Date::parse(setting('general.financial_start')))->month != 1) {
if (($financial_start = Date::parse(setting('general.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;
@ -42,6 +43,8 @@ class IncomeExpenseSummary extends Controller
$financial_start->subYear()->subMonth(); $financial_start->subYear()->subMonth();
} }
$categories_filter = request('categories'); $categories_filter = request('categories');
$income_categories = Category::enabled()->type('income')->when($categories_filter, function ($query) use ($categories_filter) { $income_categories = Category::enabled()->type('income')->when($categories_filter, function ($query) use ($categories_filter) {

View File

@ -28,7 +28,7 @@ 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) { if (($financial_start = Date::parse(setting('general.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,7 @@ 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) { if (($financial_start = Date::parse(setting('general.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,7 @@ 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) { if (($financial_start = Date::parse(setting('general.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;