Commit graph

107 commits

Author SHA1 Message Date
doxulting
d849d360a7 This time we only check books that borrowers still have 2004-05-24 14:20:15 +00:00
doxulting
8268330561 Premier commit JB34. Verification du nombre maximum de livre a emprunter. 2004-05-24 12:14:38 +00:00
tipaul
a4157fd8d2 continuing code cleaning & reordering 2004-05-04 16:15:56 +00:00
tipaul
5065cfa25c removing Renewals (all circ related subs are moved to Circ2.pm) 2004-05-04 15:46:01 +00:00
tipaul
6cc534a686 POD documenting & some improvements 2004-05-03 16:36:31 +00:00
tipaul
040bcdf92b CIRCULATION : the big rewrite...
This 1st commit reorders deeply the circulation module.
The goal is to :
* have something 100% templated/translatable.
* have something easy to read & modify, to say to customers/users : you can define your circulation rules as you want if you accept to look in C4/Circ/Circ2.pm

The circulation now works :
1=> ask for the borrower barcode (as previously)
2=> ask for the item barcode.
3=> check "canbookbeissued". This new sub returns 2 arrays :
- IMPOSSIBLE : if something is here, then the issue is not possible and is not done.
- TOBECONFIRMED : if something is here, then the issue can be donc if the user confirms it.
4=> if TOBECONFIRMED is set : ask for confirmation, loop. if neither  are set or confirmation flag is set (2nd pass of the loop), then issue.

The IMPOSSIBLE & TOBECONFIRMED hashs contains :
* the reason of the line. always in capitals, with words separated by _ : BARCODE_UNKNOWN, DEBTS ... as key of the hash
* more information, as value of the hash ( TOBECONFIRMED{ALREADY_ISSUED} = "previous_borrower_name", for example)

