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);
|
$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;
|
||||||
|
@ -30,17 +30,20 @@ class IncomeExpenseSummary extends Controller
|
|||||||
|
|
||||||
$status = request('status');
|
$status = request('status');
|
||||||
$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
|
if (($financial_start = Date::parse(setting('general.financial_start'))->month) != 1) {
|
||||||
if (!is_null(request('year'))) {
|
// check if a specific year is requested
|
||||||
$financial_start->year = $year;
|
if (!is_null(request('year'))) {
|
||||||
|
$financial_start->year = $year;
|
||||||
|
}
|
||||||
|
|
||||||
|
$year = [$financial_start->format('Y'), $financial_start->addYear()->format('Y')];
|
||||||
|
$financial_start->subYear()->subMonth();
|
||||||
}
|
}
|
||||||
|
|
||||||
$year = [$financial_start->format('Y'), $financial_start->addYear()->format('Y')];
|
|
||||||
$financial_start->subYear()->subMonth();
|
|
||||||
}
|
|
||||||
|
|
||||||
$categories_filter = request('categories');
|
$categories_filter = request('categories');
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user