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
52 __PACKAGE__->add_columns(
54 { data_type => "varchar", is_nullable => 0, size => 80 },
56 { data_type => "varchar", is_nullable => 1, size => 200 },
57 "can_be_added_manually",
58 { data_type => "tinyint", default_value => 1, is_nullable => 0 },
60 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
73 __PACKAGE__->set_primary_key("code");
77 =head2 account_credit_types_branches
81 Related object: L<Koha::Schema::Result::AccountCreditTypesBranch>
85 __PACKAGE__->has_many(
86 "account_credit_types_branches",
87 "Koha::Schema::Result::AccountCreditTypesBranch",
88 { "foreign.credit_type_code" => "self.code" },
89 { cascade_copy => 0, cascade_delete => 0 },
96 Related object: L<Koha::Schema::Result::Accountline>
100 __PACKAGE__->has_many(
102 "Koha::Schema::Result::Accountline",
103 { "foreign.credit_type_code" => "self.code" },
104 { cascade_copy => 0, cascade_delete => 0 },
108 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-14 09:59:52
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Uycu/23b681kWHNX+/gNiw
111 __PACKAGE__->add_columns(
112 '+is_system' => { is_boolean => 1 }
115 sub koha_objects_class {
116 'Koha::Account::CreditTypes';
118 sub koha_object_class {
119 'Koha::Account::CreditType';