simpleinvoices/simpleinvoices — pull request #10 by soif (2012-12-04 16:32:26+00:00)
Title: Fix Paid Invoices shown as owed 

Dont show the Paid invoice as owed (in the owed filter view) with a total owed of 0...

How to reproduce the bug :

- Create an invoice with 1 item, $70.06, VAT 19,6%
( total = 83.79176, rounded as 83.79 on the invoice)
- Create a payment of $83,79

--> The invoice is still shown as owed because $0.0017 are still not paid....

Rounding the owed amount in the query fixes this.
BTW I've only aplied to the mysql query, (I'm not familiar with pgsql)

HTH