Bug 32676: Fix EDI message status case

Edifact status appear to vary between all lower case and being
capitalized. This breaks the switch in the edi_status block of the
basket.tt template. We should make this switch case-insensitive.

Test Plan:
1) View the basket for a sent EDI order, note the Sent status does not
   display.
2) Apply this patch
3) Reloate the page, note the status is now visible!

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle Hall 2023-01-31 12:42:46 -05:00 committed by Tomas Cohen Arazi
parent d949ac5e5c
commit b0b33b382c
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 3 additions and 3 deletions

View File

@ -269,9 +269,9 @@
[% IF ( ediaccount ) %]
[%- BLOCK edi_status -%]
[%- SWITCH edi_order.status -%]
[%- CASE 'Pending' -%]<span>Pending</span>
[%- CASE 'Sent' -%]<span>Sent</span>
[%- CASE 'Processed' -%]<span>Processed</span>
[%- CASE 'pending' -%]<span>Pending</span>
[%- CASE 'sent' -%]<span>Sent</span>
[%- CASE 'processed' -%]<span>Processed</span>
[%- END -%]
[%- END -%]
[% IF ( edi_order ) %]