Jump to content
  • 0

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


10RUPTiV

Question

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 ?

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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),
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...