I wrote this method while working on bug 32266. I'm not sure if I'm gonna use it. Leaving here in case it is useful in the future.
Created attachment 181992 [details] [review] Bug 39845: Unit tests
Created attachment 181993 [details] [review] Bug 39845: Add Koha::Acquisition::Orders->unreceived_totals This patch introduces a method for returning the following calculated values for a `Koha::Acquisition::Orders` resultset: * items_count * total_replacement_price To test: 1. Apply this patches 2. Run: $ ktd --shell k$ prove t/db_dependent/Koha/Acquisition/Orders.t => SUCCESS: Tests pass! 3. Sign off :-D
Created attachment 182127 [details] [review] Bug 39845: Unit tests Signed-off-by: David Nind <david@davidnind.com>
Created attachment 182128 [details] [review] Bug 39845: Add Koha::Acquisition::Orders->unreceived_totals This patch introduces a method for returning the following calculated values for a `Koha::Acquisition::Orders` resultset: * items_count * total_replacement_price To test: 1. Apply this patches 2. Run: $ ktd --shell k$ prove t/db_dependent/Koha/Acquisition/Orders.t => SUCCESS: Tests pass! 3. Sign off :-D Signed-off-by: David Nind <david@davidnind.com>