Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__DIRECTDOWNLOAD_URL_INVOICE__  Substitution variable not substituted during automatic notifications on invoice Paid #27474

Open
JonBendtsen opened this issue Jan 12, 2024 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@JonBendtsen
Copy link
Contributor

Bug

I use the "NOTIFICATIONS ON BUSINESS EVENT" module to trigger on Invoice Paid because I want to send an email with invoice to my customers. But the DIRECTDOWNLOAD_URL_INVOICE Substitution variable are empty in the email automatic notification emails.

If I send it manually using the same template it works as intended.

Could be related to #25738 and/or #23682

My customer flow is like this:

  1. Customer fills out form and I create + validate proposal + draft order.
  2. I accept draft order by validating it
  3. customer gets email with my own link to payment that finds the correct link to dolibarr (see Notifications are generated before the triggering process is completed #25738)
  4. customer pays order using stripe
  5. stripe processing creates invoice
  6. stripe processing validated invoice
  7. stripe processing records payment and sets invoice to status paid.
  8. notification on business vents sends email to customer
  9. link in email does not work.

Environment Version

docker.io/tuxgasy/dolibarr:18.0.3

Environment OS

docker.io/tuxgasy/dolibarr:18.0.3

Environment Web server

docker.io/tuxgasy/dolibarr:18.0.3

Environment PHP

8.1.2-1ubuntu2.13

Environment Database

1:11.1.3+maria~ubu2204

Environment URL(s)

No response

Expected and actual behavior

Expected behaviour would be that DIRECTDOWNLOAD_URL_INVOICE Substitution variable would be an URL to the PDF.

Actual behaviour is that DIRECTDOWNLOAD_URL_INVOICE is empty

Steps to reproduce the behavior

config notification module
config email template for "invoice paid"
pay invoice.

Attached files

No response

@JonBendtsen JonBendtsen added the Bug This is a bug (something does not work as expected) label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant