View | Details | Raw Unified | Return to bug 17705
Collapse All | Expand All

(-)a/Koha/Schema/Result/Accountline.pm (-2 / +17 lines)
Lines 242-250 __PACKAGE__->belongs_to( Link Here
242
  },
242
  },
243
);
243
);
244
244
245
=head2 pos_terminal_transactions
245
246
246
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-04-19 12:18:02
247
Type: has_many
247
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FUX/e/s202yrUtP3c13lfw
248
249
Related object: L<Koha::Schema::Result::PosTerminalTransaction>
250
251
=cut
252
253
__PACKAGE__->has_many(
254
  "pos_terminal_transactions",
255
  "Koha::Schema::Result::PosTerminalTransaction",
256
  { "foreign.accountlines_id" => "self.accountlines_id" },
257
  { cascade_copy => 0, cascade_delete => 0 },
258
);
259
260
261
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-06-25 08:26:01
262
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9d9xV01mRkjqCYkJXQwt1g
248
263
249
264
250
# You can replace this text with custom content, and it will be preserved on regeneration
265
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/PosTerminalTransaction.pm (-1 / +111 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::PosTerminalTransaction;
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::PosTerminalTransaction
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<pos_terminal_transactions>
19
20
=cut
21
22
__PACKAGE__->table("pos_terminal_transactions");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 accountlines_id
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 0
37
38
=head2 status
39
40
  data_type: 'varchar'
41
  default_value: 'new'
42
  is_nullable: 0
43
  size: 32
44
45
=head2 response_code
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 5
50
51
=head2 message_log
52
53
  data_type: 'text'
54
  is_nullable: 1
55
56
=cut
57
58
__PACKAGE__->add_columns(
59
  "id",
60
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
61
  "accountlines_id",
62
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
63
  "status",
64
  {
65
    data_type => "varchar",
66
    default_value => "new",
67
    is_nullable => 0,
68
    size => 32,
69
  },
70
  "response_code",
71
  { data_type => "varchar", is_nullable => 1, size => 5 },
72
  "message_log",
73
  { data_type => "text", is_nullable => 1 },
74
);
75
76
=head1 PRIMARY KEY
77
78
=over 4
79
80
=item * L</id>
81
82
=back
83
84
=cut
85
86
__PACKAGE__->set_primary_key("id");
87
88
=head1 RELATIONS
89
90
=head2 accountline
91
92
Type: belongs_to
93
94
Related object: L<Koha::Schema::Result::Accountline>
95
96
=cut
97
98
__PACKAGE__->belongs_to(
99
  "accountline",
100
  "Koha::Schema::Result::Accountline",
101
  { accountlines_id => "accountlines_id" },
102
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
103
);
104
105
106
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-06-25 08:26:01
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RHIh885cy/PU13oaA+0t9g
108
109
110
# You can replace this text with custom code or comments, and it will be preserved on regeneration
111
1;

Return to bug 17705