/
Issuingrule.pm
33 lines (26 loc) · 1.25 KB
/
Issuingrule.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package Koha::Schema::Issuingrule;
use strict;
use base qw(Koha::Schema::DB::Object::AutoBase1);
__PACKAGE__->meta->setup(
table => 'issuingrules',
columns => [
categorycode => { type => 'varchar', length => 10, not_null => 1 },
itemtype => { type => 'varchar', length => 10, not_null => 1 },
restrictedtype => { type => 'integer' },
rentaldiscount => { type => 'numeric', precision => 28, scale => 6 },
reservecharge => { type => 'numeric', precision => 28, scale => 6 },
fine => { type => 'numeric', precision => 28, scale => 6 },
firstremind => { type => 'integer' },
chargeperiod => { type => 'integer' },
accountsent => { type => 'integer' },
chargename => { type => 'varchar', length => 100 },
maxissueqty => { type => 'integer' },
issuelength => { type => 'integer' },
branchcode => { type => 'varchar', length => 10, not_null => 1 },
max_fine => { type => 'numeric', precision => 28, scale => 6 },
holdallowed => { type => 'integer', default => 2 },
max_holds => { type => 'integer' },
],
primary_key_columns => [ 'branchcode', 'categorycode', 'itemtype' ],
);
1;