|
Lines 32-37
__PACKAGE__->table("accountlines");
Link Here
|
| 32 |
=head2 issue_id |
32 |
=head2 issue_id |
| 33 |
|
33 |
|
| 34 |
data_type: 'integer' |
34 |
data_type: 'integer' |
|
|
35 |
is_foreign_key: 1 |
| 35 |
is_nullable: 1 |
36 |
is_nullable: 1 |
| 36 |
|
37 |
|
| 37 |
=head2 borrowernumber |
38 |
=head2 borrowernumber |
|
Lines 108-113
__PACKAGE__->table("accountlines");
Link Here
|
| 108 |
=head2 manager_id |
109 |
=head2 manager_id |
| 109 |
|
110 |
|
| 110 |
data_type: 'integer' |
111 |
data_type: 'integer' |
|
|
112 |
is_foreign_key: 1 |
| 111 |
is_nullable: 1 |
113 |
is_nullable: 1 |
| 112 |
|
114 |
|
| 113 |
=cut |
115 |
=cut |
|
Lines 116-122
__PACKAGE__->add_columns(
Link Here
|
| 116 |
"accountlines_id", |
118 |
"accountlines_id", |
| 117 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
119 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
| 118 |
"issue_id", |
120 |
"issue_id", |
| 119 |
{ data_type => "integer", is_nullable => 1 }, |
121 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 120 |
"borrowernumber", |
122 |
"borrowernumber", |
| 121 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
123 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 122 |
"accountno", |
124 |
"accountno", |
|
Lines 147-153
__PACKAGE__->add_columns(
Link Here
|
| 147 |
"note", |
149 |
"note", |
| 148 |
{ data_type => "mediumtext", is_nullable => 1 }, |
150 |
{ data_type => "mediumtext", is_nullable => 1 }, |
| 149 |
"manager_id", |
151 |
"manager_id", |
| 150 |
{ data_type => "integer", is_nullable => 1 }, |
152 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 151 |
); |
153 |
); |
| 152 |
|
154 |
|
| 153 |
=head1 PRIMARY KEY |
155 |
=head1 PRIMARY KEY |
|
Lines 214-219
__PACKAGE__->belongs_to(
Link Here
|
| 214 |
}, |
216 |
}, |
| 215 |
); |
217 |
); |
| 216 |
|
218 |
|
|
|
219 |
=head2 issue |
| 220 |
|
| 221 |
Type: belongs_to |
| 222 |
|
| 223 |
Related object: L<Koha::Schema::Result::Issue> |
| 224 |
|
| 225 |
=cut |
| 226 |
|
| 227 |
__PACKAGE__->belongs_to( |
| 228 |
"issue", |
| 229 |
"Koha::Schema::Result::Issue", |
| 230 |
{ issue_id => "issue_id" }, |
| 231 |
{ |
| 232 |
is_deferrable => 1, |
| 233 |
join_type => "LEFT", |
| 234 |
on_delete => "SET NULL", |
| 235 |
on_update => "CASCADE", |
| 236 |
}, |
| 237 |
); |
| 238 |
|
| 217 |
=head2 itemnumber |
239 |
=head2 itemnumber |
| 218 |
|
240 |
|
| 219 |
Type: belongs_to |
241 |
Type: belongs_to |
|
Lines 230-242
__PACKAGE__->belongs_to(
Link Here
|
| 230 |
is_deferrable => 1, |
252 |
is_deferrable => 1, |
| 231 |
join_type => "LEFT", |
253 |
join_type => "LEFT", |
| 232 |
on_delete => "SET NULL", |
254 |
on_delete => "SET NULL", |
| 233 |
on_update => "SET NULL", |
255 |
on_update => "CASCADE", |
|
|
256 |
}, |
| 257 |
); |
| 258 |
|
| 259 |
=head2 manager |
| 260 |
|
| 261 |
Type: belongs_to |
| 262 |
|
| 263 |
Related object: L<Koha::Schema::Result::Borrower> |
| 264 |
|
| 265 |
=cut |
| 266 |
|
| 267 |
__PACKAGE__->belongs_to( |
| 268 |
"manager", |
| 269 |
"Koha::Schema::Result::Borrower", |
| 270 |
{ borrowernumber => "manager_id" }, |
| 271 |
{ |
| 272 |
is_deferrable => 1, |
| 273 |
join_type => "LEFT", |
| 274 |
on_delete => "SET NULL", |
| 275 |
on_update => "CASCADE", |
| 234 |
}, |
276 |
}, |
| 235 |
); |
277 |
); |
| 236 |
|
278 |
|
| 237 |
|
279 |
|
| 238 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-12-19 16:19:16 |
280 |
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-12-21 12:01:41 |
| 239 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kvBIJshNRsm/HYJBbhm0IA |
281 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oAlRy53c2P0qVSV27fJ+1Q |
| 240 |
|
282 |
|
| 241 |
sub koha_objects_class { |
283 |
sub koha_objects_class { |
| 242 |
'Koha::Account::Lines'; |
284 |
'Koha::Account::Lines'; |