[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/C4 Input.pm [dev_week]
From: |
Kyle Hall |
Subject: |
[Koha-cvs] koha/C4 Input.pm [dev_week] |
Date: |
Tue, 15 May 2007 15:29:43 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: dev_week
Changes by: Kyle Hall <kylemhall> 07/05/15 15:29:43
Modified files:
C4 : Input.pm
Log message:
Updated documentation for checkdigit.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Input.pm?cvsroot=koha&only_with_tag=dev_week&r1=1.16.4.2.2.1&r2=1.16.4.2.2.2
Patches:
Index: Input.pm
===================================================================
RCS file: /sources/koha/koha/C4/Input.pm,v
retrieving revision 1.16.4.2.2.1
retrieving revision 1.16.4.2.2.2
diff -u -b -r1.16.4.2.2.1 -r1.16.4.2.2.2
--- Input.pm 15 May 2007 15:24:57 -0000 1.16.4.2.2.1
+++ Input.pm 15 May 2007 15:29:43 -0000 1.16.4.2.2.2
@@ -69,12 +69,19 @@
=item checkdigit
- $valid = &checkdigit($env, $cardnumber $nounique);
+ $valid = &checkdigit($env, $cardnumber $nounique, $borrowernumber);
Takes a card number, computes its check digit, and compares it to the
-checkdigit at the end of C<$cardnumber>. Returns a true value iff
+checkdigit at the end of C<$cardnumber>. Returns a true value if
C<$cardnumber> has a valid check digit.
+If C<$nounique> is false, then we are adding a new member, we check
+to make sure the given barcode is unique.
+If C<$nounique> is true, we are updating a memeber, we need to check
+and see if the given cardnumber is the members current cardnumber.
+If it is, allow it. If it is not, the member is recieving a new cardnumber,
+check to make sure that it is a new unique cardnumber.
+
C<$env> is ignored.
=cut
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/C4 Input.pm [dev_week],
Kyle Hall <=