close#702 Fixed:Unopened report pages in Php version 5.6
This commit is contained in:
@ -28,7 +28,7 @@ class ExpenseSummary extends Controller
|
||||
$year = request('year', Date::now()->year);
|
||||
|
||||
// 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
|
||||
if (!is_null(request('year'))) {
|
||||
$financial_start->year = $year;
|
||||
|
@ -32,7 +32,8 @@ class IncomeExpenseSummary extends Controller
|
||||
$year = request('year', Date::now()->year);
|
||||
|
||||
// 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
|
||||
if (!is_null(request('year'))) {
|
||||
$financial_start->year = $year;
|
||||
@ -42,6 +43,8 @@ class IncomeExpenseSummary extends Controller
|
||||
$financial_start->subYear()->subMonth();
|
||||
}
|
||||
|
||||
|
||||
|
||||
$categories_filter = request('categories');
|
||||
|
||||
$income_categories = Category::enabled()->type('income')->when($categories_filter, function ($query) use ($categories_filter) {
|
||||
|
@ -28,7 +28,7 @@ class IncomeSummary extends Controller
|
||||
$year = request('year', Date::now()->year);
|
||||
|
||||
// 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
|
||||
if (!is_null(request('year'))) {
|
||||
$financial_start->year = $year;
|
||||
|
@ -28,7 +28,7 @@ class ProfitLoss extends Controller
|
||||
$year = request('year', Date::now()->year);
|
||||
|
||||
// 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
|
||||
if (!is_null(request('year'))) {
|
||||
$financial_start->year = $year;
|
||||
|
@ -30,7 +30,7 @@ class TaxSummary extends Controller
|
||||
$year = request('year', Date::now()->year);
|
||||
|
||||
// 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
|
||||
if (!is_null(request('year'))) {
|
||||
$financial_start->year = $year;
|
||||
|
Reference in New Issue
Block a user