koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/C4/Circulation Circ2.pm [rel_3_0]


From: LAURIN arnaud
Subject: [Koha-cvs] koha/C4/Circulation Circ2.pm [rel_3_0]
Date: Tue, 06 Feb 2007 14:51:31 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_3_0
Changes by:     LAURIN arnaud <alaurin> 07/02/06 14:51:31

Modified files:
        C4/Circulation : Circ2.pm 

Log message:
        Adding a new security issuing process, now, we checking if we have a 
transfert non finished for the item issuing, if we have one, we finish the 
brantranfert line, and adding a comment in this line to trace it latter (maybe 
a new function in stats ...)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Circulation/Circ2.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.114.2.37&r2=1.114.2.38

Patches:
Index: Circ2.pm
===================================================================
RCS file: /sources/koha/koha/C4/Circulation/Circ2.pm,v
retrieving revision 1.114.2.37
retrieving revision 1.114.2.38
diff -u -b -r1.114.2.37 -r1.114.2.38
--- Circ2.pm    5 Feb 2007 13:47:37 -0000       1.114.2.37
+++ Circ2.pm    6 Feb 2007 14:51:31 -0000       1.114.2.38
@@ -17,7 +17,7 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-# $Id: Circ2.pm,v 1.114.2.37 2007/02/05 13:47:37 alaurin Exp $
+# $Id: Circ2.pm,v 1.114.2.38 2007/02/06 14:51:31 alaurin Exp $
 
 use strict;
 require Exporter;
@@ -41,7 +41,7 @@
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
 
 # set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.114.2.37 $' =~ /\d+/g; 
shift(@v).".".join( "_", map { sprintf "%03d", $_ } @v ); };
+$VERSION = do { my @v = '$Revision: 1.114.2.38 $' =~ /\d+/g; 
shift(@v).".".join( "_", map { sprintf "%03d", $_ } @v ); };
 
 =head1 NAME
 
@@ -1308,6 +1308,27 @@
                 }
             }
         }
+# END OF THE RESTYPE WORK
+
+# Starting process for transfer job (checking transfert and validate it if we 
have one)
+
+       my ($datesent) = get_transfert_infos($iteminformation->{'itemnumber'});
+       
+       if ($datesent) {
+#      updating line of branchtranfert to finish it, and changing the to 
branch value, implement a comment for lisibility of this case (maybe for stats 
....)
+       my $sth =
+               $dbh->prepare(
+                       "update branchtransfers set datearrived = now(),
+                       tobranch = ?,
+                       comments = 'Forced branchtransfert'
+                        where
+                        itemnumber= ? AND datearrived IS NULL"
+               );
+               
$sth->execute(C4::Context->userenv->{'branch'},$iteminformation->{'itemnumber'});
+               $sth->finish;
+       }
+       
+# Ending process for transfert check
 
         # Record in the database the fact that the book was issued.
         my $sth =




reply via email to

[Prev in Thread] Current Thread [Next in Thread]