From: erickson Date: Tue, 29 Sep 2009 22:13:28 +0000 (+0000) Subject: fixed faulty date query on user transaction search, updated some docs, update API... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9a43518c13801889e7721d0fa0a7a7986abf732f;p=evergreen%2Fbjwebb.git 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 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm index bc6473167..9d42b4409 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} });