formatting #1855
This commit is contained in:
@@ -374,7 +374,7 @@ abstract class Report
|
||||
$financial_year = $this->getFinancialYear($this->year);
|
||||
|
||||
if ($date->greaterThanOrEqualTo($financial_year->getStartDate()) && $date->lessThanOrEqualTo($financial_year->getEndDate())) {
|
||||
if (setting('localisation.financial_year_denote') == 'begins') {
|
||||
if (setting('localisation.financial_denote') == 'begins') {
|
||||
$i = $financial_year->getStartDate()->copy()->format($this->getYearlyDateFormat());
|
||||
} else {
|
||||
$i = $financial_year->getEndDate()->copy()->format($this->getYearlyDateFormat());
|
||||
|
@@ -41,9 +41,9 @@ class Localisation extends Controller
|
||||
'both' => trans('settings.localisation.discount_location.both'),
|
||||
];
|
||||
|
||||
$financial_year_denote_options = [
|
||||
'begins' => trans('settings.localisation.financial_year_denote.begins'),
|
||||
'ends' => trans('settings.localisation.financial_year_denote.ends'),
|
||||
$financial_denote_options = [
|
||||
'begins' => trans('settings.localisation.financial_denote.begins'),
|
||||
'ends' => trans('settings.localisation.financial_denote.ends'),
|
||||
];
|
||||
|
||||
return view('settings.localisation.edit', compact(
|
||||
@@ -52,7 +52,7 @@ class Localisation extends Controller
|
||||
'date_separators',
|
||||
'percent_positions',
|
||||
'discount_locations',
|
||||
'financial_year_denote_options'
|
||||
'financial_denote_options'
|
||||
));
|
||||
}
|
||||
}
|
||||
|
@@ -110,7 +110,7 @@ trait DateTime
|
||||
|
||||
$financial_start = Date::create($year, $month, $day);
|
||||
|
||||
if (setting('localisation.financial_year_denote') == 'ends' && $financial_start->dayOfYear != 1) {
|
||||
if ((setting('localisation.financial_denote') == 'ends') && ($financial_start->dayOfYear != 1)) {
|
||||
$financial_start->subYear();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user