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
44 boolean flag to denote if this debit type is available for manual invoicing
52 boolean flag to denote if this debit type is available at point of sale
72 boolean flag to denote if this till is archived or not
76 __PACKAGE__->add_columns(
78 { data_type => "varchar", is_nullable => 0, size => 80 },
80 { data_type => "varchar", is_nullable => 1, size => 200 },
82 { data_type => "tinyint", default_value => 1, is_nullable => 0 },
84 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
86 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
88 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
90 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
103 __PACKAGE__->set_primary_key("code");
107 =head2 account_debit_types_branches
111 Related object: L<Koha::Schema::Result::AccountDebitTypesBranch>
115 __PACKAGE__->has_many(
116 "account_debit_types_branches",
117 "Koha::Schema::Result::AccountDebitTypesBranch",
118 { "foreign.debit_type_code" => "self.code" },
119 { cascade_copy => 0, cascade_delete => 0 },
126 Related object: L<Koha::Schema::Result::Accountline>
130 __PACKAGE__->has_many(
132 "Koha::Schema::Result::Accountline",
133 { "foreign.debit_type_code" => "self.code" },
134 { cascade_copy => 0, cascade_delete => 0 },
138 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
139 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ulpJRbi7H40EXr1QG+URKg
141 __PACKAGE__->add_columns(
142 '+is_system' => { is_boolean => 1 }
145 __PACKAGE__->add_columns(
146 "+can_be_sold" => { is_boolean => 1 }
149 __PACKAGE__->add_columns(
150 "+can_be_invoiced" => { is_boolean => 1 }
153 sub koha_objects_class {
154 'Koha::Account::DebitTypes';
156 sub koha_object_class {
157 'Koha::Account::DebitType';
160 # You can replace this text with custom code or comments, and it will be preserved on regeneration