zookeepr/zookeepr — pull request #201 by iseppi (2012-09-17 15:08:57+00:00)
Title: Optimise Invoice model by extending the model to do more with SQL

* Use mapped attributes to replace existing functions so that they use SQL
* Replace references to old function calls with references to mapped attributes
* Change good_payments and bad_payments from functions to relations