Lines 41-48
$dbh->do('DELETE FROM issuingrules');
Link Here
|
41 |
$dbh->do('DELETE FROM borrowers'); |
41 |
$dbh->do('DELETE FROM borrowers'); |
42 |
$dbh->do('DELETE FROM items'); |
42 |
$dbh->do('DELETE FROM items'); |
43 |
|
43 |
|
44 |
my $library = $builder->build({source => 'Branch'}); |
44 |
my $library = $builder->build( { source => 'Branch' } ); |
45 |
my $category = $builder->build({source => 'Category'}); |
45 |
my $category = $builder->build( { source => 'Category' } ); |
|
|
46 |
my $itemtype = $builder->build( { source => 'Itemtype' } )->{itemtype}; |
46 |
|
47 |
|
47 |
# Set userenv |
48 |
# Set userenv |
48 |
C4::Context->_new_userenv('xxx'); |
49 |
C4::Context->_new_userenv('xxx'); |
Lines 67-73
for my $i ( 1 .. 10 ) {
Link Here
|
67 |
{ |
68 |
{ |
68 |
biblionumber => $biblio->id(), |
69 |
biblionumber => $biblio->id(), |
69 |
biblioitemnumber => $biblioitem->id(), |
70 |
biblioitemnumber => $biblioitem->id(), |
70 |
barcode => $i |
71 |
barcode => $i, |
|
|
72 |
itype => $itemtype |
71 |
} |
73 |
} |
72 |
)->store(); |
74 |
)->store(); |
73 |
push( @items, $item ); |
75 |
push( @items, $item ); |
74 |
- |
|
|