diff --git a/equipment/templates/equipment/pdf_handover.html b/equipment/templates/equipment/pdf_handover.html index 63dba45..3388412 100644 --- a/equipment/templates/equipment/pdf_handover.html +++ b/equipment/templates/equipment/pdf_handover.html @@ -82,19 +82,28 @@ -
Încheiat astăzi: {{ protocol.date|date:"d F Y"|lower }}, între:
- -- {{ protocol.previous_holder.name|default:"Magazie (Neasignat)" }}, având funcția de - {{ protocol.previous_holder.job_title|default:"-" }} de la {{ protocol.previous_holder.department|default:"-" }}, - în calitate de PREDĂTOR -
-și
-
- {{ protocol.new_holder.name|default:"Magazie (Neasignat)" }}, având funcția de
- {{ protocol.new_holder.job_title|default:"-" }} de la {{ protocol.new_holder.department|default:"-" }},
- în calitate de PRIMITOR
+ Încheiat astăzi: {{ protocol.date|date:"d F Y" }}, între:
+
+ {{ protocol.previous_holder.name|default:"...................." }}, având funcția de
+ {{ protocol.previous_holder.role|default:"...................." }} la
+
+ {% if protocol.previous_holder.compartiment %}{{ protocol.previous_holder.compartiment.name }}
+ {% elif protocol.previous_holder.serviciu %}{{ protocol.previous_holder.serviciu.name }}
+ {% elif protocol.previous_holder.directie %}{{ protocol.previous_holder.directie.name }}
+ {% else %}....................{% endif %}
+ ,
+ în calitate de PREDĂTOR și
+
+ {{ protocol.new_holder.name|default:"...................." }}, având funcția de
+ {{ protocol.new_holder.role|default:"...................." }} la
+
+ {% if protocol.new_holder.compartiment %}{{ protocol.new_holder.compartiment.name }}
+ {% elif protocol.new_holder.serviciu %}{{ protocol.new_holder.serviciu.name }}
+ {% elif protocol.new_holder.directie %}{{ protocol.new_holder.directie.name }}
+ {% else %}....................{% endif %}
+ ,
+ în calitate de PRIMITOR.
Primitorul a preluat de la predător următoarele:
diff --git a/equipment/templates/equipment/print_handover.html b/equipment/templates/equipment/print_handover.html index d8e7984..19a8303 100644 --- a/equipment/templates/equipment/print_handover.html +++ b/equipment/templates/equipment/print_handover.html @@ -40,7 +40,7 @@ Încheiat astăzi: {{ protocol.date|date:"d F Y" }}, între: