refs #702 solved month issue
This commit is contained in:
parent
2521c2f352
commit
a702d1ccba
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user