Lines 49-58
The id of the accountline that decreased the patron's balance
Link Here
|
49 |
|
49 |
|
50 |
=head2 type |
50 |
=head2 type |
51 |
|
51 |
|
52 |
data_type: 'varchar' |
52 |
data_type: 'enum' |
53 |
is_foreign_key: 1 |
53 |
extra: {list => ["CREATE","APPLY","VOID","OVERDUE_INCREASE","OVERDUE_DECREASE"]} |
54 |
is_nullable: 0 |
54 |
is_nullable: 0 |
55 |
size: 16 |
|
|
56 |
|
55 |
|
57 |
The type of offset this is |
56 |
The type of offset this is |
58 |
|
57 |
|
Lines 81-87
__PACKAGE__->add_columns(
Link Here
|
81 |
"debit_id", |
80 |
"debit_id", |
82 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
81 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
83 |
"type", |
82 |
"type", |
84 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 16 }, |
83 |
{ |
|
|
84 |
data_type => "enum", |
85 |
extra => { |
86 |
list => [ |
87 |
"CREATE", |
88 |
"APPLY", |
89 |
"VOID", |
90 |
"OVERDUE_INCREASE", |
91 |
"OVERDUE_DECREASE", |
92 |
], |
93 |
}, |
94 |
is_nullable => 0, |
95 |
}, |
85 |
"amount", |
96 |
"amount", |
86 |
{ data_type => "decimal", is_nullable => 0, size => [26, 6] }, |
97 |
{ data_type => "decimal", is_nullable => 0, size => [26, 6] }, |
87 |
"created_on", |
98 |
"created_on", |
Lines 147-170
__PACKAGE__->belongs_to(
Link Here
|
147 |
}, |
158 |
}, |
148 |
); |
159 |
); |
149 |
|
160 |
|
150 |
=head2 type |
|
|
151 |
|
152 |
Type: belongs_to |
153 |
|
154 |
Related object: L<Koha::Schema::Result::AccountOffsetType> |
155 |
|
156 |
=cut |
157 |
|
158 |
__PACKAGE__->belongs_to( |
159 |
"type", |
160 |
"Koha::Schema::Result::AccountOffsetType", |
161 |
{ type => "type" }, |
162 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
163 |
); |
164 |
|
165 |
|
161 |
|
166 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 |
162 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-06-21 15:27:32 |
167 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d6cqxL2VddjOmUqe3nLptw |
163 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zCeE/SWvdz898zlfcvfRGg |
168 |
|
164 |
|
169 |
sub koha_object_class { |
165 |
sub koha_object_class { |
170 |
'Koha::Account::Offset'; |
166 |
'Koha::Account::Offset'; |