use C4::Members::Attributes qw(GetBorrowerAttributes);
my $input=new CGI;
my $flagsrequired = { borrowers => 1, updatecharges => 1 };
my $borrowernumber=$input->param('borrowernumber');
my $add=$input->param('add');
if ($add){
if(checkauth($input)) {
if ( checkauth( $input, 0, $flagsrequired, 'intranet' ) ) {
my $barcode = $input->param('barcode');
my $itemnum;
if ($barcode) {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {borrowers => 1, updatecharges => 1},
flagsrequired => $flagsrequired,
debug => 1,
});
my $flagsrequired = { borrowers => 1 };
my $data=GetMember('borrowernumber'=>$borrowernumber);
# print $input->header;
my $barcode=$input->param('barcode');
flagsrequired => { borrowers => 1 },
}
);
my $flagsrequired;
$flagsrequired->{borrowers}=1;
#my ($loggedinuser, $cookie, $sessionID) = checkauth($input, 0, $flagsrequired);
#my ($loggedinuser, $cookie, $sessionID) = checkauth($input, 0, $flagsrequired, 'intranet');
my $member=$input->param('member');
my $cardnumber = $input->param('cardnumber');
my $input = new CGI;
checkauth( $input, 0, { borrowers => 1 }, 'intranet' );
$flagsrequired->{borrowers} = 1;
my ( $loggedinuser, $cookie, $sessionID ) =
checkauth( $input, 0, $flagsrequired );
my $borrowernumber = $input->param('borrowernumber');
checkauth($input, 0, { borrowers => 1 }, 'intranet');
checkauth($input, 0, $flagsrequired);
my $destination = $input->param("destination") || '';
my $cardnumber = $input->param("cardnumber");
-