Jump to content
  • 0

Invoice Pdf - Maybe A Bug - Not Compliant For My Region


Question

Posted

Don't know about other region, but here in QC/CA

 

We need to display the total of an item (1 line) without the taxes.

 

For example,

 

Description           Qte             Unit Price               Cost

 

something               2                  100.00                 (here it need to be 200.00$ and not 2x100 + taxes)

 

Is it something we can change our self or it's in the core ?

 

4 answers to this question

Recommended Posts

  • 0
Posted

Tax can be added on a per line-item basis, so some line items may or may not have tax applied for a given invoice, and it wouldn't be known which item is taxed without the line item cost including tax. Nonetheless, you can change this by updating the file that generates the PDF. This is a core file change.

 

You didn't mention which version of Blesta you're running, so I'll assume v3.1.0-b2.

 

Update /components/invoice_templates/default_invoice/default_invoice_pdf.php if you're using the default invoice template (as opposed to the quickbooks one):

'price'=>$this->CurrencyFormat->format($this->invoice->line_items[$i]->total, $this->invoice->currency, self::$standard_num_options),

to

'price'=>$this->CurrencyFormat->format($this->invoice->line_items[$i]->subtotal, $this->invoice->currency, self::$standard_num_options),
  • 0
Posted
  On 1/15/2014 at 5:58 PM, PointPubMedia said:

Is it safe to upgrade to 3.1 for production ?

 

I would wait for the final release to upgrade to 3.1. It's actually in QA now, so it may be released tomorrow.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...