Notification Conditions

Hey guys,

I’m trying to configure an automatic email notification to the customer when a Subscription Invoice is created automatically.

I thought to create a notification for Sales Invoice, with the condition doc.status == draft, and I wanted also to have a condition for the item in the Invoice. In this case Hosting and Domains.

The Status is easy.

But I can’t seem to find a way to make a condition for the items in the invoice. you guys know?

To keep it simple:
Need to configure an auto email notification when a payment is needed upon the subscription invoice is generated in draft.

Thanks!

I’m not totally sure what you’re asking for, but maybe this article Fransisco wrote will help. Using Custom Methods to Trigger Notifications

I was implementing one of these earlier today.

Thanks for your info, it seems impossible to condition based on invoice item_code. So in my case I just condition based on the Subscription " From Date " field in the Sales Invoice Doctype.

This seems to work and do exactly what I needed, which is, trigger a notification when a Subscription Invoice is generated automatically.

1 Like