
barryf
-
Posts
61 -
Joined
-
Last visited
-
Days Won
1
Posts posted by barryf
-
-
Thanks Paul.
Should this also apply when a plugin generates and invoice prior to the "normal" Blesta invoice run? We generate invoices from voice CDR before the scheduled normal Blesta invoice creation cron. We would like for the other service items to get added to the open invoice rather than creating new one.
Thanks.
-Barry
-
On 4/17/2024 at 7:01 PM, Paul said:
If you set all the service to the same renew date, they will be combined on the same invoice by default.. unless you have disabled this feature.
Separately, we would consider a feature request for combined monthly billing for services that do not have the same renew date. https://requests.blesta.com
@Paul - Where might this setting be, to disable this behaviour?
-
OK, I find that it does work with errorReporting and System.debug turned off.
-
Hi,
Using latest Blesta, and Stripe payment gateway. Using php 8.2.18, but without Hotfixes, as nothing works if I add them.
If I try to either pay as a client via credit card, or I try to add a credit card payment account to a client, I receive the following error.
Having debugged app/models/accounts.php lines 1325 and 1400 to just echo $value and $card_number and exit, neither of these vars are populated, so not sure where this is failing.
Any ideas?
Something went wrong. preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated. preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated on line 1325 in /var/www/blesta/app/models/accounts.php UnknownException::setErrorHandler Line 232 /var/www/blesta/vendors/monolog/monolog/src/Monolog/ErrorHandler.php Monolog\ErrorHandler->handleError Line preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated on line 1325 in /var/www/blesta/app/models/accounts.php Printing Stack Trace: #0 /var/www/blesta/vendors/monolog/monolog/src/Monolog/ErrorHandler.php(232): UnknownException::setErrorHandler() #1 [internal function]: Monolog\ErrorHandler->handleError() #2 /var/www/blesta/app/models/accounts.php(1325): preg_replace() #3 /var/www/blesta/app/models/accounts.php(1400): Accounts->formatNumber() #4 /var/www/blesta/components/gateway_payments/gateway_payments.php(1682): Accounts->creditCardType() #5 /var/www/blesta/app/models/accounts.php(673): GatewayPayments->storeAccount() #6 /var/www/blesta/app/controllers/admin_clients.php(3408): Accounts->addCc() #7 /var/www/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): AdminClients->addCcAccount() #8 /var/www/blesta/index.php(21): Dispatcher::dispatch() #9 {main}
-
15 hours ago, Paul said:
It would require a code change as there's no setting to control which is default. Defaulting to pending is the safest option, if you add a service as an admin, and forget to change it to active before you create it, you can go to the pending service and activate it then.
We managed to fix it with a little js-foo in our module.
-
Hi Paul
So is there any way to change it back to defaulting to Active?
Thanks
-
On 8/15/2022 at 8:34 PM, Paul said:
Hi Barry, when emails are generated are they queued for delivery? If you edit the invoice, is the Email box checked? If you aren't able to check quickly after they are created, you can create a manual invoice.
- Do the invoice emails appear in the mail log under Tools > Logs > Email?
- Are you using Sendmail or SMTP for outgoing email? Settings > Emails > Setup
If an invoice is queued for delivery, then marked as sent, then most likely an attempt to send it was made and did not return an error. If you are using as SMTP server and the messages are being filtered out or rejected on that side quietly, then that could explain it.
Hi Paul,
1. No, the emails do not appear in the Email log. However the invoice is marked as "Sent" and appears in the Invoice Delivery log as sent.
2. I use SMTP, however, I switched to sendmail and ran the test again and same result - not sent, not in email log and my sendmai logs show no attempt to send any email.
In all cases, if I select the invoice within the Client screen and click to send, the email gets sent successfully.
Thanks
-
Any ideas on this? Getting to be a pain!
Thanks
-
Hi,
We want to be able to include a Blesta license as an add-on to another package. I can't see how to do this. Is it possible?
Thanks
-
Hi
Using version 5.3.2 we ran into an issue when trying to upload Documents via the API.
The error returned was:
[2022-04-26T20:20:34.080621+00:00] general.ERROR: Uncaught Exception ArgumentCountError: "Too few arguments to function ClientDocumentsFiles::add(), 0 passed in /var/www/blesta/app/controllers/api.php on line 154 and exactly 2 expected" at /var/www/blesta/plugins/client_documents/models/client_documents_files.php line 33 {"exception":"[object] (ArgumentCountError(code: 0): Too few arguments to function ClientDocumentsFiles::add(), 0 passed in /var/www/blesta/app/controllers/api.php on line 154 and exactly 2 expected at /var/www/blesta/plugins/client_documents/models/client_documents_files.php:33)"}
The fix was to add the following two lines in app/controllers/api.php
$ diff app/controllers/api.php /var/www/blesta/app/controllers/api.php 150a151,153 > if( $this->files ) > $params['files'] = $this->files; >
-
Sorry, just realized this is the 5.4 beta forum.
-
Hi,
Using version 5.3.2 we ran into an issue when trying to upload Documents via the API.
The error returned was:
[2022-04-26T20:20:34.080621+00:00] general.ERROR: Uncaught Exception ArgumentCountError: "Too few arguments to function ClientDocumentsFiles::add(), 0 passed in /var/www/blesta/app/controllers/api.php on line 154 and exactly 2 expected" at /var/www/blesta/plugins/client_documents/models/client_documents_files.php line 33 {"exception":"[object] (ArgumentCountError(code: 0): Too few arguments to function ClientDocumentsFiles::add(), 0 passed in /var/www/blesta/app/controllers/api.php on line 154 and exactly 2 expected at /var/www/blesta/plugins/client_documents/models/client_documents_files.php:33)"}
The fix was to add the following two lines in app/controllers/api.php
$ diff app/controllers/api.php /var/www/blesta/app/controllers/api.php 150a151,153 > if( $this->files ) > $params['files'] = $this->files; >
-
Hi Paul,
Thanks for the response. I am running Blesta 5.3.2 on Debian 11, PHP 7.4.
If I run cron manually all is fine. The invoice delivery is in the Email log, and email is received.
If I run cron manually from the command line, it reports "Successfully delivered 1 invoice to client #1500 via Email." and the entry is present in the Logs -> Invoice Delivery but not in the Email log and no email is sent.
In all cases, the invoices are marked as Sent, and the Invoice Delivery "Email" is unchecked.
I have double-checked that both the CLI and the Apache module are configured the same - identical php.ini and the same modules loaded.
There are no errors in the logs, nor when manually running the cron task.
-
I am having the same issue. Nothing in the logs, in the Client area it shows the invoice as Sent, but they are not. Manually sending it works as expected.
-
-
Haha, thanks. It was on a Dev instance.
We use a central API for controlling all Blesta instances, so need to be able to support both 3.6 and 4.x during the upgrade.
Tyson has been kind enough to provide a temporary workaround.
-
This is pretty major. I cannot find any reference to this in the changelogs. This necessitates a lot of work to change all of our libs.
-
That sounds perfect!
What version might that make it into?
-Barry
-
as the title , add a option to allow admins to reorder the widget in the clients dashboard , that way we can order wich first and wich last from the widget available to clients .
I would really like to be able to remove some of the widgets . For example some customers to not want to show Invoices and Transactions. Any quick way to remove them on a company-by-company (talking add-on companies here) basis?
-Barry
-
Why not do a coupon for the labour tax if you are charging labour or do two companies one for labour stuff and one for products / hosting?
Coupon would not be compliant with regulations. Two companies does not work either, because a) it is cumbersome,
the customer now gets multiple invoices from the same supplier, but under different names?!
The companies using our system are the likes of IT houses, PBX resellers/maintainers so they need to invoice for, for example: hardware, installation work, voice calls, line rental. This all needs to be on a single invoice.
Pretty much any invoicing system I have come across allows the VAT rate to be specified per line item or product.
-
Hi
In many countries different types of product/service are subject to different rates of Tax/VAT. For example, in Ireland, products are generally 23% VAT, whereas labor would be 13.5%
Currently it is not possible at all that I can see to specify a tax rate to apply to a particular line item. This is a serious shortcoming.
Ideally each invoice line item should be able to have the tax rate specified, as well as each package pricing item.
Has anybody come up with a work-around?
-Barry
-
Since I have been distracted as of late. I finally got around to taking a look at the recent varnish cache release 4.1 on Sept. 30 2015. It now has support for haproxy, while haproxy 1.5 released on 07/02/2015 included native ssl support. Looks like the way to go may be with haproxy and varnish cache, not that there is anything wrong with nginx, simply that haproxy does have some features that are useful. Going to build a test cluster and see how things go with a Blesta trial. I am confident it should work, it will be a matter of fine tuning things to achieve specific goals though.
Not surprised that Poul Henning included support for haproxy, he has some very defined opinions on ssl support, his most recent ssl post is a good read. https://www.varnish-cache.org/docs/trunk/phk/ssl_again.html
Yes, One of the greatest benefits of using haproxy is the ease of dealing with SSL. I use it as the front-end for all sites, and now I have only a single place I need to keep/update certs for all domains. The SNI support in haproxy seems to work flawlessly. I run my proxies on CoreOS/Docker containers, and use confd to add/remove certs and hosts.
Updating or adding a cert is as simple as
cat certificate.pem| etcdctl set /services/haproxy/ssl_certs/cert_name
This new cert will get added to /etc/haproxy/ssl/certs.d/ on all required haproxy containers, and haproxy reloaded.
Adding a new Blesta host is similar. I simply add the new hostname to my blesta_hosts file, then:
cat blesta_hosts| etcdctl set /services/haproxy/blesta_hosts
confd then creates a new file /etc/haproxy/blesta.hosts which is configured as an ACL in haproxy. This ACL is then used to route these requests to my blesta cluster:
acl blesta hdr_dom(host) -i -f /etc/haproxy/blesta.hosts use_backend blesta-servers if blesta
-Barry
-
I have a question concerning how Blesta will handle cookies behind a Varnish Cache Server. Standard use is to use X-Forwarded-For with a vcl setting of req.http.X-Forwarded-For + ", " + client.ip. Which sets x-forwarded-for with the client ip. I am interested in getting away from whmcs, but I need to find a system that will work correctly while utilizing a Varnish Cache Server with Ngnix for SSL Termination.
I am doing some preliminary data gathering to quickly rule out those that will not fit my needs, prior to doing some test installs. Anyone have any experience running Blesta with a Varnish Cache Server along with SSL Termination?
Hi
We run Blesta behind haproxy, with haproxy handling the SSL and setting X-Forwarded-For header. No issues.
Hope this helps.
-Barry
-
On a related note - how do you configure the actual Due Date for an invoice. In the UI I see a lot of references to the Due Date, but I cannot find howe/where to set it. Different customers may have different credit terms so it is kind of important.Thanks!Stupid me. Due date IS the renewal date.
-Barry
Combining of services on invoices that renew on the same month
in Support
Posted
Thanks Paul, that looks exactly what we need.