2 package Koha::Schema::Result::AccountCreditType;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AccountCreditType
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<account_credit_types>
22 __PACKAGE__->table("account_credit_types");
38 =head2 can_be_added_manually
44 =head2 credit_number_enabled
50 Is autogeneration of credit number enabled for this credit type
66 __PACKAGE__->add_columns(
68 { data_type => "varchar", is_nullable => 0, size => 80 },
70 { data_type => "varchar", is_nullable => 1, size => 200 },
71 "can_be_added_manually",
72 { data_type => "tinyint", default_value => 1, is_nullable => 0 },
73 "credit_number_enabled",
74 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
76 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
78 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
91 __PACKAGE__->set_primary_key("code");
95 =head2 account_credit_types_branches
99 Related object: L<Koha::Schema::Result::AccountCreditTypesBranch>
103 __PACKAGE__->has_many(
104 "account_credit_types_branches",
105 "Koha::Schema::Result::AccountCreditTypesBranch",
106 { "foreign.credit_type_code" => "self.code" },
107 { cascade_copy => 0, cascade_delete => 0 },
114 Related object: L<Koha::Schema::Result::Accountline>
118 __PACKAGE__->has_many(
120 "Koha::Schema::Result::Accountline",
121 { "foreign.credit_type_code" => "self.code" },
122 { cascade_copy => 0, cascade_delete => 0 },
126 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-06-25 09:19:20
127 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GESL9hjEPlrQBiuHO4haAw
129 __PACKAGE__->add_columns(
130 '+is_system' => { is_boolean => 1 },
131 '+credit_number_enabled' => { is_boolean => 1 },
132 '+archived' => { is_boolean => 1 }
135 sub koha_objects_class {
136 'Koha::Account::CreditTypes';
138 sub koha_object_class {
139 'Koha::Account::CreditType';