From 61747c90034afa45b0c1c753a44b303772083f11 Mon Sep 17 00:00:00 2001 From: CataX Date: Mon, 21 Sep 2026 14:21:55 +0300 Subject: [PATCH] Update afisare functie si structura PV --- .../templates/equipment/pdf_handover.html | 33 ++++++++++++------- .../templates/equipment/print_handover.html | 4 +-- 2 files changed, 23 insertions(+), 14 deletions(-) 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:

{{ protocol.previous_holder.name|default:"...................." }}, având funcția de - {{ protocol.previous_holder.role|default:"...................." }} de la + {{ 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 }} @@ -50,7 +50,7 @@ în calitate de PREDĂTOR și

{{ protocol.new_holder.name|default:"...................." }}, având funcția de - {{ protocol.new_holder.role|default:"...................." }} de la + {{ 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 }}