[open-ils-commits] r14212 - trunk/Open-ILS/src/perlmods/OpenILS/Application (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Sep 29 18:13:34 EDT 2009
Author: erickson
Date: 2009-09-29 18:13:28 -0400 (Tue, 29 Sep 2009)
New Revision: 14212
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm
Log:
fixed faulty date query on user transaction search, updated some docs, update API name to be a little more specific
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm 2009-09-29 22:00:27 UTC (rev 14211)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm 2009-09-29 22:13:28 UTC (rev 14212)
@@ -1203,18 +1203,19 @@
__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 @@
},
where => {
'+mbt' => {usr => $user_id},
- '+mp' => {payment_ts => {'<' => 'now'}}
+ '+mp' => {payment_ts => {between => [$start_date, $end_date]}}
},
order_by => {mp => $order_by}
});
More information about the open-ils-commits
mailing list