Permalink
Browse files

Fixed jmemberentry stuff

  • Loading branch information...
1 parent 7a5dadc commit e2dd7ac6f20c559c172864dc684b41412aab14d7 wolfpac444 committed May 27, 2003
Showing with 6 additions and 3 deletions.
  1. +1 −1 insertjdata.pl
  2. +4 −1 jmemberentry.pl
  3. +1 −1 koha-tmpl/intranet-tmpl/default/en/members/jmemberentry.tmpl
View
@@ -44,7 +44,7 @@
}
my $dbh = C4::Context->dbh;
my $query;
-for (my $i=0;$i<3;$i++){
+for (my $i=0;$i<1;$i++){
my $x = "cardnumber_child_$i";
my $sth=$dbh->prepare("Select * from borrowers where borrowernumber=?");
$sth->execute($x);
View
@@ -29,6 +29,7 @@
use HTML::Template;
use C4::Interface::CGI::Output;
use C4::Date;
+use C4::Members;
my $input = new CGI;
@@ -66,19 +67,21 @@
# get the data for children
my $cmember1=NewBorrowerNumber();
my @cmemdata;
-for (my $i=0;$i<3;$i++){
+for (my $i=0;$i<1;$i++){
my %row;
$row{'cmember'}=$cmember1+$i;
$row{'i'}=$i;
$row{'count'}=$i+1;
push(@cmemdata, \%row);
}
+my $jcardnumber=C4::Members::fixup_cardnumber("");
$template->param( member => $member,
firstname => $data->{'firstname'},
surname => $data->{'surname'},
cardnumber => $data->{'cardnumber'},
+ jcardnumber => $jcardnumber,
area => $data->{'area'},
city => $data->{'city'},
physstreet => $data->{'physstreet'},
@@ -55,7 +55,7 @@
<STRONG>Member# <TMPL_VAR NAME=cmember></STRONG>, <b>Card Number*</b></STRONG>
</TD>
<TD>
- <input type=text name=cardnumber_child_<TMPL_VAR NAME=i> size=20 value=""><br>
+ <input type=text name=cardnumber_child_<TMPL_VAR NAME=i> size=20 value="<TMPL_VAR NAME=jcardnumber>"><br>
<input type=hidden name=bornumber_child_<TMPL_VAR NAME=i> value="<TMPL_VAR NAME=cmember>">
</td>
</TR>

0 comments on commit e2dd7ac

Please sign in to comment.