Issue invoice for free event

  • Buzzy
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
10 years 3 months ago #73692 by Buzzy
Issue invoice for free event was created by Buzzy
I'm using the invoice feature partly to issue tickets and I will have some people that can book a free ticket, but it seems that even though I have "Show Billing Step For Free Events" set to YES no invoice is sent for bookings that are free. Is there a way to fix this?

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

More
10 years 3 months ago #73716 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Issue invoice for free event
Hi Buzzy

It is not a bug, so there will be no fix for it. I don't think it is logic to generate invoices for free events, so Events Booking won't work like that

If you want to generate invoice for free event, you can can follow the instructions below:

1. Open the file components/com_eventbooking/helper/helper.php

2. Find the function public static function needInvoice($row)

3. Add return true; command at the beginning of that function. The code of that function will become:
Code:
public static function needInvoice($row) { return true; if ($row->amount > 0 || $row->total_amount > 0) { return true; } $config = self::getConfig(); if ($config->multiple_booking) { $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('SUM(total_amount)') ->from('#__eb_registrants') ->where('id=' . $row->id . ' OR cart_id=' . $row->id); $db->setQuery($query); $totalAmount = $db->loadResult(); if ($totalAmount > 0) { return true; } } return false; }

Regards,

Tuan

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

  • Buzzy
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
10 years 2 months ago #73749 by Buzzy
Replied by Buzzy on topic Issue invoice for free event
Thanks - yes I agree that producing an invoice for a free event perhaps makes no sense. I guess the situation is that the "invoice" feature is now starting to be used by many people as a "ticket generator" - such is the way software develops!

Thanks for help - I may just go with setting the price as £1 and giving a £1 discount as that does create an invoice albeit a bit of a messy way as I'm wary of maintaining custom code changes.

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

More
10 years 2 months ago #73772 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Issue invoice for free event
Setting price to £1 doesn't seems to be correct to be. You can modify the code as I mentioned, it is not hard, just add one line of code to the function

Regards,

Tuan

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

  • Buzzy
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
10 years 2 months ago #73791 by Buzzy
Replied by Buzzy on topic Issue invoice for free event
Yes I know to modify one line of code is not difficult, but remembering to change that one line of code in the particular file each time a new version is applied is more my concern.

Perhaps as people are now using the invoice sometimes for tickets, a configuration option "Issue invoice for free events" YES/NO would be a useful addition to the next version?

Thanks

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

More
10 years 2 months ago #73847 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Issue invoice for free event
Sorry but I could not add this option to the extension unless there are at least 5 other customers need it. As you understand, having more config options make the extension makes the extension more flexible but having too many might make it confusing for other customers

I still believe that sending invoice for free events is so strange

Tuan

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

  • Buzzy
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
10 years 2 months ago #73851 by Buzzy
Replied by Buzzy on topic Issue invoice for free event
I quite understand. I hope I can get more people interested in the issue around this, which I feel perhaps you are missing, in that it is not really about issuing invoices, but about creating a ticket for an event.

I do realise that using the invoice feature for generating tickets is a bit of an "unplanned feature" so perhaps there is a better solution for the creation of tickets if enough people are interested in that?

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

More
10 years 2 months ago #73887 by James Riley
Replied by James Riley on topic Issue invoice for free event
I haven't had the need yet myself for tickets for free events, but I can certainly see how this would be needed for some people's events if registration for the event is required, and a ticket/proof of registration is needed to get in the door.

Here's an idea for expanding the new ticket system: Implement an EventBooking virtual box office -- the user receives the confirmation email and they click the "GET MY TICKETS" link (or they are taken there immediately upon successful registration). They are next taken to a virtual box office that displays all tickets associated with the registration (single ticket for individual registration, and multiple tickets for group registration). Furthermore, the user could be given the option to either print their tickets or (if admin has set the option) flag their tickets for "will call / pickup at the event". The event admin would then get notice (either immediately, or x-days before the event) that there are "will call" tickets that need to be printed and distributed at the door.

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.

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

More
10 years 2 months ago #73899 by Olivier
Replied by Olivier on topic Issue invoice for free event
Hi all,
I will ask the same feature as in my case, most athletes have to pay their registration for camps or competitions but some (High Performance) don't have to pay as they received funds from the government directly given to the federation.
An other case is when people are registering for an exam. The one who paid for the course don't have to pay for the exam (but of course have to register) and the one who want to take the exam but did not took the course, have to pay.

Their is so many cases where we need to send an invoice even if we charge nothing. This is the case in many situation to prove the client is clear from dept like when we return a modem and close the renting contract. (we receive a bill at 0$) = PROOF

Regards,

Olivier

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

More
10 years 2 months ago #74200 by Chris
Replied by Chris on topic Issue invoice for free event
Hi

I am interessted too.

So i have this situation:

the Event costs 100 $
Members are free (-100$ or -100%)
Some Members from other Organisations have a rebat of 20%
So it make sense for me too, to have an invoice with an amount of 100$, 80$ or 0$.

Thank you
Chris

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

Moderators: Tuan Pham Ngoc