{% load static %} {% load staticfiles %}

Myrel Hardware and Software Repair Shop

{% for i in customerDetails %}

Receipt ID : {{ i.receiptID }}

Status : {% ifequal "EN" i.status %} Enquired {% endifequal %} {% ifequal "CH" i.status %} Checked {% endifequal %} {% ifequal "RE" i.status %} Repaired {% endifequal %} {% ifequal "CO" i.status %} Completed {% endifequal %}

Enquiry Date : {{ i.enquiryDate }}


{{ i.customerName }}


{{i.brand}} {{i.deviceModel}}

Serial No. : {{ i.serialNo }}

Contact Details :

{{ i.contactNo }}

{{ i.email }}

{{ i.address }}


Problem : {{ i.problem }}

Problem Category : {% ifequal "HW" i.problemCategory %} Hardware {% endifequal %} {% ifequal "SW" i.problemCategory %} Software {% endifequal %}


Problem Description : {{ i.problemDescription }}


Device Condition : {{ i.deviceCondition }}

{% endfor %} {% for i in customerDetails %}
{% if testDetails %}

Actual Problem


{% for i in testDetails%}

Actual Problem : {{ i.actualProblem }}

Actual Problem Description : {{ i.actualProblemDescription }}

{% endfor %}
{% else %}

Actual Problem


No Details Available : Device is not checked

{% csrf_token %}
{% endif %}
{% endfor %}

{% if repairDetails %}

Repair Description


{% if componentsUsed %}
{% for component in componentsUsed %} {% for j in component%} {% endfor %} {% endfor %}

Components Used


Components Price
{{ j }}
Total {{ componentsUsedPriceTotal }}


{% endif %}

Total Price


Services Price
Components Used Charge {% if componentsUsedPriceTotal %} {{ componentsUsedPriceTotal }} {% else %} 0 {% endif %}
Repair Charge {% for i in repairDetails %}{{ i.repairCharge }}{% endfor %}
Other Charge {% for i in repairDetails %}{{ i.otherCharge }}{% endfor %}
Total Repair Charge {% for i in repairDetails %}{{ i.totalPrice }}{% endfor %}
Advance {% for i in customerDetails %}{{ i.advance }}{% endfor %}
Balance {{ balance }}


{% else %}

Repair Details


No Details Available : Device is not repaired

{% csrf_token %}
{% endif %}