dates1967 / simpleinvoices

Automatically exported from code.google.com/p/simpleinvoices
GNU General Public License v3.0
0 stars 0 forks source link

Export Calculates Gross Total Incorrectly #223

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an invoice with the default template. Add multiple items.
2. Checking int he view of invoice shows correctly
3. Exporting to PDF etc. has an error as gross vlaue is 0.00

Please provide any additional information below.
I hacked a fix. I changed line 244 in templates/invoices/default/template.tpl

FROM
{{{
<td align="right" 
class="tbl1-right">{$invoice_gross_total|number_format:2:",":"."}&nbsp;{$prefere
nce.pref_currency_sign}</td>
}}}

TO
{{{
<td align="right" 
class="tbl1-right">{$invoice.gross|number_format:2:",":"."}&nbsp;{$preference.pr
ef_currency_sign}</td>
}}}

I'm not sure why it's being recalculated anyway considering the value has 
already been calculated in the DB by the invoice::getInvoiceGross function.

Original issue reported on code.google.com by felimwhiteley on 22 Feb 2012 at 2:50

GoogleCodeExporter commented 9 years ago
Thanks for reporting this.

What version of Simple invoices are you using and are you using the original SI 
invoice template?

Matt

Original comment by MattAntW...@gmail.com on 23 Feb 2012 at 3:05

GoogleCodeExporter commented 9 years ago
Hi Matt,

Ah yes that might have been helpful! 2011.1 was the version and it was the 
original template.

Thanks.

Original comment by felimwhiteley on 24 Feb 2012 at 9:58

GoogleCodeExporter commented 9 years ago
Thanks, I can't replicate the problem but I will leave this open so that it 
gets checked again before the next release.

Thank you for contributing! :)

Original comment by matt.w...@kojilabs.com on 29 Feb 2012 at 9:14