Update receiver_transaction_report_template.xml

This commit is contained in:
zainab2097 2024-08-01 20:54:35 +03:00 committed by GitHub
parent 84653bde36
commit e07e800c49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 60 additions and 0 deletions

View File

@ -217,6 +217,66 @@
</t>
</t>
</template>
<report
id="action_report_out_transaction"
model="outgoing.transaction"
string="Print Transaction"
report_type="qweb-pdf"
name="exp_transaction_documents.report_out_transaction"
file="exp_transaction_documents.report_out_transaction"
paperformat="paperformat_card"
menu="True"/>
<template id="report_out_transaction">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="web.basic_layout">
<div dir="rtl" style="border: 2px solid black; padding: 20px; margin-bottom: 50px; height: 90%;">
<h2>تفاصيل المعاملة</h2>
<p>رقم المعاملة: <t t-esc="doc.name"/></p>
<p>الموضوع: <t t-esc="doc.subject"/></p>
<p>التاريخ: <t t-esc="doc.transaction_date"/></p>
<p>
<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', doc.name, 600, 100)"
style="width:250px;height:40px;margin-top:5px;"/>
</p>
<!-- Add more details as needed -->
</div>
</t>
</t>
</t>
</template>
<report
id="action_report_income_transaction"
model="incoming.transaction"
string="Print Transaction"
report_type="qweb-pdf"
name="exp_transaction_documents.report_income_transaction"
file="exp_transaction_documents.report_income_transaction"
paperformat="paperformat_card"
menu="True"/>
<template id="report_income_transaction">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="web.basic_layout">
<div dir="rtl" style="border: 2px solid black; padding: 20px; margin-bottom: 50px; height: 90%;">
<h2>تفاصيل المعاملة</h2>
<p>رقم المعاملة: <t t-esc="doc.name"/></p>
<p>الموضوع: <t t-esc="doc.subject"/></p>
<p>التاريخ: <t t-esc="doc.transaction_date"/></p>
<p>
<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', doc.name, 600, 100)"
style="width:250px;height:40px;margin-top:5px;"/>
</p>
<!-- Add more details as needed -->
</div>
</t>
</t>
</t>
</template>
<!-- end -->