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
58 __PACKAGE__
->add_columns(
60 { data_type
=> "varchar", is_nullable
=> 0, size
=> 80 },
62 { data_type
=> "varchar", is_nullable
=> 1, size
=> 200 },
63 "can_be_added_manually",
64 { data_type
=> "tinyint", default_value
=> 1, is_nullable
=> 0 },
66 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
68 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
81 __PACKAGE__
->set_primary_key("code");
85 =head2 account_credit_types_branches
89 Related object: L<Koha::Schema::Result::AccountCreditTypesBranch>
93 __PACKAGE__
->has_many(
94 "account_credit_types_branches",
95 "Koha::Schema::Result::AccountCreditTypesBranch",
96 { "foreign.credit_type_code" => "self.code" },
97 { cascade_copy
=> 0, cascade_delete
=> 0 },
104 Related object: L<Koha::Schema::Result::Accountline>
108 __PACKAGE__
->has_many(
110 "Koha::Schema::Result::Accountline",
111 { "foreign.credit_type_code" => "self.code" },
112 { cascade_copy
=> 0, cascade_delete
=> 0 },
116 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-20 14:48:55
117 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hdxcXxCqIDxwfSHjSr0VUg
119 __PACKAGE__
->add_columns(
120 '+is_system' => { is_boolean
=> 1 }
123 sub koha_objects_class
{
124 'Koha::Account::CreditTypes';
126 sub koha_object_class
{
127 'Koha::Account::CreditType';