[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.


Index: Input.pm
RCS file: /sources/koha/koha/C4/Input.pm,v
retrieving revision
retrieving revision
diff -u -b -r1. -r1.
--- Input.pm    15 May 2007 15:24:57 -0000
+++ Input.pm    15 May 2007 15:29:43 -0000
@@ -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.

reply via email to

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