Disable invoice for specific event only

  • Rasmus Bech
  • Rasmus Bech's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 week 6 days ago #129403 by Rasmus Bech
Disable invoice for specific event only was created by Rasmus Bech
Hi

Is it somehow possible to disable invoice for a specific event?

We have an event that is handled by a 3. party who issues the invoice, so we would prefer not sending an invoice to our users for this specific event.
I was considering adding an extra boolean toggle in the tab "Extra information" under the event, with a disable invoice (yes/no). Then add an if/else statement to the pdf function if possible?

Thanks

Please Log in or Create an account to join the conversation.

More
1 week 5 days ago #129413 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Disable invoice for specific event only
Hello Rasmus

Yes. You will need to add a new setting to the event. Then customize the code of the method needInvoice in components/com_eventbooking/helper/registration.php to return false in case invoice is disabled for that event

Tuan

Please Log in or Create an account to join the conversation.