This commit :
* compiles
* works on certain situations, not on other
* does NOT issue (the line is # )
* does not check issuing rules depending of # of books allowed / already issued

The next step is :
- check issuing rule.
- extend issuing rule to have a 3D array : for each branch / itemtype / borrowertype = issuing number and issuing length.
2004-05-03 09:10:51 +00:00
tipaul
21a379acda CIRCULATION : the big rewrite...
This 1st commit reorders deeply the circulation module.
The goal is to :
* have something 100% templated/translatable.
* have something easy to read & modify, to say to customers/users : you can define your circulation rules as you want if you accept to look in C4/Circ/Circ2.pm

The circulation now works :
1=> ask for the borrower barcode (as previously)
2=> ask for the item barcode.
3=> check "canbookbeissued". This new sub returns 2 arrays :
- IMPOSSIBLE : if something is here, then the issue is not possible and is not done.
- TOBECONFIRMED : if something is here, then the issue can be donc if the user confirms it.
4=> if TOBECONFIRMED is set : ask for confirmation, loop. if neither  are set or confirmation flag is set (2nd pass of the loop), then issue.

The IMPOSSIBLE & TOBECONFIRMED hashs contains :
* the reason of the line. always in capitals, with words separated by _ : BARCODE_UNKNOWN, DEBTS ... as key of the hash
* more information, as value of the hash ( TOBECONFIRMED{ALREADY_ISSUED} = "previous_borrower_name", for example)

This commit :
* compiles
* works on certain situations, not on other
* does NOT issue (the line is # )
* does not check issuing rules depending of # of books allowed / already issued

The next step is :
- check issuing rule.
- extend issuing rule to have a 3D array : for each branch / itemtype / borrowertype = issuing number and issuing length.
2004-05-03 09:02:12 +00:00
tipaul
207cfeb5b3 renaming items.bulk field to items.itemcallnumber.
Will be used to store call number for libraries that don't use dewey classification.
Note it's related to ITEMS, not biblio.
2004-04-02 14:55:47 +00:00
joshferraro
e85cf7756f Fixes Bug 763 (Location will not change) replaced:
$dbh->do("UPDATE items holdingbranch = $tbr WHERE   items.itemnumbe$
        &itemseen($itm);
	with:
$dbh->do("UPDATE items set holdingbranch = $tbr WHERE   items.itemnumbe$
        &itemseen($itm);
2004-03-24 21:06:48 +00:00
tipaul
fe1f0d563f removed : already exist in Circ2.pm 2004-03-17 15:55:27 +00:00
tipaul
072205a5d7 useless : replaced by Circ2.pm it seems 2004-03-17 15:53:09 +00:00
tipaul
c45548257d removing Returns, that is useless 2004-03-17 15:48:28 +00:00
tipaul
baf896c940 removing unused package 2004-03-17 15:16:58 +00:00
rangi
795a46d49f Got rid of the last error message -1 bug 2004-03-06 21:26:44 +00:00
tipaul
b5113b8e5b unsued package. beginning code cleaning 2004-03-04 15:39:41 +00:00
tipaul
58951e551f new feature : stocktaking/inventory.
Look in reports menu
(no DB changes)
2004-02-12 09:16:18 +00:00
tipaul
3635a596cf synch'ing 2.0.0 branch and head 2004-02-11 08:35:31 +00:00
tipaul
864f90efd4 fix for #318 2003-12-19 14:44:46 +00:00
tipaul
571906a1a4 fixing compilation bugs 2003-12-11 12:56:34 +00:00
slef
8b66c677e5 DBI call fix for bug 662 2003-12-08 14:45:30 +00:00
slef
7f1072e28f DBI call fix for bug 662 2003-12-08 14:24:55 +00:00
slef
732e834edf DBI call fix for bug 662 2003-12-08 14:14:56 +00:00
slef
c3491a735e DBI call fixes for bug 662 2003-12-08 14:08:49 +00:00
slef
a1d31b88e7 DBI fixes for bug 662 2003-12-03 12:09:44 +00:00
slef
8f6f8b99a9 DBI changes fixing bug 662 2003-12-03 12:05:40 +00:00
slef
7784d816a1 DBI fixes re bug 662. Removed worrying suggestion to use dbh->do in comments. 2003-12-03 11:51:52 +00:00
rangi
9c998cda51 Fix for bug 535, and adding the classification column to the variables
available to the template
2003-11-04 19:48:50 +00:00
rangi
d7bf28d524 Fix for bug 562 2003-09-03 19:41:22 +00:00
rangi
e6a4f80040 Another attempted fix for issuing bug, can NPL test this please.
It seems to be working ok for me
2003-08-04 01:53:55 +00:00
rangi
e0e3784e8b Fix for bug 293 2003-07-24 09:17:42 +00:00
wolfpac444
2ee3977b0e *** empty log message *** 2003-07-01 17:22:17 +00:00
plugz
878b64dadd FIX: Incorrect parameters given to function Stats::UpdateStats in
issuebook and returnbook functions
2003-06-20 12:48:09 +00:00
tipaul
a72d9621ae removing searchborrower from circ2.pm.
Already exists in Search.pm
this fixes bug #439 and improve consistency.
2003-06-05 17:03:31 +00:00
wolfpac444
00fef22485 Added "noissuescharge" parameter 2003-05-08 12:48:23 +00:00
tipaul
1a218daf74 fix : when a book is taken and marked "not returned yet", it's now marked returned and issue done. 2003-05-05 14:14:28 +00:00
tipaul
fa5d7968a2 missing " 2003-05-05 10:11:34 +00:00
tipaul
3c4012d4de fix for 191, code reindenting & some query improvment 2003-05-05 09:41:03 +00:00
rangi
76b467c900 renewbook is used by renewscript.pl
Making sure characters are escaped in the database insert
2003-04-30 22:55:54 +00:00
tipaul
22567447ce *** empty log message *** 2003-04-29 16:51:15 +00:00
tipaul
7d34ac8ec4 *** empty log message *** 2003-04-11 08:41:06 +00:00
tipaul
b9fbe0083f *** empty log message *** 2003-03-10 15:19:33 +00:00
acli
88dcb0a314 Changed the 3 "this does nothing" lines to set the flag. Is this right? 2003-02-05 07:55:42 +00:00
acli
f475af255f Implemented fixes for bug 170
1. Circ2::returnbook will throw an exception if $branch is undef
2. branch/printer-getting code is modularized into getbranch and getprinter
   with correct logic from circulation.pl (temporarily put into Circ2.pm)
3. circulation.pl and returns.pl modified to use above functions

Noted correct tab sizes for the files; returns.pl partially reformatted to
conform to the dominant correct tab size

Handle non-latin1 charsets for returns.pl
2003-02-05 06:28:56 +00:00
tonnesen
08d26bcc75 Removing ReserveWaiting call pending further discussion... 2002-10-24 20:09:29 +00:00
tonnesen
7aeb26593b Merging changes from rel-1-2 into trunk (circulation module only) 2002-10-24 18:30:17 +00:00
arensb
eff606ba56 Replaced expressions of the form "$x = $x <op> $y" with "$x <op>= $y".
Thus, $x = $x+2 becomes $x += 2, and so forth.
2002-10-13 11:32:14 +00:00
arensb
fddab26c2e Deleted unused variables.
Removed trailing whitespace.
2002-10-13 08:27:49 +00:00
arensb
d5c8d40e23 Deleted unused variables.
Removed trailing whitespace.
2002-10-13 06:37:54 +00:00
arensb
73bcde4fa1 Added magic RCS comment.
Added some FIXME comments explaining why I didn't write a POD.
Removed unused finalizer.
2002-10-13 06:29:37 +00:00
arensb
a3118241ed Added magic RCS comment.
Added some FIXME comments.
Added some explanatory comments.
Removed trailing whitespace.
Deleted unused variables.
Added POD.
Removed unused finalizer.
2002-10-13 06:28:49 +00:00