Lines 564-579
RULES
Link Here
|
564 |
# Set holdingbranch as though item returned to library other than homebranch (As AddReturn would) |
564 |
# Set holdingbranch as though item returned to library other than homebranch (As AddReturn would) |
565 |
$item_cd->holdingbranch($library2->branchcode)->store(); |
565 |
$item_cd->holdingbranch($library2->branchcode)->store(); |
566 |
$bin = C4::SIP::ILS::Transaction::Checkin::_get_sort_bin( $item_cd, $library2->branchcode ); |
566 |
$bin = C4::SIP::ILS::Transaction::Checkin::_get_sort_bin( $item_cd, $library2->branchcode ); |
567 |
is($bin, 'X', "Item parameter on RHS of comparison works (ne comparitor)"); |
567 |
is($bin, 'X', "Item parameter on RHS of comparison works (ne comparator)"); |
568 |
|
568 |
|
569 |
# Reset holdingbranch as though item returned to home library |
569 |
# Reset holdingbranch as though item returned to home library |
570 |
$item_cd->holdingbranch($library->branchcode)->store(); |
570 |
$item_cd->holdingbranch($library->branchcode)->store(); |
571 |
$bin = C4::SIP::ILS::Transaction::Checkin::_get_sort_bin( $item_cd, $library->branchcode ); |
571 |
$bin = C4::SIP::ILS::Transaction::Checkin::_get_sort_bin( $item_cd, $library->branchcode ); |
572 |
is($bin, '0', "Fixed value on RHS of comparison works (eq comparitor)"); |
572 |
is($bin, '0', "Fixed value on RHS of comparison works (eq comparator)"); |
573 |
$bin = C4::SIP::ILS::Transaction::Checkin::_get_sort_bin( $item_book, $library->branchcode ); |
573 |
$bin = C4::SIP::ILS::Transaction::Checkin::_get_sort_bin( $item_book, $library->branchcode ); |
574 |
is($bin, '1', "Rules applied in order (< comparitor)"); |
574 |
is($bin, '1', "Rules applied in order (< comparator)"); |
575 |
$item_book->itemcallnumber('350.20')->store(); |
575 |
$item_book->itemcallnumber('350.20')->store(); |
576 |
is($bin, '2', "Rules applied in order (< comparitor)"); |
576 |
$bin = C4::SIP::ILS::Transaction::Checkin::_get_sort_bin( $item_book, $library->branchcode ); |
|
|
577 |
is($bin, '2', "Rules applied in order (< comparator)"); |
577 |
}; |
578 |
}; |
578 |
|
579 |
|
579 |
subtest item_circulation_status => sub { |
580 |
subtest item_circulation_status => sub { |
580 |
- |
|
|