File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/sh
22python manage.py migrate --noinput
3- uwsgi --http :80 --wsgi-file /app/website/wsgi.py --master --processes 4 --threads 2 --uid nobody --gid nogroup --static-map ${DJANGO_STATIC_URL} =${DJANGO_STATIC_ROOT} --static-map ${DJANGO_MEDIA_URL} =${DJANGO_MEDIA_ROOT} --logto /var/log/uwsgi.log
3+
4+ # Start tail for uWSGI logs in background (send to stdout for docker logs)
5+ tail -F /var/log/uwsgi.log &
6+
7+ # Start uWSGI (logs go to both file and stdout)
8+ uwsgi --http :80 \
9+ --wsgi-file /app/website/wsgi.py \
10+ --master \
11+ --processes 4 \
12+ --threads 2 \
13+ --uid nobody \
14+ --gid nogroup \
15+ --static-map ${DJANGO_STATIC_URL} =${DJANGO_STATIC_ROOT} \
16+ --static-map ${DJANGO_MEDIA_URL} =${DJANGO_MEDIA_ROOT} \
17+ --logto /var/log/uwsgi.log \
18+ --log-date \
19+ --log-4xx \
20+ --log-5xx
Original file line number Diff line number Diff line change @@ -662,14 +662,14 @@ def accounting_status_compatible_with_local_status(self):
662662 @property
663663 def last_accounting_description (self ):
664664 latest_asset_agreement = self .estimate_document_lines .latest (
665- "document__created_at "
665+ "document__estimate_date "
666666 )
667667 return latest_asset_agreement .description
668668
669669 @property
670670 def last_accounting_price (self ):
671671 latest_asset_agreement = self .estimate_document_lines .latest (
672- "document__created_at "
672+ "document__estimate_date "
673673 )
674674 return latest_asset_agreement .price
675675
Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ <h5 class="mb-3">{% translate "Rental Agreements" %}</h5>
400400 {% for line in asset.estimate_document_lines.all %}
401401 {% if line.document.workflow.is_rental %}
402402 < tr >
403- < td > {{ line.document.created_at |date:"d-m-Y" }}</ td >
403+ < td > {{ line.document.estimate_date |date:"d-m-Y" }}</ td >
404404 < td > {{ line.description }}</ td >
405405 < td > €{{ line.price|floatformat:2 }}</ td >
406406 < td >
@@ -430,7 +430,7 @@ <h5 class="mb-3">{% translate "Loan Agreements" %}</h5>
430430 {% for line in asset.estimate_document_lines.all %}
431431 {% if line.document.workflow.is_loan %}
432432 < tr >
433- < td > {{ line.document.created_at |date:"d-m-Y" }}</ td >
433+ < td > {{ line.document.estimate_date |date:"d-m-Y" }}</ td >
434434 < td > {{ line.description }}</ td >
435435 < td > €{{ line.price|floatformat:2 }}</ td >
436436 < td >
@@ -471,7 +471,7 @@ <h5>{% translate "No active agreements" %}</h5>
471471 < tbody >
472472 {% for line in journal_history %}
473473 < tr >
474- < td > {{ line.document_line.document. date|date:"d-m-Y" }}</ td >
474+ < td > {{ line.document_line.date|date:"d-m-Y" }}</ td >
475475 < td > {{ line.document_line.description }}</ td >
476476 < td > {{ line.document_line.ledger_account.name }}</ td >
477477 < td class ="text-end "> €{{ line.value|floatformat:2 }}</ td >
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ def get_context_data(self, **kwargs):
254254 context ["journal_history" ] = (
255255 AssetOnJournalDocumentLine .objects .filter (asset = asset )
256256 .select_related ("document_line__ledger_account" )
257- .order_by ("-document_line__created_at " )
257+ .order_by ("-document_line__document__date " )
258258 )
259259
260260 return context
You can’t perform that action at this time.
0 commit comments