bug 5497: make all library fields available to circ receipt/slips github/bug_5497 origin/new/bug_5497
authorGalen Charlton <gmcharlt@gmail.com>
Tue, 4 Jan 2011 19:38:44 +0000 (14:38 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 4 Jan 2011 19:49:02 +0000 (08:49 +1300)
This allows the receipt template to be more readily customized
to include the library's address, phone number, email address, etc.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
members/moremember.pl

index aa8165b..605e278 100755 (executable)
@@ -222,8 +222,7 @@ if ( C4::Context->preference("IndependantBranches") ) {
     $samebranch = 1;
 }
 my $branchdetail = GetBranchDetail( $data->{'branchcode'});
-$data->{'branchname'} = $branchdetail->{branchname};
-
+@{$data}{keys %$branchdetail} = values %$branchdetail; # merge in all branch columns
 
 my ( $total, $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber );
 my $lib1 = &GetSortDetails( "Bsort1", $data->{'sort1'} );