diff --git a/hesabixCore/templates/pdf/posPrinters/cashdesk.html.twig b/hesabixCore/templates/pdf/posPrinters/cashdesk.html.twig index aac46e3..adead0a 100644 --- a/hesabixCore/templates/pdf/posPrinters/cashdesk.html.twig +++ b/hesabixCore/templates/pdf/posPrinters/cashdesk.html.twig @@ -160,6 +160,23 @@ {% endfor %} + {% set firstPerson = null %} + {% for row in rows %} + {% if row.person != null and firstPerson is null %} + {% set firstPerson = row.person %} + {% endif %} + {% endfor %} + {% if firstPerson %} +
+

نام مستعار: {{ firstPerson.nikename|default(firstPerson.name) }}

+

آدرس: {{ firstPerson.address|default('-') }}

+

موبایل: + {% if firstPerson.mobile %}{{ firstPerson.mobile }} + {% elseif firstPerson.mobile2 is defined and firstPerson.mobile2 %}{{ firstPerson.mobile2 }} + {% else %}-{% endif %} +

+
+ {% endif %}