2 package Koha::Schema::Result::Accountline;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Accountline
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<accountlines>
22 __PACKAGE__->table("accountlines");
26 =head2 accountlines_id
52 datetime_undef_if_invalid: 1
78 =head2 amountoutstanding
86 data_type: 'timestamp'
87 datetime_undef_if_invalid: 1
88 default_value: current_timestamp
93 data_type: 'mediumtext'
111 __PACKAGE__->add_columns(
113 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
115 { data_type => "integer", is_nullable => 1 },
117 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
119 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
121 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
123 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
125 { data_type => "longtext", is_nullable => 1 },
127 { data_type => "varchar", is_nullable => 1, size => 5 },
129 { data_type => "varchar", is_nullable => 1, size => 80 },
131 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
134 data_type => "timestamp",
135 datetime_undef_if_invalid => 1,
136 default_value => \"current_timestamp",
140 { data_type => "mediumtext", is_nullable => 1 },
142 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
144 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
151 =item * L</accountlines_id>
157 __PACKAGE__->set_primary_key("accountlines_id");
161 =head2 account_offsets_credits
165 Related object: L<Koha::Schema::Result::AccountOffset>
169 __PACKAGE__->has_many(
170 "account_offsets_credits",
171 "Koha::Schema::Result::AccountOffset",
172 { "foreign.credit_id" => "self.accountlines_id" },
173 { cascade_copy => 0, cascade_delete => 0 },
176 =head2 account_offsets_debits
180 Related object: L<Koha::Schema::Result::AccountOffset>
184 __PACKAGE__->has_many(
185 "account_offsets_debits",
186 "Koha::Schema::Result::AccountOffset",
187 { "foreign.debit_id" => "self.accountlines_id" },
188 { cascade_copy => 0, cascade_delete => 0 },
191 =head2 borrowernumber
195 Related object: L<Koha::Schema::Result::Borrower>
199 __PACKAGE__->belongs_to(
201 "Koha::Schema::Result::Borrower",
202 { borrowernumber => "borrowernumber" },
206 on_delete => "SET NULL",
207 on_update => "CASCADE",
215 Related object: L<Koha::Schema::Result::Branch>
219 __PACKAGE__->belongs_to(
221 "Koha::Schema::Result::Branch",
222 { branchcode => "branchcode" },
226 on_delete => "SET NULL",
227 on_update => "CASCADE",
235 Related object: L<Koha::Schema::Result::Item>
239 __PACKAGE__->belongs_to(
241 "Koha::Schema::Result::Item",
242 { itemnumber => "itemnumber" },
246 on_delete => "SET NULL",
247 on_update => "CASCADE",
255 Related object: L<Koha::Schema::Result::Borrower>
259 __PACKAGE__->belongs_to(
261 "Koha::Schema::Result::Borrower",
262 { borrowernumber => "manager_id" },
266 on_delete => "SET NULL",
267 on_update => "CASCADE",
272 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-28 18:01:31
273 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6TVweDBJR9SEra68zHn8fQ
275 sub koha_objects_class {
276 'Koha::Account::Lines';
278 sub koha_object_class {
279 'Koha::Account::Line';