Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / AccountDebitType.pm
1 use utf8;
2 package Koha::Schema::Result::AccountDebitType;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::AccountDebitType
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<account_debit_types>
19
20 =cut
21
22 __PACKAGE__->table("account_debit_types");
23
24 =head1 ACCESSORS
25
26 =head2 code
27
28   data_type: 'varchar'
29   is_nullable: 0
30   size: 80
31
32 =head2 description
33
34   data_type: 'varchar'
35   is_nullable: 1
36   size: 200
37
38 =head2 can_be_invoiced
39
40   data_type: 'tinyint'
41   default_value: 1
42   is_nullable: 0
43
44 boolean flag to denote if this debit type is available for manual invoicing
45
46 =head2 can_be_sold
47
48   data_type: 'tinyint'
49   default_value: 0
50   is_nullable: 0
51
52 boolean flag to denote if this debit type is available at point of sale
53
54 =head2 default_amount
55
56   data_type: 'decimal'
57   is_nullable: 1
58   size: [28,6]
59
60 =head2 is_system
61
62   data_type: 'tinyint'
63   default_value: 0
64   is_nullable: 0
65
66 =head2 archived
67
68   data_type: 'tinyint'
69   default_value: 0
70   is_nullable: 0
71
72 boolean flag to denote if this till is archived or not
73
74 =cut
75
76 __PACKAGE__->add_columns(
77   "code",
78   { data_type => "varchar", is_nullable => 0, size => 80 },
79   "description",
80   { data_type => "varchar", is_nullable => 1, size => 200 },
81   "can_be_invoiced",
82   { data_type => "tinyint", default_value => 1, is_nullable => 0 },
83   "can_be_sold",
84   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
85   "default_amount",
86   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
87   "is_system",
88   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
89   "archived",
90   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
91 );
92
93 =head1 PRIMARY KEY
94
95 =over 4
96
97 =item * L</code>
98
99 =back
100
101 =cut
102
103 __PACKAGE__->set_primary_key("code");
104
105 =head1 RELATIONS
106
107 =head2 account_debit_types_branches
108
109 Type: has_many
110
111 Related object: L<Koha::Schema::Result::AccountDebitTypesBranch>
112
113 =cut
114
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 },
120 );
121
122 =head2 accountlines
123
124 Type: has_many
125
126 Related object: L<Koha::Schema::Result::Accountline>
127
128 =cut
129
130 __PACKAGE__->has_many(
131   "accountlines",
132   "Koha::Schema::Result::Accountline",
133   { "foreign.debit_type_code" => "self.code" },
134   { cascade_copy => 0, cascade_delete => 0 },
135 );
136
137
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
140
141 __PACKAGE__->add_columns(
142     '+is_system' => { is_boolean => 1 }
143 );
144
145 __PACKAGE__->add_columns(
146     "+can_be_sold" => { is_boolean => 1 }
147 );
148
149 __PACKAGE__->add_columns(
150     "+can_be_invoiced" => { is_boolean => 1 }
151 );
152
153 sub koha_objects_class {
154     'Koha::Account::DebitTypes';
155 }
156 sub koha_object_class {
157     'Koha::Account::DebitType';
158 }
159
160 # You can replace this text with custom code or comments, and it will be preserved on regeneration
161 1;