Calculate prize of rental

This commit is contained in:
2017-02-05 17:07:42 +01:00
parent 858cb5ce8d
commit e63f8b7562
3 changed files with 38 additions and 6 deletions

View File

@@ -29,7 +29,7 @@
<tr>
<td>{{ acc.time_from|date:"d.m.Y H:i:s" }}</td>
<td>{% if acc.time_to is not None %}{{ acc.time_to|date:"d.m.Y H:i:s" }}{% endif %}</td>
<td>{% if acc.prize is not None %}{{ acc.prize }}{% endif %}</td>
<td>{% if acc.prize is not None %}{{ acc.prize|floatformat:2 }}{% endif %}</td>
</tr>
{% endfor %}
</table>
@@ -47,7 +47,7 @@
<tr>
<td>{{ acc.time_from|date:"d.m.Y H:i:s" }}</td>
<td>{% if acc.time_to is not None %}{{ acc.time_to|date:"d.m.Y H:i:s" }}{% endif %}</td>
<td>{% if acc.prize is not None %}{{ acc.prize }}{% endif %}</td>
<td>{% if acc.prize is not None %}{{ acc.prize|floatformat:2 }}{% endif %}</td>
</tr>
{% endfor %}
</table>