Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/18/2017 in Posts

  1. Hi, I've just upgraded to 4.0.0 -- everything went smoothly, BUT... that annoying invoice downloading reappeared So here is the patch. I really think there should be a "view" (= stream to browser) AND "download" links on the invoice row. I've simply created a streamInvoices function and thats it. *** ../_extract/blesta/app/controllers/admin_billing.php 2017-03-14 10:23:18.000000000 +0100 --- ./blesta/app/controllers/admin_billing.php 2017-03-18 12:22:23.230248000 +0100 *************** *** 282,288 **** // Print invoices if (!array_key_exists('mark_printed', $this->post)) { $this->components(['InvoiceDelivery']); ! $this->InvoiceDelivery->downloadInvoices($invoice_ids); exit; } else { // Mark invoices printed --- 282,288 ---- // Print invoices if (!array_key_exists('mark_printed', $this->post)) { $this->components(['InvoiceDelivery']); ! $this->InvoiceDelivery->streamInvoices($invoice_ids); exit; } else { // Mark invoices printed diff -cr ../_extract/blesta/app/controllers/admin_clients.php ./blesta/app/controllers/admin_clients.php *** ../_extract/blesta/app/controllers/admin_clients.php 2017-03-14 10:23:18.000000000 +0100 --- ./blesta/app/controllers/admin_clients.php 2017-03-18 12:21:51.650062000 +0100 *************** *** 4292,4298 **** // Download the invoice in the admin's language $this->components(['InvoiceDelivery']); ! $this->InvoiceDelivery->downloadInvoices([$invoice->id], ['language' => Configure::get('Blesta.language')]); exit; } --- 4292,4298 ---- // Download the invoice in the admin's language $this->components(['InvoiceDelivery']); ! $this->InvoiceDelivery->streamInvoices([$invoice->id], ['language' => Configure::get('Blesta.language')]); exit; } diff -cr ../_extract/blesta/app/controllers/client_invoices.php ./blesta/app/controllers/client_invoices.php *** ../_extract/blesta/app/controllers/client_invoices.php 2017-03-14 10:23:18.000000000 +0100 --- ./blesta/app/controllers/client_invoices.php 2017-03-18 12:22:45.823894000 +0100 *************** *** 114,120 **** } $this->components(['InvoiceDelivery']); ! $this->InvoiceDelivery->downloadInvoices([$invoice->id]); exit; } } --- 114,120 ---- } $this->components(['InvoiceDelivery']); ! $this->InvoiceDelivery->streamInvoices([$invoice->id]); exit; } } diff -cr ../_extract/blesta/components/invoice_delivery/invoice_delivery.php ./blesta/components/invoice_delivery/invoice_delivery.php *** ../_extract/blesta/components/invoice_delivery/invoice_delivery.php 2017-03-14 10:23:20.000000000 +0100 --- ./blesta/components/invoice_delivery/invoice_delivery.php 2017-03-18 12:20:53.422226000 +0100 *************** *** 310,315 **** --- 310,320 ---- $invoices = $this->getInvoices($invoice_ids, true); $this->buildInvoices($invoices, true, $options)->download(); } + public function streamInvoices(array $invoice_ids, array $options = null) { + $invoices = $this->getInvoices($invoice_ids, true); + $this->buildInvoices($invoices, true, $options)->stream(); + } + /** * Returns an errors raised
    2 points
  2. Paul

    Release 4.0.0

    Version 4.0.0 is now available. You can download directly right here. Installing Blesta See Installing Blesta in the User Manual for instructions. Upgrading Blesta See Upgrading Blesta in the User Manual for instructions. Migrating to Blesta See Migrating to Blesta in the User Manual for instructions. Overview PHP 7 is now supported. Major codebase upgrade to new version of the minPHP framework. Mass Mailer plugin lets you send email to specific customers, or export the data. Clean new FOUR staff and client area themes, and new dropdown staff menu. Fantastic looking interactive graphs let you see a breakdown of revenue by payment type. New client order link and permissions based order form listing page. Many order form improvements like reCAPTCHA 2, GeoIP state/province selection & more. Fantastic new The SSL Store module and plugin. Create an account and start selling now. Blesta License Module is now included with Blesta for Blesta resellers. Tons more... Directories Removed in 4.0 The following directories are not in the 4.0 distribution, but were in 3.x. If upgrading, you may remove them. ~/helpers/date ~/helpers/form ~/helpers/html ~/helpers/javascript ~/helpers/pagination ~/helpers/xml Release Notes See Blesta Core - Version 4.0.0. For older releases see all Change Logs.
    2 points
  3. Nelsa

    Provisioning Software Advice

    Oh..my mistake,I toght you're going to sell VPSs.
    1 point
  4. from v4 , reCaptcha was a shipped vendor components with blesta core , it would very beneficent to make reCaptcha settings as company setting rather than make it in the order form settings . this will allow developers to only call the reCaptcha setting and check if exist and use it . in the order form late the select box as it and show reCaptcha in the list only if it was a setting in the company, if not not show it . that way also any plugin can only initialize reCaptcha components with company settings rather than make a settings to be saved . also this behavior will help blesta team to make reCaptcha available the Form class if they want to add a field for it like ( $this->Form->reCaptcha([$options]); ) https://requests.blesta.com/topic/make-recaptcha-as-company-settings
    1 point
  5. Nelsa

    Can't Change Theme

    Yes but that doesnt change content of htaccess file..you have to convert content of htaccess file to nginx rules...there are good converters online ...just google it
    1 point
  6. Blesta Addons

    Full Service Invoicing

    i never see a like case billing system . normally it should generate a invoice in the end of the month with the amount to pay for the used hours . also how it should charge client without invoice ? so with this case it should have 24 invoice per day !!! this behavior is against the majority of countries law . normally invoice generated it can't be changed !!
    1 point
  7. Sounds like this is pretty solid, but here's my 2c anyways. If you know how to do it, I recommend a manual install. That way you know exactly what's happening, and you'll be more familiar with the process in case anything comes up. Softaculous is great, but if you have the technical know how I would install it yourself. It's still pretty easy, but yeah, will take a few more minutes that using Softaculous.
    1 point
  8. 1 point
  9. Not to be impatient, but do we have a date for a production-ready integration with blesta on the radar? I need to implement a basic network status monitor and cachet looks brilliant. If it's close to going gold, I'll postpone a stand-alone install lieu a blesta-cachet extension. Thanks for your time.
    1 point
×
×
  • Create New...