{% extends 'Base.html' %} {% load static %} {% block title %}Shiraz Center{% endblock %} {% block body %}

Service history


{% if messages %} {% for message in messages %} {% endfor %} {% endif %}
Name: {{ patient.first_name }} {{ patient.last_name }}
ID: {{ patient.id }}
Contact number: {{ patient.phone_number }}
{% if patient.profile_picture %} Profile picture {% else %} Default profile picture {% endif %}
{% if from_date and to_date %}
From {{ from_date|date:'Y/m/d' }} - To {{ to_date|date:'Y/m/d' }}
{% endif %}
{% for item in service_history %} {% endfor %}
Invoice Doctor Technician Service Number of units Unit price Discount Discounted Price Actions
{{ item.invoice }} {{ item.doctor }} {{ item.technician }} {{ item.service }} {{ item.number_of_units }} {{ item.unit_price }}$
{% csrf_token %}
{{ item.total_price }}$ Edit Delete
Total invoice: {{ summary.total_invoice_price }}$
Total Discount: {{ summary.total_discount }}$
Total price after discount: {{ summary.total_price_after_discount }}$
Total Services: {{ summary.service_count }}
Unique Services: {{ summary.unique_service_count }}
{% csrf_token %}
{% endblock %}