feat(regional): Address Template for Germany & Add Switzerland Template (#46737)

* Add Address template for Switzerland

* Fix address template for germany

If an ERPNext instance is set to German and used by a business outside Germany (e.g., in Switzerland or Austria), customer addresses in Germany are displayed in their national format. However, for postal services, the international format (including the country) is required.".

This is just a workaround. IMHO the correct fix would be to check where the company is located and based on that use the national or the international template.

(cherry picked from commit 21b8ad6aa5)
This commit is contained in:
Marc Ramser
2025-03-31 10:32:36 +02:00
committed by Mergify
parent 62275d09da
commit 42479d9a7f
2 changed files with 6 additions and 6 deletions

View File

@@ -1,8 +1,4 @@
{{ address_line1 }}<br>
{% if address_line2 %}{{ address_line2 }}<br>{% endif -%}
{% if country in ["Germany", "Deutschland"] %}
{{ pincode }} {{ city }}
{% else %}
{{ pincode }} {{ city | upper }}<br>
{{ country | upper }}
{% endif %}
{{ pincode }} {{ city | upper }}<br>
{{ country | upper }}

View File

@@ -0,0 +1,4 @@
{{ address_line1 }}<br>
{% if address_line2 %}{{ address_line2 }}<br>{% endif -%}
{{ pincode }} {{ city | upper }}<br>
{{ country | upper }}