added some cash report methods
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Aug 2006 22:29:35 +0000 (22:29 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Aug 2006 22:29:35 +0000 (22:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5646 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/Money.pm

index 6cef7cf..8af6fd8 100644 (file)
@@ -481,6 +481,37 @@ sub fetch_mbts {
 }
 
 
+__PACKAGE__->register_method(
+       method => 'desk_payments',
+       api_name => 'open-ils.circ.money.org_unit.desk_payments'
+);
+
+sub desk_payments {
+       my( $self, $conn, $auth, $org, $start_date, $end_date ) = @_;
+       my $e = new_editor(authtoken=>$auth);
+       return $e->event unless $e->checkauth;
+       return $e->event unless $e->allowed('VIEW_TRANSACTION', $org);
+       return $U->storagereq(
+               'open-ils.storage.money.org_unit.desk_payments.atomic',
+               $org, $start_date, $end_date );
+}
+
+
+__PACKAGE__->register_method(
+       method => 'user_payments',
+       api_name => 'open-ils.circ.money.org_unit.user_payments'
+);
+
+sub user_payments {
+       my( $self, $conn, $auth, $org, $start_date, $end_date ) = @_;
+       my $e = new_editor(authtoken=>$auth);
+       return $e->event unless $e->checkauth;
+       return $e->event unless $e->allowed('VIEW_TRANSACTION', $org);
+       return $U->storagereq(
+               'open-ils.storage.money.org_unit.user_payments.atomic',
+               $org, $start_date, $end_date );
+}
+