Lines 46-51
my $dbh = C4::Context->dbh;
Link Here
|
46 |
$dbh->do(q|DELETE FROM issues|); |
46 |
$dbh->do(q|DELETE FROM issues|); |
47 |
$dbh->do(q|DELETE FROM items|); |
47 |
$dbh->do(q|DELETE FROM items|); |
48 |
$dbh->do(q|DELETE FROM borrowers|); |
48 |
$dbh->do(q|DELETE FROM borrowers|); |
|
|
49 |
$dbh->do(q|DELETE FROM clubs|); |
49 |
$dbh->do(q|DELETE FROM branches|); |
50 |
$dbh->do(q|DELETE FROM branches|); |
50 |
$dbh->do(q|DELETE FROM categories|); |
51 |
$dbh->do(q|DELETE FROM categories|); |
51 |
$dbh->do(q|DELETE FROM accountlines|); |
52 |
$dbh->do(q|DELETE FROM accountlines|); |
Lines 270-278
is( $messages->{NeedsTransfer}, $samplebranch1->{branchcode}, "AddReturn respect
Link Here
|
270 |
$query = |
271 |
$query = |
271 |
"INSERT INTO issues (borrowernumber,itemnumber,branchcode) VALUES( ?,?,? )"; |
272 |
"INSERT INTO issues (borrowernumber,itemnumber,branchcode) VALUES( ?,?,? )"; |
272 |
$dbh->do( $query, {}, $borrower_id1, $item_id3, $samplebranch1->{branchcode} ); |
273 |
$dbh->do( $query, {}, $borrower_id1, $item_id3, $samplebranch1->{branchcode} ); |
|
|
274 |
t::lib::Mocks::mock_preference( 'item-level_itypes', 1 ); |
273 |
($doreturn, $messages, $iteminformation, $borrower) = AddReturn('barcode_3', |
275 |
($doreturn, $messages, $iteminformation, $borrower) = AddReturn('barcode_3', |
274 |
$samplebranch1->{branchcode}); |
276 |
$samplebranch1->{branchcode}); |
275 |
is($messages->{NeedsTransfer},undef,"AddReturn respects branch item return policy - noreturn"); |
277 |
is($messages->{NeedsTransfer},undef,"AddReturn respects branch item return policy - noreturn"); |
|
|
278 |
t::lib::Mocks::mock_preference( 'item-level_itypes', 0 ); |
276 |
|
279 |
|
277 |
$schema->storage->txn_rollback; |
280 |
$schema->storage->txn_rollback; |
278 |
|
281 |
|
279 |
- |
|
|