Jump to content

jwogrady

Members
  • Posts

    92
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by jwogrady

  1. I'm using Python's request library to query the API. The documentation doesn't show what a paramatized filtering url would look like. For example, https://source-docs.blesta.com/class-Services.html#_getList The filter variable is supposed to be passed as an array. #getList( integer $client_id = null, string $status = 'active', integer $page = 1, array $order_by = ['date_added' => 'DESC'], boolean $children = true, array $filters = [] ) Returns a list of services for the given client and status Using python requests, that would be done like this.... def services_getAllByClient(): data = request( 'services/', 'getlist', blesta_format, params={'client_id': 741, 'filters': ['package_id', 112]} ) print(data.url) >>> app.services_getAllByClient() https://[myblestainstall.com]/api/services/getlist.json?client_id=741&filters=package_id&filters=112 It's not filtering.... What would correct paramaratized files look like?
  2. My mission is to verify that all the domains we manage are setup in Blesta with the correct renewal dates. We have relationships with two domain registrars, enom and namesilo. They both have officially support Blesta modules. additional note: - The namesilo module's domain audit tool errors out with Monolog\ErrorHandler->handleError Line 699 /var/www/{path to install}/components/modules/namesilo/namesilo.php array(5) { [0]=> int(8) [1]=> string(43) "Trying to get property 'meta' of non-object" Since the audit tool is not working for me, I'm attempting to pull the data I need remotely via the API. The Blesta API doc makes me think that because because of what it says at the very bottom. To test, the 'getAll' function in Blesta's module-namesilo seems like a good way to get an array of all the namesilo domains in Blesta.... /** * Returns a list of domains for the particular user. * * @param array $vars An array of input params including: * * - portfolio (optional) portfolio to fetch domains for * @return NamesiloResponse */ public function getList(array $vars) { return $this->api->submit('listDomains', $vars); } I've tried every combo I can think of to access.... https://{blesta install domain}/api/domains/getList.json https://{blesta install domain}/api/namesilo/getList.json { "message": "The requested resource does not exist.", "response": null } https://{blesta install domain}/api/namesilo/domains/getList.json https://{blesta install domain}/api/module-namesilo/domains/getList.json https://{blesta install domain}/api/module-namesilo/domains/getList.json { "message": "The format requested is not supported by the server.", "response": null { I'm having the same issues of not know the paths when trying to pull tickets out of Blesta's `support manager` plugin. My questions..... How do I identify remote callable model functions that return a json response in Blesta supported models and plugins? Link to examples? Is the getList function in `module-namesilo`? Assuming it will work, what's the correct path? Is there a better approach for getting all the domains out of Blesta, ideally in a list I can filter by registrar, status, etc. Perhaps getting a list of `services` and filtering by the service_id for namesilo and enom?
  3. cat general-notice-cron-2022-10-11.log [2022-10-11T14:30:18.182110+00:00] general.NOTICE: E_NOTICE: Undefined property: stdClass::$client {"code":8,"message":"Undefined property: stdClass::$client","file":"/blesta/core/Automation/Tasks/Task/PaymentReminders.php","line":438} [2022-10-11T20:35:04.548277+00:00] general.NOTICE: E_NOTICE: Undefined property: stdClass::$client {"code":8,"message":"Undefined property: stdClass::$client","file":"/blesta/core/Automation/Tasks/Task/PaymentReminders.php","line":438} Found this in notices. Is there a fix? line 438 references a messenger. I did have Twillo activated, but never configured. Wondering if the cron is trying to use it anyways? I uninstalled Twillo to see if that fixes it. Expected behavior would be to complete the cron with a notice.... instead of continuing to spin.
  4. Since upgraded to 5.5.2 our Payment Reminders cron task stoped completing. Old forum threads indicate it might be a parsing error on the template. Anyone else run into that? Which log file should I check for errors? Blesta has a lot.... ? general-error general-info general-notice general-warning general-info-cron general-notice-cron general-warning-cron But no general-error-cron generated.....
  5. Alas, invoice Number and invoice ID are not the same thing.... While invoice numbering may vary from company to company, the invoice id is constantly sequently.
  6. I noticed the invoice number in the gateway log that are passed to authorize.net do not match the actual invoice number. Anyone else having this issue?
  7. My department is setup with Auto-Close Predefined Responses. We want to give customers the opportunity to reopen auto-closed tickets. Can I accomplish this by using email template variables in my selected response like this?
  8. Lovin' Blesta since we started using it in 2014. We keep growing off the platform. With growth comes more complex relationships. Here are some challenges we regularly run up against. support contact A is the same person supporting multiple accounts. How can they access all the accounts they support from one login. sales rep B should only have access to the accounts they sold. It's the same issue as support contacts, but with different permissions. company Y is one entity with multiple brands. How do we filter lists of services off brand? company Y & Z are completely separate entities owned by the same contact. Why can't they access all accounts from a single login. Not really a feature request.... more like is supporting these complex relationships part of the roadmap.
  9. Not yet. I was considering reaching out to these folks who built the quickbooks plugin for WHMCS to see if he would be willing to make a Blesta version. https://myworks.design/software/whmcs-quickbooks-online-automatic-sync-module/ The Zapier approach may prove to be a better path, but for billing I'd prefer to keep the man out of the middle. Let me know if there is interest in pooling resources. Also want get Blesta's blessing before we initiate because at some point I would like to turn over the code so they can maintain it as part of the core like they do with the other plugins/models.
  10. Was experiencing this issue. I've applied the fix. Will report back tomorrow after the cron runs. Thank you so much for finding and fixing this. You guys are the best!
  11. I need to be able to sync data with wordpress, quickbooks, etc. Instead of individual integrations, the strategy that seems to make sense is Zapier or equivalent service. Then my valuable Blesta data would no longer be siloed.
  12. I would like to be able to advance to the next record in the client's detail view. This will save us from going back to the detail to advance to the next account. Perhaps you could place it to the right of the client ID?
  13. Really like the new fields on configurable options. Wanted to propose a few improvements. First, the setup fee is only applied once. For example, if I sell 10 option "seats" I'm only capturing one setup fee for all the seats instead of one setup fee for each seat. Perhaps, a "Setup fee applies to 'all' or 'per'" option? Second, in some cases I would like to make selecting an option required. Perhaps a "is required" checkbox next to the option? Finally, I would like the flexibility to tax options, but not the parent service. Perhaps adding a "inherits product's tax status" with a "yes|no" dropdown to each option?
  14. I'm able to load documents and view them. However, since the move I can't view the documents that already existed. The old documents and the new documents are in the same folder. Do I have to reload all the documents one-by-one?
  15. Well, the log directory ' /var/www/logs_blesta/ had permissions, but the files in the directory where owned by root... Really strange a logfile permission issue prevented me from creating invoices.... Why are new log files are defaulting to root ownership?
  16. Since upgrade to 4.1.2 get a white screen when I generate an invoice or reoccurring invoice. mydomain.com/admin/clients/createinvoice/75/ Thoughts? Will turn on debug and see what I can figure out. Looks like a permission issue with the logger.... The stream or file "/var/www/logs_blesta/general-info-2017-11-20.log" could not be opened: failed to open stream: Permission denied on line 107 in /path/to/blesta/vendors/monolog/monolog/src/Monolog/Handler/StreamHandler.php Printing Stack Trace: #0 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(107): Monolog\Handler\StreamHandler->write(Array) #1 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\RotatingFileHandler->write(Array) #2 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Logger.php(337): Monolog\Handler\AbstractProcessingHandler->handle(Array) #3 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Logger.php(546): Monolog\Logger->addRecord(200, 'Created Invoice', Array) #4 /path/to/blesta/app/models/invoices.php(154): Monolog\Logger->info('Created Invoice', Array) #5 /path/to/blesta/app/controllers/admin_clients.php(3852): Invoices->add(Array) #6 /path/to/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php(143): AdminClients->createInvoice() #7 /path/to/blesta/index.php(21): Dispatcher::dispatch('/admin/clients/...') #8 {main}
  17. I'm attempting to change a cpanel service from monthly to annual billing. - overide price - not checked. - prorata box - checked. - Select annual cycle - use module - checked - coupon code applied ($10 off) Saving generates a .13 invoice.... and I see this This service has pending changes. Updating this service to upgrade or downgrade any of its values will cause the current pending changes to be canceled. How do I clear that message I've tried... voiding out the 13 cent invoice I don't undersatand.... Shouldn't the NEW invoice be the cost of a full year less any credit remaining during the current period (month).? manually running automation.... There are no pending orders or services... What's that message all about? How do I correctly process the upgrade?
  18. jwogrady

    Restore a Domain

    So, what I think happened.... - Log in as client and created a domain order. However, could not complete order since I didn't have offline payment option enabled. - As an admin, I accepted the order, but the ENOM automation didn't run. The services were probably all in "pending" status for payment. - I need the ENOM process to run so I cancelled the order. Now I have 20 domain service showing as cancelled!!! Definately not what I want. - The is no way to un-cancel and order or a service... So my option of last resort.... manually changing services to pending (in the database)... and then manually making each domain "active".... That triggered the automation. However, I do have an order with no transactions against it. I'm hoping once I process payment that will turn from red to green. What I learned.... 1.) items without payment are in pending status, but they can be manually processed from there to force the automation.... However, I do have to accept the credit risk for doing that. 2.) you can't un-cancel service.... So my remaining question, how bad did I mess up my database making a manual change....
  19. jwogrady

    Restore a Domain

    I log in as customer and create a domain order with 20 domains EPP codes, but there is not credit card. Great, no pay by check option.... Well, I go back in as admin a see pending order... First I accept it... no automation runs. Then I try to cancel it Now I have this!!! How do I clear these cancels out process them enom orders with a check payment. John
  20. I have two cpanel servers. I moved one account to another server. How do I update the server name in Blesta? I don't see an option to choose the server name from a dropdown on the management tab.
  21. That's a good idea. The only problem with it is the renewal months are not charged a monthly fee.
  22. I have a use case where I need to charge an annual fee and monthly fee in the same product. What would be the best way to approach this.... For example, $100 every year and $5 per month...
  23. What the rationale here? To encourage us to use configurable options? That's not working for me either....
  24. I'm getting the following error when adding a configurable option to addon within a package. Here is how it's setup. Widget Package - Widget Addon 1 ---- widget option a ---- widget option b - Widget Addon 2 - Widget Addon 3 Add "Widget Addon 1" and "widget option 2" I click continue. Select Widget Addon 1 Term and check configurable options a and b Go to "Widget Add 2" select term and then continue... That's when I get the error.... hmmm... uncheck the config options and complete order with no incident. Then I can go to the package and add the option. Why is the config option being applied to all the remaining addon products? **update** Did some additional test, if all the addons are using the same universal module still does not work. To get it to work as expected, I had to add the options group to all addons in the package. That's no good because all the addons don't share the same options. The expected behavior is that I would be able to select the option and go to the next addon without error. Is this a bug or a user error? **update2** another workaround is adding the addon with configurable option to the last item in the order workflow... More of a hack than a fix.... **update3** updating the display order isn't feasible... because not ability to control that. It's done alphabetically.
  25. I would like customers to be able to select one or more options. Here is how I have it setup, but would really like to eliminate the duplicate headers since the options are all the same type. Specifically, would like to display... Vertical Directory Options - (select zero, one, or more) - 1 - 2 - 3 instead of ... Vertical Directory - 1 Vertical Directory - 2 Vertical Directory - 3 Beyond, multiple-select field type.... I would like to be able to... - charge cancellation fees on options. - apply discounts to the recurring and setup fee depending on the number of options selected. - drop the cancellation fee after X number of term cycles. - have the option to pro-rate the cancellation fee.
×
×
  • Create New...