=head2 description
- data_type: 'mediumtext'
+ data_type: 'longtext'
is_nullable: 1
=head2 rentalcharge
- data_type: 'double precision'
+ data_type: 'decimal'
is_nullable: 1
- size: [16,4]
+ size: [28,6]
+
+=head2 rentalcharge_daily
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 rentalcharge_hourly
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 defaultreplacecost
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 processfee
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
=head2 notforloan
=head2 summary
- data_type: 'text'
+ data_type: 'mediumtext'
is_nullable: 1
=head2 checkinmsg
"itemtype",
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
"description",
- { data_type => "mediumtext", is_nullable => 1 },
+ { data_type => "longtext", is_nullable => 1 },
"rentalcharge",
- { data_type => "double precision", is_nullable => 1, size => [16, 4] },
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "rentalcharge_daily",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "rentalcharge_hourly",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "defaultreplacecost",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "processfee",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
"notforloan",
{ data_type => "smallint", is_nullable => 1 },
"imageurl",
{ data_type => "varchar", is_nullable => 1, size => 200 },
"summary",
- { data_type => "text", is_nullable => 1 },
+ { data_type => "mediumtext", is_nullable => 1 },
"checkinmsg",
{ data_type => "varchar", is_nullable => 1, size => 255 },
"checkinmsgtype",
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 circulation_rules
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::CirculationRule>
+
+=cut
+
+__PACKAGE__->has_many(
+ "circulation_rules",
+ "Koha::Schema::Result::CirculationRule",
+ { "foreign.itemtype" => "self.itemtype" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 default_branch_item_rule
Type: might_have
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1GiikODklVISOurHX37qjA
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-07 17:30:46
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CDIOU6LmF7suaujk1NQOeg
+
+# Use the ItemtypeLocalization view to create the join on localization
+our $LANGUAGE;
+__PACKAGE__->has_many(
+ "localization" => "Koha::Schema::Result::ItemtypeLocalization",
+ sub {
+ my $args = shift;
+
+ die "no lang specified!" unless $LANGUAGE;
+
+ return ({
+ "$args->{self_alias}.itemtype" => { -ident => "$args->{foreign_alias}.code" },
+ "$args->{foreign_alias}.lang" => $LANGUAGE,
+ });
+
+ }
+);
+sub koha_object_class {
+ 'Koha::ItemType';
+}
+sub koha_objects_class {
+ 'Koha::ItemTypes';
+}
-# You can replace this text with custom content, and it will be preserved on regeneration
1;