LaTeX forum ⇒ Calendars and MiscellaneousInvoice: Odd percentage error in subtotal (and total)

Calendars, invoices, tables, memos, contracts, dictionaries, code snippets
visvaji
Posts: 2
Joined: Fri Apr 10, 2015 10:07 am

Invoice: Odd percentage error in subtotal (and total)

Postby visvaji » Fri Apr 10, 2015 10:18 am

I have just started with the invoice class. Exactly what I need.

However there is an odd percentage error in the subtotal, and total. This is an example:
  1. \begin{invoiceTable}
  2. \feetype{bla bla}
  3. \hourrow{bla bla}{1.0}{180}
  4. \hourrow{bla bla}{0.5}{180}
  5. \hourrow{bla bla}{0.20}{180}
  6. \hourrow{bla bla}{0.20}{180}
  7. \hourrow{bla bla}{0.5}{180}
  8. \subtotal*
  9.  
  10. \feetype{bla bla}
  11. \hourrow{bla bla}{0.5}{180}
  12. \hourrow{bla bla}{0.5}{180}
  13. \subtotal*


The result is:
bla bla 1.00 Std. 180.00 180.00
bla bla 0.50 Std. 180.00 90.00
bla bla 0.20 Std. 180.00 36.00
bla bla 0.20 Std. 180.00 36.00
bla bla 0.50 Std. 180.00 90.00
Teilsumme 431.64

Why not 432.00?

Tags:

visvaji
Posts: 2
Joined: Fri Apr 10, 2015 10:07 am

Postby visvaji » Fri Apr 10, 2015 2:22 pm

Saw this warning http://www.barik.net/archive/2004/11/08/200700/ and played with the number of hours. For example, 0.25 or 0.30 hours don't have the problem. It is a rounding problem after all.

Any explanations?

User avatar
Johannes_B
Site Moderator
Posts: 3551
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Apr 10, 2015 3:09 pm

Hi and welcome,

i filed an issue report with the developer on github. The problem is known and i bumped it once more. Let's hope he adjusts the class.

There is one problem though, the class provided at LaTeX-templates is an older version, incompatible to the current version.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Calendars and Miscellaneous”

Who is online

Users browsing this forum: No registered users and 1 guest