Lines 38-43
use Koha::UploadedFiles;
Link Here
|
38 |
use Koha::Account; |
38 |
use Koha::Account; |
39 |
use Koha::Checkouts; |
39 |
use Koha::Checkouts; |
40 |
use Koha::Patrons; |
40 |
use Koha::Patrons; |
|
|
41 |
use Koha::Plugins; |
41 |
|
42 |
|
42 |
use Date::Calc qw( Add_Delta_Days Date_to_Days ); |
43 |
use Date::Calc qw( Add_Delta_Days Date_to_Days ); |
43 |
|
44 |
|
Lines 247-252
sub kocIssueItem {
Link Here
|
247 |
my $circ = shift; |
248 |
my $circ = shift; |
248 |
|
249 |
|
249 |
$circ->{ 'barcode' } = barcodedecode($circ->{'barcode'}) if( $circ->{'barcode'} && C4::Context->preference('itemBarcodeInputFilter')); |
250 |
$circ->{ 'barcode' } = barcodedecode($circ->{'barcode'}) if( $circ->{'barcode'} && C4::Context->preference('itemBarcodeInputFilter')); |
|
|
251 |
|
252 |
my ( $new_barcode ) = Koha::Plugins->call( 'barcode_transform', 'item', $circ->{barcode} ); |
253 |
$circ->{barcode} = $new_barcode; |
254 |
|
250 |
my $branchcode = C4::Context->userenv->{branch}; |
255 |
my $branchcode = C4::Context->userenv->{branch}; |
251 |
my $patron = Koha::Patrons->find( { cardnumber => $circ->{cardnumber} } ); |
256 |
my $patron = Koha::Patrons->find( { cardnumber => $circ->{cardnumber} } ); |
252 |
my $borrower = $patron->unblessed; |
257 |
my $borrower = $patron->unblessed; |
Lines 327-332
sub kocIssueItem {
Link Here
|
327 |
sub kocReturnItem { |
332 |
sub kocReturnItem { |
328 |
my ( $circ ) = @_; |
333 |
my ( $circ ) = @_; |
329 |
$circ->{'barcode'} = barcodedecode($circ->{'barcode'}) if( $circ->{'barcode'} && C4::Context->preference('itemBarcodeInputFilter')); |
334 |
$circ->{'barcode'} = barcodedecode($circ->{'barcode'}) if( $circ->{'barcode'} && C4::Context->preference('itemBarcodeInputFilter')); |
|
|
335 |
|
336 |
my ( $new_barcode ) = Koha::Plugins->call( 'barcode_transform', 'item', $circ->{barcode} ); |
337 |
$circ->{barcode} = $new_barcode; |
338 |
|
330 |
my $item = Koha::Items->find({ barcode => $circ->{barcode} }); |
339 |
my $item = Koha::Items->find({ barcode => $circ->{barcode} }); |
331 |
my $biblio = $item->biblio; |
340 |
my $biblio = $item->biblio; |
332 |
my $borrowernumber = _get_borrowernumber_from_barcode( $circ->{'barcode'} ); |
341 |
my $borrowernumber = _get_borrowernumber_from_barcode( $circ->{'barcode'} ); |