Sending invoice

Sending invoice

Laraship QuestionsCategory: TechnicalSending invoice
st3fan asked 5 months ago

Sending invoice through the admin portal via “/invoices” is not working, it seems there is something wrong with the default email template.
 
Error modal upon clicking “Send”:
Undefined variable: notificationBody

Stacktrace error in debug logging:
[2019-09-09 07:57:02] production.ERROR: Undefined variable: notificationBody {“userId”:1,”email”:”[email protected]”,”exception”:”[object] (ErrorException(code: 0): Undefined variable: notificationBody at /var/www/html/Corals/core/User/Communication/Classes/CoralsBaseNotification.php:184)
[stacktrace]

1 Answers
laraship Staff answered 5 months ago

Hello,
Can you check notification event

notifications.invoice.send_invoice

at Notification templates and make sure that the Email channel is checked
Stefan Warmerdam replied 5 months ago

Yes, it is there and email channel is selected.

Stefan Warmerdam replied 5 months ago

please remove the auto close function, it is not suited because you did not resolve the ticket yet…

Stefan Warmerdam replied 5 months ago

Problem solved, for some reason the format of this notification template does not allow the use of tables (Visit your dashboard button)

UP TO 60% OFF

LIMITED TIME OFFER
SHOP NOW
Limited Time Offer
close-link