Lines 168-174
System Pref options.
Link Here
|
168 |
# |
168 |
# |
169 |
sub barcodedecode { |
169 |
sub barcodedecode { |
170 |
my ($barcode, $filter) = @_; |
170 |
my ($barcode, $filter) = @_; |
171 |
my $branch = C4::Branch::mybranch(); |
171 |
my $branch = C4::Context::mybranch(); |
172 |
$filter = C4::Context->preference('itemBarcodeInputFilter') unless $filter; |
172 |
$filter = C4::Context->preference('itemBarcodeInputFilter') unless $filter; |
173 |
$filter or return $barcode; # ensure filter is defined, else return untouched barcode |
173 |
$filter or return $barcode; # ensure filter is defined, else return untouched barcode |
174 |
if ($filter eq 'whitespace') { |
174 |
if ($filter eq 'whitespace') { |
Lines 3236-3242
sub GetIssuingCharges {
Link Here
|
3236 |
if ( my $item_data = $sth->fetchrow_hashref ) { |
3236 |
if ( my $item_data = $sth->fetchrow_hashref ) { |
3237 |
$item_type = $item_data->{itemtype}; |
3237 |
$item_type = $item_data->{itemtype}; |
3238 |
$charge = $item_data->{rentalcharge}; |
3238 |
$charge = $item_data->{rentalcharge}; |
3239 |
my $branch = C4::Branch::mybranch(); |
3239 |
my $branch = C4::Context::mybranch(); |
3240 |
my $discount_query = q|SELECT rentaldiscount, |
3240 |
my $discount_query = q|SELECT rentaldiscount, |
3241 |
issuingrules.itemtype, issuingrules.branchcode |
3241 |
issuingrules.itemtype, issuingrules.branchcode |
3242 |
FROM borrowers |
3242 |
FROM borrowers |