see #265
This commit is contained in:
parent
533c38dc8f
commit
66ecfe5b35
3 changed files with 5 additions and 7 deletions
|
@ -31,8 +31,6 @@ use C4::Date;
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
my $input= new CGI;
|
my $input= new CGI;
|
||||||
#print $input->header;
|
|
||||||
#print $input->dump;
|
|
||||||
|
|
||||||
#get all the data into a hash
|
#get all the data into a hash
|
||||||
my @names=$input->param;
|
my @names=$input->param;
|
||||||
|
@ -62,7 +60,7 @@ if (my $data=$sth->fetchrow_hashref){
|
||||||
categorycode='$data{'categorycode'}',city='$data{'city'}',area='$data{'area'}',phone='$data{'phone'}',
|
categorycode='$data{'categorycode'}',city='$data{'city'}',area='$data{'area'}',phone='$data{'phone'}',
|
||||||
borrowernotes='$data{'borrowernotes'}',altphone='$data{'altphone'}',surname='$data{'surname'}',
|
borrowernotes='$data{'borrowernotes'}',altphone='$data{'altphone'}',surname='$data{'surname'}',
|
||||||
initials='$data{'initials'}',physstreet='$data{'streetaddress'}',ethnicity='$data{'ethnicity'}',
|
initials='$data{'initials'}',physstreet='$data{'streetaddress'}',ethnicity='$data{'ethnicity'}',
|
||||||
gonenoaddress='$data{'gna'}',lost='$data{'lost'}',debarred='$data{'debarred'}',textmessaging='$data{'textmessaging'}'
|
gonenoaddress='$data{'gna'}',lost='$data{'lost'}',debarred='$data{'debarred'}',textmessaging='$data{'textmessaging'}', branchcode = '$data{'branchcode'}'
|
||||||
where borrowernumber=$data{'borrowernumber'}";
|
where borrowernumber=$data{'borrowernumber'}";
|
||||||
# print $query;
|
# print $query;
|
||||||
|
|
||||||
|
@ -72,13 +70,13 @@ if (my $data=$sth->fetchrow_hashref){
|
||||||
$query="insert into borrowers (title,expiry,cardnumber,sex,ethnotes,streetaddress,faxnumber,
|
$query="insert into borrowers (title,expiry,cardnumber,sex,ethnotes,streetaddress,faxnumber,
|
||||||
firstname,altnotes,dateofbirth,contactname,emailaddress,textmessaging,dateenrolled,streetcity,
|
firstname,altnotes,dateofbirth,contactname,emailaddress,textmessaging,dateenrolled,streetcity,
|
||||||
altrelationship,othernames,phoneday,categorycode,city,area,phone,borrowernotes,altphone,surname,
|
altrelationship,othernames,phoneday,categorycode,city,area,phone,borrowernotes,altphone,surname,
|
||||||
initials,ethnicity,borrowernumber,physstreet) values ('$data{'title'}','$data{'expiry'}','$data{'cardnumber'}',
|
initials,ethnicity,borrowernumber,physstreet,branchcode) values ('$data{'title'}','$data{'expiry'}','$data{'cardnumber'}',
|
||||||
'$data{'sex'}','$data{'ethnotes'}','$data{'address'}','$data{'faxnumber'}',
|
'$data{'sex'}','$data{'ethnotes'}','$data{'address'}','$data{'faxnumber'}',
|
||||||
'$data{'firstname'}','$data{'altnotes'}','$data{'dateofbirth'}','$data{'contactname'}','$data{'emailaddress'}','$data{'textmessaging'}',
|
'$data{'firstname'}','$data{'altnotes'}','$data{'dateofbirth'}','$data{'contactname'}','$data{'emailaddress'}','$data{'textmessaging'}',
|
||||||
'$data{'joining'}','$data{'streetcity'}','$data{'altrelationship'}','$data{'othernames'}',
|
'$data{'joining'}','$data{'streetcity'}','$data{'altrelationship'}','$data{'othernames'}',
|
||||||
'$data{'phoneday'}','$data{'categorycode'}','$data{'city'}','$data{'area'}','$data{'phone'}',
|
'$data{'phoneday'}','$data{'categorycode'}','$data{'city'}','$data{'area'}','$data{'phone'}',
|
||||||
'$data{'borrowernotes'}','$data{'altphone'}','$data{'surname'}','$data{'initials'}',
|
'$data{'borrowernotes'}','$data{'altphone'}','$data{'surname'}','$data{'initials'}',
|
||||||
'$data{'ethnicity'}','$data{'borrowernumber'}','$data{'streetaddress'}')";
|
'$data{'ethnicity'}','$data{'borrowernumber'}','$data{'streetaddress'}','$data{'branchcode'}')";
|
||||||
}
|
}
|
||||||
# ok if its an adult (type) it may have borrowers that depend on it as a guarantor
|
# ok if its an adult (type) it may have borrowers that depend on it as a guarantor
|
||||||
# so when we update information for an adult we should check for guarantees and update the relevant part
|
# so when we update information for an adult we should check for guarantees and update the relevant part
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
Area: <TMPL_VAR NAME="area"><BR>
|
Area: <TMPL_VAR NAME="area"><BR>
|
||||||
Fee:$30/year, Paid<BR>
|
Fee:$30/year, Paid<BR>
|
||||||
Joined: <TMPL_VAR NAME="dateenrolled">, Expires: <TMPL_VAR NAME="expiry"><BR>
|
Joined: <TMPL_VAR NAME="dateenrolled">, Expires: <TMPL_VAR NAME="expiry"><BR>
|
||||||
Joining Branch: <TMPL_VAR NAME="homebranch"><P>
|
Joining Branch: <TMPL_VAR NAME="branchcode"><P>
|
||||||
<TMPL_IF NAME="printethnicityline">
|
<TMPL_IF NAME="printethnicityline">
|
||||||
Ethnicity: <TMPL_VAR NAME="ethnicity">, <TMPL_VAR NAME="ethnotes"><br>
|
Ethnicity: <TMPL_VAR NAME="ethnicity">, <TMPL_VAR NAME="ethnotes"><br>
|
||||||
</TMPL_IF>
|
</TMPL_IF>
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
<B>Joining Branch</B>
|
<B>Joining Branch</B>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<TMPL_VAR Name="joinbranch">
|
<TMPL_VAR Name="branchcode">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr valign=top bgcolor="<TMPL_VAR Name="main">" >
|
<tr valign=top bgcolor="<TMPL_VAR Name="main">" >
|
||||||
|
|
Loading…
Reference in a new issue