From 9a43518c13801889e7721d0fa0a7a7986abf732f Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 29 Sep 2009 22:13:28 +0000 Subject: [PATCH] fixed faulty date query on user transaction search, updated some docs, update API name to be a little more specific git-svn-id: svn://svn.open-ils.org/ILS/trunk@14212 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Circ.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm index bc64731672..9d42b4409d 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm @@ -1203,18 +1203,19 @@ sub test_batch_circ_events { __PACKAGE__->register_method( method => "user_payments_list", - api_name => "open-ils.circ.user_payments.list", + api_name => "open-ils.circ.user_payments.filtered.batch", stream => 1, signature => { desc => q/Returns a fleshed, date-limited set of all payments a user has made. By default, ordered by payment date. Optionally - ordered by any other column in the top-level "mp" object/, + ordered by other columns in the top-level "mp" object/, params => [ {desc => 'Authentication token', type => 'string'}, {desc => 'User ID', type => 'number'}, {desc => 'Order by column(s), optional. Array of "mp" class columns', type => 'array'} ], - return => {desc => q/List of "mp" objects, fleshed with the billable transaction and the related fully-realized payment object (e.g money.cash_payment)/} + return => {desc => q/List of "mp" objects, fleshed with the billable transaction + and the related fully-realized payment object (e.g money.cash_payment)/} } ); @@ -1240,7 +1241,7 @@ sub user_payments_list { }, where => { '+mbt' => {usr => $user_id}, - '+mp' => {payment_ts => {'<' => 'now'}} + '+mp' => {payment_ts => {between => [$start_date, $end_date]}} }, order_by => {mp => $order_by} }); -- 2.43.2