-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathletter_head.jinja
49 lines (45 loc) · 1.76 KB
/
letter_head.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{% set company = frappe.get_doc("Company", doc.company) %}
{% set company_address_name = frappe.db.get_value("Dynamic Link", filters={"link_doctype": "Company", "link_name": doc.company, "parenttype": "Address"}, fieldname="parent") %}
{% set address = frappe.get_doc("Address", company_address_name) if company_address_name else None %}
<table class="footer-table">
<tbody>
<tr>
<td>{{ company.company_name }}</td>
<td>{{ _("Managing Directors") }}:</td>
<td>Berliner Volksbank</td> <!-- Your company's bank name -->
</tr>
<tr>
<td>{% if address %}{{ address.address_line1 }} · {{ address.pincode }} {{ address.city }}{% endif %}</td>
<td>Max Muster</td> <!-- Your company's managing directors -->
<td>{{ _("IBAN") }}: DE88 1009 0000 1234 5678 92</td>
</tr>
<tr>
<td>{{ _("Phone") }}: {{ company.phone_no }}</td>
<td>{{ _("Tax ID") }}.: {{ company.tax_id }}</td>
<td>{{ _("BIC") }}: BEVODEBB</td> <!-- Your company's BIC -->
</tr>
<tr>
<td>{{ _("Email") }}: {{ company.email }}</td>
<td>Amtsgericht Berlin</td> <!-- Your company's register court -->
<td></td>
<td></td>
</tr>
<tr>
<td>{{ company.website }}</td>
<td>{{ _("Trade Register Number") }}: HRB 11235</td> <!-- Your company's trade register number -->
<td></td>
<td></td>
</tr>
</tbody>
</table>
<style>
.footer-table tbody tr td:not(:last-child) {
padding: 0 65px 0 0 !important;
}
.footer-table tbody tr td:last-child {
padding: 0 !important;
}
.footer-table {
font-size: 7pt;
}
</style>