Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Accountline.pm |
Statements | Executed 14 statements in 679µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 31µs | 35µs | BEGIN@1.561 | Class::C3::Componentised::
1 | 1 | 1 | 15µs | 26µs | BEGIN@13 | Koha::Schema::Result::Accountline::
1 | 1 | 1 | 10µs | 93µs | BEGIN@16 | Koha::Schema::Result::Accountline::
1 | 1 | 1 | 9µs | 19µs | BEGIN@14 | Koha::Schema::Result::Accountline::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 72µs | 2 | 38µs | # spent 35µs (31+4) within Class::C3::Componentised::BEGIN@1.561 which was called:
# once (31µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 35µs making 1 call to Class::C3::Componentised::BEGIN@1.561
# spent 4µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::Accountline; | ||||
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::Accountline | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 48µs | 2 | 38µs | # spent 26µs (15+12) within Koha::Schema::Result::Accountline::BEGIN@13 which was called:
# once (15µs+12µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 26µs making 1 call to Koha::Schema::Result::Accountline::BEGIN@13
# spent 12µs making 1 call to strict::import |
14 | 2 | 46µs | 2 | 29µs | # spent 19µs (9+10) within Koha::Schema::Result::Accountline::BEGIN@14 which was called:
# once (9µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 19µs making 1 call to Koha::Schema::Result::Accountline::BEGIN@14
# spent 10µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 403µs | 2 | 176µs | # spent 93µs (10+83) within Koha::Schema::Result::Accountline::BEGIN@16 which was called:
# once (10µs+83µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 93µs making 1 call to Koha::Schema::Result::Accountline::BEGIN@16
# spent 83µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<accountlines> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 20µs | 1 | 322µs | __PACKAGE__->table("accountlines"); # spent 322µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 accountlines_id | ||||
27 | |||||
28 | data_type: 'integer' | ||||
29 | is_auto_increment: 1 | ||||
30 | is_nullable: 0 | ||||
31 | |||||
32 | =head2 borrowernumber | ||||
33 | |||||
34 | data_type: 'integer' | ||||
35 | default_value: 0 | ||||
36 | is_foreign_key: 1 | ||||
37 | is_nullable: 0 | ||||
38 | |||||
39 | =head2 accountno | ||||
40 | |||||
41 | data_type: 'smallint' | ||||
42 | default_value: 0 | ||||
43 | is_nullable: 0 | ||||
44 | |||||
45 | =head2 itemnumber | ||||
46 | |||||
47 | data_type: 'integer' | ||||
48 | is_foreign_key: 1 | ||||
49 | is_nullable: 1 | ||||
50 | |||||
51 | =head2 date | ||||
52 | |||||
53 | data_type: 'date' | ||||
54 | datetime_undef_if_invalid: 1 | ||||
55 | is_nullable: 1 | ||||
56 | |||||
57 | =head2 amount | ||||
58 | |||||
59 | data_type: 'decimal' | ||||
60 | is_nullable: 1 | ||||
61 | size: [28,6] | ||||
62 | |||||
63 | =head2 description | ||||
64 | |||||
65 | data_type: 'mediumtext' | ||||
66 | is_nullable: 1 | ||||
67 | |||||
68 | =head2 dispute | ||||
69 | |||||
70 | data_type: 'mediumtext' | ||||
71 | is_nullable: 1 | ||||
72 | |||||
73 | =head2 accounttype | ||||
74 | |||||
75 | data_type: 'varchar' | ||||
76 | is_nullable: 1 | ||||
77 | size: 5 | ||||
78 | |||||
79 | =head2 amountoutstanding | ||||
80 | |||||
81 | data_type: 'decimal' | ||||
82 | is_nullable: 1 | ||||
83 | size: [28,6] | ||||
84 | |||||
85 | =head2 lastincrement | ||||
86 | |||||
87 | data_type: 'decimal' | ||||
88 | is_nullable: 1 | ||||
89 | size: [28,6] | ||||
90 | |||||
91 | =head2 timestamp | ||||
92 | |||||
93 | data_type: 'timestamp' | ||||
94 | datetime_undef_if_invalid: 1 | ||||
95 | default_value: current_timestamp | ||||
96 | is_nullable: 0 | ||||
97 | |||||
98 | =head2 notify_id | ||||
99 | |||||
100 | data_type: 'integer' | ||||
101 | default_value: 0 | ||||
102 | is_nullable: 0 | ||||
103 | |||||
104 | =head2 notify_level | ||||
105 | |||||
106 | data_type: 'integer' | ||||
107 | default_value: 0 | ||||
108 | is_nullable: 0 | ||||
109 | |||||
110 | =head2 note | ||||
111 | |||||
112 | data_type: 'text' | ||||
113 | is_nullable: 1 | ||||
114 | |||||
115 | =head2 manager_id | ||||
116 | |||||
117 | data_type: 'integer' | ||||
118 | is_nullable: 1 | ||||
119 | |||||
120 | =cut | ||||
121 | |||||
122 | 1 | 39µs | 1 | 5.39ms | __PACKAGE__->add_columns( # spent 5.39ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
123 | "accountlines_id", | ||||
124 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
125 | "borrowernumber", | ||||
126 | { | ||||
127 | data_type => "integer", | ||||
128 | default_value => 0, | ||||
129 | is_foreign_key => 1, | ||||
130 | is_nullable => 0, | ||||
131 | }, | ||||
132 | "accountno", | ||||
133 | { data_type => "smallint", default_value => 0, is_nullable => 0 }, | ||||
134 | "itemnumber", | ||||
135 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
136 | "date", | ||||
137 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
138 | "amount", | ||||
139 | { data_type => "decimal", is_nullable => 1, size => [28, 6] }, | ||||
140 | "description", | ||||
141 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
142 | "dispute", | ||||
143 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
144 | "accounttype", | ||||
145 | { data_type => "varchar", is_nullable => 1, size => 5 }, | ||||
146 | "amountoutstanding", | ||||
147 | { data_type => "decimal", is_nullable => 1, size => [28, 6] }, | ||||
148 | "lastincrement", | ||||
149 | { data_type => "decimal", is_nullable => 1, size => [28, 6] }, | ||||
150 | "timestamp", | ||||
151 | { | ||||
152 | data_type => "timestamp", | ||||
153 | datetime_undef_if_invalid => 1, | ||||
154 | default_value => \"current_timestamp", | ||||
155 | is_nullable => 0, | ||||
156 | }, | ||||
157 | "notify_id", | ||||
158 | { data_type => "integer", default_value => 0, is_nullable => 0 }, | ||||
159 | "notify_level", | ||||
160 | { data_type => "integer", default_value => 0, is_nullable => 0 }, | ||||
161 | "note", | ||||
162 | { data_type => "text", is_nullable => 1 }, | ||||
163 | "manager_id", | ||||
164 | { data_type => "integer", is_nullable => 1 }, | ||||
165 | ); | ||||
166 | |||||
167 | =head1 PRIMARY KEY | ||||
168 | |||||
169 | =over 4 | ||||
170 | |||||
171 | =item * L</accountlines_id> | ||||
172 | |||||
173 | =back | ||||
174 | |||||
175 | =cut | ||||
176 | |||||
177 | 1 | 18µs | 1 | 89µs | __PACKAGE__->set_primary_key("accountlines_id"); # spent 89µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
178 | |||||
179 | =head1 RELATIONS | ||||
180 | |||||
181 | =head2 borrowernumber | ||||
182 | |||||
183 | Type: belongs_to | ||||
184 | |||||
185 | Related object: L<Koha::Schema::Result::Borrower> | ||||
186 | |||||
187 | =cut | ||||
188 | |||||
189 | 1 | 10µs | 1 | 418µs | __PACKAGE__->belongs_to( # spent 418µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
190 | "borrowernumber", | ||||
191 | "Koha::Schema::Result::Borrower", | ||||
192 | { borrowernumber => "borrowernumber" }, | ||||
193 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
194 | ); | ||||
195 | |||||
196 | =head2 itemnumber | ||||
197 | |||||
198 | Type: belongs_to | ||||
199 | |||||
200 | Related object: L<Koha::Schema::Result::Item> | ||||
201 | |||||
202 | =cut | ||||
203 | |||||
204 | 1 | 5µs | 1 | 199µs | __PACKAGE__->belongs_to( # spent 199µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
205 | "itemnumber", | ||||
206 | "Koha::Schema::Result::Item", | ||||
207 | { itemnumber => "itemnumber" }, | ||||
208 | { | ||||
209 | is_deferrable => 1, | ||||
210 | join_type => "LEFT", | ||||
211 | on_delete => "SET NULL", | ||||
212 | on_update => "SET NULL", | ||||
213 | }, | ||||
214 | ); | ||||
215 | |||||
216 | |||||
217 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55 | ||||
218 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jUiCeLLPg5228rNEBW0w2g | ||||
219 | |||||
220 | |||||
221 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
222 | 1 | 18µs | 1; |