2 package Koha
::Schema
::Result
::AccountDebitType
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AccountDebitType
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<account_debit_types>
22 __PACKAGE__
->table("account_debit_types");
38 =head2 can_be_invoiced
70 __PACKAGE__
->add_columns(
72 { data_type
=> "varchar", is_nullable
=> 0, size
=> 80 },
74 { data_type
=> "varchar", is_nullable
=> 1, size
=> 200 },
76 { data_type
=> "tinyint", default_value
=> 1, is_nullable
=> 0 },
78 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
80 { data_type
=> "decimal", is_nullable
=> 1, size
=> [28, 6] },
82 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
84 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
97 __PACKAGE__
->set_primary_key("code");
101 =head2 account_debit_types_branches
105 Related object: L<Koha::Schema::Result::AccountDebitTypesBranch>
109 __PACKAGE__
->has_many(
110 "account_debit_types_branches",
111 "Koha::Schema::Result::AccountDebitTypesBranch",
112 { "foreign.debit_type_code" => "self.code" },
113 { cascade_copy
=> 0, cascade_delete
=> 0 },
120 Related object: L<Koha::Schema::Result::Accountline>
124 __PACKAGE__
->has_many(
126 "Koha::Schema::Result::Accountline",
127 { "foreign.debit_type_code" => "self.code" },
128 { cascade_copy
=> 0, cascade_delete
=> 0 },
132 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-17 12:22:04
133 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8FIMJZ+JAmqa+Dx7oymBjw
135 __PACKAGE__
->add_columns(
136 '+is_system' => { is_boolean
=> 1 }
139 __PACKAGE__
->add_columns(
140 "+can_be_sold" => { is_boolean
=> 1 }
143 __PACKAGE__
->add_columns(
144 "+can_be_invoiced" => { is_boolean
=> 1 }
147 sub koha_objects_class
{
148 'Koha::Account::DebitTypes';
150 sub koha_object_class
{
151 'Koha::Account::DebitType';
154 # You can replace this text with custom code or comments, and it will be preserved on regeneration