Bug 16570: Do not tell all checked-in items are part of a rotating collection
When an item is checked-in a message will tell you it's part of a
rotating collection, even if it's not true.
Test plan:
Make sure the message appears only when needed.
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 8794348ccb)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
03d51281b0
commit
c0c00b80cd
|
|
@ -640,16 +640,18 @@ $template->param(
|
|||
|
||||
$itemnumber = GetItemnumberFromBarcode( $barcode );
|
||||
if ( $itemnumber ) {
|
||||
my ( $holdingBranch, $collectionBranch ) = GetCollectionItemBranches( $itemnumber );
|
||||
$holdingBranch //= '';
|
||||
$collectionBranch //= $returnbranch;
|
||||
if ( ! ( $holdingBranch eq $collectionBranch ) ) {
|
||||
$template->param(
|
||||
collectionItemNeedsTransferred => 1,
|
||||
collectionBranchName => GetBranchName($collectionBranch),
|
||||
collectionBranch => $collectionBranch,
|
||||
itemnumber => $itemnumber,
|
||||
);
|
||||
my ( $holdingBranch, $collectionBranch ) = GetCollectionItemBranches( $itemnumber );
|
||||
if ( $holdingBranch and $collectionBranch ) {
|
||||
$holdingBranch //= '';
|
||||
$collectionBranch //= $returnbranch;
|
||||
if ( ! ( $holdingBranch eq $collectionBranch ) ) {
|
||||
$template->param(
|
||||
collectionItemNeedsTransferred => 1,
|
||||
collectionBranchName => GetBranchName($collectionBranch),
|
||||
collectionBranch => $collectionBranch,
|
||||
itemnumber => $itemnumber,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue