Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4572

Messenger: Invoice Delivery logic does not appear to evaluate

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.3.0-b1
    • Fix Version/s: 5.3.0
    • Component/s: Staff Interface
    • Labels:
      None

      Description

      The messenger template Invoice Delivery (Unpaid) and possibly other templates that include logic, are not included in the SMS. For example, this template includes the following default text:

      Hi {contact.first_name},
      An invoice has been created for your account.
      {% for invoice in invoices %}
      Invoice #: {invoice.id_code} - {invoice.total} {invoice.currency}
      Pay Now, visit http://{invoice.payment_url} (No login required)
      {% endfor %}
      

      But, what is received via SMS is:

      Hi Jonathan,
      An invoice has been created for your account.

      And that's it. The invoice # , link, etc are not included. Nothing in the for statement appears. I don't know if the issue is that the data is missing from "invoice", or if it's an issue with the logic itself.

      Whatever the issue is, make sure it doesn't also impact any other email templates where logic is used.

        Activity

        admin Paul Phillips created issue -
        admin Paul Phillips made changes -
        Field Original Value New Value
        Affects Version/s 5.3.0-b1 [ 11711 ]
        Affects Version/s 5.4.0-b1 [ 11719 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.3.0-b2 Sprint 1 [ 151 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 3 hours, 22 minutes [ 12120 ]
        Worklog Id 15525 [ 15525 ]
        abdy Abdy Franco made changes -
        Time Spent 3 hours, 22 minutes [ 12120 ] 7 hours, 54 minutes [ 28440 ]
        Worklog Id 15526 [ 15526 ]
        abdy Abdy Franco made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Description The messenger template Invoice Delivery (Unpaid) and possibly other templates that include logic, are not included in the SMS. For example, this template includes the following default text:

        Hi {contact.first_name},
        An invoice has been created for your account.
        {% for invoice in invoices %}
        Invoice #: {invoice.id_code} - {invoice.total} {invoice.currency}
        Pay Now, visit http://{invoice.payment_url} (No login required)
        {% endfor %}

        But, what is received via SMS is:

        Hi Jonathan,
        An invoice has been created for your account.

        --

        And that's it. The invoice # , link, etc are not included. Nothing in the for statement appears. I don't know if the issue is that the data is missing from "invoice", or if it's an issue with the logic itself.

        Whatever the issue is, make sure it doesn't also impact any other email templates where logic is used.


        The messenger template Invoice Delivery (Unpaid) and possibly other templates that include logic, are not included in the SMS. For example, this template includes the following default text:


        {code:java}
        Hi {contact.first_name},
        An invoice has been created for your account.
        {% for invoice in invoices %}
        Invoice #: {invoice.id_code} - {invoice.total} {invoice.currency}
        Pay Now, visit http://{invoice.payment_url} (No login required)
        {% endfor %}
        {code}


        But, what is received via SMS is:

        Hi Jonathan,
        An invoice has been created for your account.

        --

        And that's it. The invoice # , link, etc are not included. Nothing in the for statement appears. I don't know if the issue is that the data is missing from "invoice", or if it's an issue with the logic itself.

        Whatever the issue is, make sure it doesn't also impact any other email templates where logic is used.


        abdy Abdy Franco made changes -
        Status In Review [ 5 ] Closed [ 6 ]
        abdy Abdy Franco made changes -
        Sprint 5.3.0-b2 Sprint 1 [ 151 ]
        jonathan Jonathan Reissmueller made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        jonathan Jonathan Reissmueller made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Feb/22

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 7 hours, 54 minutes
              7h 54m