From 2816a4a325764d53abaf5c89958d1f88ca86c985 Mon Sep 17 00:00:00 2001
From: James Cole
{{ trans('list.notes') }} | -{{ bill.notes.first.text|markdown }} | +{{ object.notes|markdown }} |
{{ entry.name }} {# count attachments #} - {% if entry.attachments.count > 0 %} + {% if entry.attachments_count > 0 %} {% endif %} | - @@ -49,44 +49,44 @@ {# paidDates = 0 (bill not paid in period) - payDates = 0 (bill not expected to be paid in this period) + pay_dates = 0 (bill not expected to be paid in this period) bill is active. #} - {% if entry.paidDates.count() == 0 and entry.payDates.count() == 0 and entry.active %} + {% if entry.paid_dates|length == 0 and entry.pay_dates|length == 0 and entry.active %}{{ trans('components.not_expected_period') }} | - {% endif %} {# - paidDates = 0 (bill not paid in period) - payDates > 0 (bill IS expected to be paid in this period) + paid_dates = 0 (bill not paid in period) + pay_dates > 0 (bill IS expected to be paid in this period) bill is active #} - {% if entry.paidDates.count() == 0 and entry.payDates.count() > 0 and entry.active %} + {% if entry.paid_dates|length == 0 and entry.pay_dates|length > 0 and entry.active %}{{ trans('components.not_or_not_yet') }} | - {% endif %} {# - paidDates >= 0 (bill is paid X times). - Don't care about payDates. + paid_dates >= 0 (bill is paid X times). + Don't care about pay_dates. #} - {% if entry.paidDates.count() > 0 and entry.active %} -
- {% for date in entry.paidDates %}
- {{ date.formatLocalized(monthAndDayFormat) }} + {% if entry.paid_dates|length > 0 and entry.active %} + |
+ {% for date in entry.paid_dates %}
+ {{ formatDate(date, monthAndDayFormat) }} {% endfor %} |
-
{% endif %}
{# bill is not active #}
@@ -124,5 +124,5 @@