add person info in pos invoice
This commit is contained in:
parent
7a87159482
commit
98645b24c3
|
|
@ -160,6 +160,23 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{% set firstPerson = null %}
|
||||||
|
{% for row in rows %}
|
||||||
|
{% if row.person != null and firstPerson is null %}
|
||||||
|
{% set firstPerson = row.person %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% if firstPerson %}
|
||||||
|
<section class="person-details" style="margin-top:6px; width:100%;">
|
||||||
|
<p><strong>نام مستعار:</strong> {{ firstPerson.nikename|default(firstPerson.name) }}</p>
|
||||||
|
<p><strong>آدرس:</strong> {{ firstPerson.address|default('-') }}</p>
|
||||||
|
<p><strong>موبایل:</strong>
|
||||||
|
{% if firstPerson.mobile %}{{ firstPerson.mobile }}
|
||||||
|
{% elseif firstPerson.mobile2 is defined and firstPerson.mobile2 %}{{ firstPerson.mobile2 }}
|
||||||
|
{% else %}-{% endif %}
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
{% endif %}
|
||||||
<footer style="text-align:center">
|
<footer style="text-align:center">
|
||||||
<p>{{ bid.name }}</p>
|
<p>{{ bid.name }}</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue