mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 00:27:30 +00:00
Fix #8106
This commit is contained in:
@@ -86,7 +86,7 @@ class BillTransformer extends AbstractTransformer
|
||||
foreach ($payDates as $string) {
|
||||
$payDatesFormatted[] = Carbon::createFromFormat('!Y-m-d', $string, config('app.timezone'))->toAtomString();
|
||||
}
|
||||
$nextExpectedMatch = '';
|
||||
$nextExpectedMatch = null;
|
||||
if (null !== ($payDates[0] ?? null)) {
|
||||
$nextExpectedMatch = Carbon::createFromFormat('!Y-m-d', $payDates[0], config('app.timezone'))->toAtomString();
|
||||
}
|
||||
|
@@ -201,7 +201,7 @@ class BillTransformer extends AbstractTransformer
|
||||
// date for currency conversion
|
||||
/** @var Carbon|null $startParam */
|
||||
$startParam = $this->parameters->get('start');
|
||||
/** @var Carbon|null $start */
|
||||
/** @var Carbon|null $date */
|
||||
$date = null === $startParam ? today() : clone $startParam;
|
||||
|
||||
|
||||
@@ -290,8 +290,8 @@ class BillTransformer extends AbstractTransformer
|
||||
/**
|
||||
* Returns the latest date in the set, or start when set is empty.
|
||||
*
|
||||
* @param Collection $dates
|
||||
* @param Carbon $default
|
||||
* @param array $dates
|
||||
* @param Carbon $default
|
||||
*
|
||||
* @return Carbon
|
||||
*/
|
||||
|
@@ -80,7 +80,9 @@
|
||||
{{ trans('firefly.not_expected_period') }}
|
||||
</td>
|
||||
<td class="expected_in_period hidden-sm hidden-xs">
|
||||
{{ formatDate(entry.next_expected_match, monthAndDayFormat) }}
|
||||
{% if entry.next_expected_match %}
|
||||
{{ formatDate(entry.next_expected_match, monthAndDayFormat) }}
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endif %}
|
||||
|
||||
@@ -116,7 +118,9 @@
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td class="expected_in_period hidden-sm hidden-xs">
|
||||
{{ formatDate(entry.next_expected_match, monthAndDayFormat) }}
|
||||
{% if entry.next_expected_match %}
|
||||
{{ formatDate(entry.next_expected_match, monthAndDayFormat) }}
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endif %}
|
||||
{# bill is not active #}
|
||||
|
Reference in New Issue
Block a user