Jump to content

dubjuice

Members
  • Posts

    24
  • Joined

  • Last visited

Posts posted by dubjuice

  1. I create a staff group and assigned several staff users to the group.  The group is set to receive specific emails such as new invoices.  However when I generate a new invoice it only gets BCC'd to my single admin account.  Even if I added other staff as admin's they do not get them.  Am I missing something in the set up to get staff groups BCC'd on certain emails?

  2. Im looking for a way to increase the cost of an account by a percentage based on an option.  So for example if i have 4 website hosting packages but i want to allow for the option to host them on SSD drives vs Standard Drives at a premium.  I could create 4 additional packages for SSD hosting but it would be nicer to have it as an option they click and then it automatically increases the price by a % instead of a fixed amount.

     

    Any idea if this is a feature request or is this currently possible?

  3. just copy the default_invoice to any other template you want letsay my_invoice .

    don't forget to hcnage all the name files and class from DefaultInvoice to MyInvoice .

    have this already done in my test server . i can't share the files , because i have option betwen HTML output and PDF output , but is not completed totally , so there is some bugs/fix to finish , after i will puplish it freely .

    beauty.. got it working.  Thanks!

  4. If you update Blesta, then yes, the change you made would be overridden. You would have to maintain the custom changes yourself. Alternatively, you could use vQmod to make the change instead, so it will persist.

     

    Also, I think you can use:

    $this->invoice->line_items[$i]->subtotal
    

    ..instead of calculating the subtotal yourself.

    yes thanks, that works too.  How do i go about creating a custom template? that would work best i think.  Would allow me to make some other changes on the invoice as well if i wanted.

    I just tried to create a new folder under invoice templates and copied the files in there from the default and changed all the names (ie bmts_invoice) but when i load the invoice customization page it just white screens, deleted the folder and files and the page loads again

  5. i dont really understand your question.  All i want is for the invoice that is generated to show the correct line item total without tax.  Having the cost column include the tax makes no sense.  People assuming the column totals up which it doesnt because if you total the cost column its the total price not the subtotal price.   My fix in the PDF works fine Im just concerned that if i update blesta the changes will get overridden with a new pdf template file.

  6. I did try searching for it but couldnt find anything.  Whats the inclusive tax calculation?  I fix the problem by modifying the default_invoice_pdf.php file making the following change to calculate the cost field instead of using the total from the line item.  Problem is that if the system is updated i think this will get overriden (not 100% sure about that). 

     

     

    public function drawInvoice() {
            
            $options = $this->line_options;
            $options['y_pos'] = max($this->header_end_y, $this->GetY());
            
            // Build line items
            $lines = array();

            for ($i=0; $i<count($this->invoice->line_items); $i++) {
                $lines[] = array(
                    'name'=>$this->invoice->line_items[$i]->description,
                    'qty'=>$this->CurrencyFormat->truncateDecimal($this->invoice->line_items[$i]->qty, 0),
                    'unit_price'=>$this->CurrencyFormat->format($this->invoice->line_items[$i]->amount, $this->invoice->currency, self::$standard_num_options),
                    'price'=>$this->CurrencyFormat->format(($this->invoice->line_items[$i]->amount*$this->invoice->line_items[$i]->qty), $this->invoice->currency, self::$standard_num_options),
                       /**'price'=>$this->CurrencyFormat->format($this->invoice->line_items[$i]->total, $this->invoice->currency, self::$standard_num_options),**/
                );

  7. In the detault template for invoices it seems to include the tax on each line item in the invoice in the field called cost.  This seems confusing, it shouldn't show the total including tax.  How can i change this?

     

    Right now it shows:

    description | qty I unit price I cost = qty * unit price * tax

    subtotal shows total without tax,

    tax line

    total line with tax

     

    it should be:

    description | qty I unit price I cost = qty * unit price

    subtotal = total without tax,

    tax = total taxes

    total = subtotal +tax

     

  8. Ok so there is now another issue.  Clients are able to use http://clients.mydomain.com/client to log into their account, however when they select password reset it the URL generated is http://mydomain.com/client/ which doesnt exist since the billing system is really at http://mydomain.com/billing/client

     

    are these variables stored somewhere in the database or PHP code so i can update the URL it's generating.  It would be nice to have a configuration page to override the variables in the system if needed.

  9. ok so i guess then the next question is whether there is a way to create a specific alert based on if a users selects advanced configurable options so that a provisioning admin can be alerted to manually modify the hosting package in cpanel.  I know that the system generates emails for new accounts etc, but it would be nice to have a short provisioning email generated with just the account information and what options need to be added to it. 

     

    In an automated hosting environment you may not want to review ever single new account provisioning when its being automatically billed etc and only want to see the anomolies that you actually need to do something additional for.

  10. ok thanks, so i have a follow up question.  I decided to change the installation folder from domain.com\blesta to domain.com\billing by renaming the folder.  I changed all my redirections etc and it works fine for the order form and for the client area, however when i go to domain.com\billing\admin and log in as the administrator i get prompted that the license is incorrect.  If i put in my license key again it keeps telling me its invalid.

     

    How can i fix this?  I tried going into the db and changing the base_url from domain.com\public_html\ (which is what it was set to before) to domain.com\public_html\billing but it doesnt seem to have any effect.

     

     

  11. I have installed Blesta to http://www.mydomain.com/blesta and everything is working just fine.

     

    I also setup a subdomain redirection for the clients  at http://clients.mydomain.com which is a redirect to http://www.mydomain.com/blesta/client.  This also works just fine.

     

    Now in my email templates the {client_url} is by default set to http://www.mydomain.com/blesta/client, can i somewhere change this to reflect my subdomain address or do I have to manually change every template?

  12. Sorry i saw the Regex line but i didnt really look it in detail, i thought it was just filtering to ensure that numeric characters were allowed.  I changed it to 'rule' => array("matches", "/^[a-z]([a-z0-17])*$/i"), but i still get the same error where it truncates the username after the save.  When i reopen the client page the control panel username continues to show as truncated to 8.

  13. Ok so i changed the line from:

    'rule' => array("betweenLength", 1, 8),

    to

    'rule' => array("betweenLength", 1, 16),

     

    now I dont get the error anymore however it then errors out with:

    Unable to fetch the cPanel user file for <first 8 characters of the username>

    so its still only trying to connect with 8, basically truncating it.  Is there somewhere it truncates the username? maybe in the database?

  14. I added a configurable option for users to add additonal disk space to their hosting packages.  The form/billing works, however is there any way that the cpanel module can actually provision this or do i have to manually add the disk space to each account? Also I guess the same question if they remove the added option. 

     

     

  15. I am trying to import my existing cpanel accounts into Blesta but I ran into an issue that the username needs to be between 1 and 8 characters??? i have several usernames with 9+ characters so i cannot connect the client profile in Blesta with the cpanel login.  Can i change this restriction somehow to allow usernames longer than 8 characters?

×
×
  • Create New...