crap_inhuman
Aktives Mitglied
Ich habe in der E-Mailvorlage für Rechnungen folgende Zeilen:
{% for anzahl in Vorgang.Auftrag.Lieferscheine.ErstesObjekt.Pakete -%}
{% if anzahl.Hinweis | Matches: 'DPD', true == true -%}
Paketdienst: DPD
...
Jetzt steht in anzahl.Hinweis = Spedition, wieso wird trotzdem der Text "Paketdienst: DPD" ausgegeben?
Hier der komplette Block:
{% for anzahl in Vorgang.Auftrag.Lieferscheine.ErstesObjekt.Pakete -%}
{{ anzahl.Hinweis }}
{% if anzahl.Hinweis | Matches: 'DPD', true == true -%}
Paketverfolgung: https://tracking.dpd.de/parcelstatus?query={{anzahl.TrackingID }}&locale=de_DE
Paketdienst: DPD
{% elsif anzahl.Hinweis | Matches: 'GLS', true == true -%}
Paketverfolgung: https://gls-group.eu/DE/de/paketverfolgung?match={{ anzahl.TrackingID }}
Paketdienst: GLS
{% elsif anzahl.Hinweis | Matches: 'UPS', true == true -%}
Tracking-Nummer: {{ anzahl.TrackingID }}
Paketdienst: UPS
{% else -%}
Paketdienst: {{ anzahl.Hinweis }}
{% endif -%}
{% endfor -%}
Die Text-Vorschau habe ich im Anhang eingefügt. Wie man sieht, steht im Hinweis "Spedition", dennoch wird der DPD Teil angezeigt. Warum?
{% for anzahl in Vorgang.Auftrag.Lieferscheine.ErstesObjekt.Pakete -%}
{% if anzahl.Hinweis | Matches: 'DPD', true == true -%}
Paketdienst: DPD
...
Jetzt steht in anzahl.Hinweis = Spedition, wieso wird trotzdem der Text "Paketdienst: DPD" ausgegeben?
Hier der komplette Block:
{% for anzahl in Vorgang.Auftrag.Lieferscheine.ErstesObjekt.Pakete -%}
{{ anzahl.Hinweis }}
{% if anzahl.Hinweis | Matches: 'DPD', true == true -%}
Paketverfolgung: https://tracking.dpd.de/parcelstatus?query={{anzahl.TrackingID }}&locale=de_DE
Paketdienst: DPD
{% elsif anzahl.Hinweis | Matches: 'GLS', true == true -%}
Paketverfolgung: https://gls-group.eu/DE/de/paketverfolgung?match={{ anzahl.TrackingID }}
Paketdienst: GLS
{% elsif anzahl.Hinweis | Matches: 'UPS', true == true -%}
Tracking-Nummer: {{ anzahl.TrackingID }}
Paketdienst: UPS
{% else -%}
Paketdienst: {{ anzahl.Hinweis }}
{% endif -%}
{% endfor -%}
Die Text-Vorschau habe ich im Anhang eingefügt. Wie man sieht, steht im Hinweis "Spedition", dennoch wird der DPD Teil angezeigt. Warum?