AlexF Posted November 20, 2013 Report Share Posted November 20, 2013 Hi everyone. Is it possible to switch off invoice generation for an user or for group of users? Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted November 20, 2013 Report Share Posted November 20, 2013 No, that is not possible. What are you trying to accomplish? Quote Link to comment Share on other sites More sharing options...
0 AlexF Posted November 20, 2013 Author Report Share Posted November 20, 2013 I have a reseller for example and he has his own billing system, but he has to use our Blesta to provisioning his clients services. He uses Blesta api and we keep some clients information on our side. To avoid double invoicing and double sending them it would nice if we had that option to switch off invoice generation totally or by user or by group of users. Quote Link to comment Share on other sites More sharing options...
0 Cody Posted November 21, 2013 Report Share Posted November 21, 2013 That's an interesting issue. I can tell you there's no easy work around since Blesta will only renew a service if the service could be invoiced. This technique allows Blesta to perform catch up invoicing should the cron be disabled for any amount of time. I wonder if it makes sense for the service that's generating invoices that you don't want to be generated to just be set up as "One-time"? In 3.1 you can tie into the Invoices.add event and void the invoice immediately after it's created, though. Quote Link to comment Share on other sites More sharing options...
0 AlexF Posted November 22, 2013 Author Report Share Posted November 22, 2013 Thank you. We will be waiting for ver 3.1 Quote Link to comment Share on other sites More sharing options...
0 vetal Posted March 11, 2014 Report Share Posted March 11, 2014 Hi everyone. I would like to use Invoices.edit event and I added to function "edit" in ./components/events/default/events_invoices_callback.php my code, but variables such as $params, $event is empty in this function and $event->getParams() didn't return anything. Quote Link to comment Share on other sites More sharing options...
0 Cody Posted March 11, 2014 Report Share Posted March 11, 2014 Hi everyone. I would like to use Invoices.edit event and I added to function "edit" in ./components/events/default/events_invoices_callback.php my code, but variables such as $params, $event is empty in this function and $event->getParams() didn't return anything. If you're having trouble it could be that: That event only exists in version 3.1+ That event is only executed when an invoice is edited. Also, it's better to create a plugin to listen for the event. Michael 1 Quote Link to comment Share on other sites More sharing options...
Question
AlexF
Hi everyone.
Is it possible to switch off invoice generation for an user or for group of users?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.