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
84 =head2 amountoutstanding
92 data_type: 'timestamp'
93 datetime_undef_if_invalid: 1
94 default_value: current_timestamp
99 data_type: 'mediumtext'
123 __PACKAGE__->add_columns(
125 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
127 { data_type => "integer", is_nullable => 1 },
129 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
131 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
133 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
135 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
137 { data_type => "longtext", is_nullable => 1 },
139 { data_type => "varchar", is_nullable => 1, size => 16 },
141 { data_type => "varchar", is_nullable => 1, size => 16 },
143 { data_type => "varchar", is_nullable => 1, size => 80 },
145 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
148 data_type => "timestamp",
149 datetime_undef_if_invalid => 1,
150 default_value => \"current_timestamp",
154 { data_type => "mediumtext", is_nullable => 1 },
156 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
158 { data_type => "varchar", is_nullable => 0, size => 16 },
160 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
167 =item * L</accountlines_id>
173 __PACKAGE__->set_primary_key("accountlines_id");
177 =head2 account_offsets_credits
181 Related object: L<Koha::Schema::Result::AccountOffset>
185 __PACKAGE__->has_many(
186 "account_offsets_credits",
187 "Koha::Schema::Result::AccountOffset",
188 { "foreign.credit_id" => "self.accountlines_id" },
189 { cascade_copy => 0, cascade_delete => 0 },
192 =head2 account_offsets_debits
196 Related object: L<Koha::Schema::Result::AccountOffset>
200 __PACKAGE__->has_many(
201 "account_offsets_debits",
202 "Koha::Schema::Result::AccountOffset",
203 { "foreign.debit_id" => "self.accountlines_id" },
204 { cascade_copy => 0, cascade_delete => 0 },
207 =head2 borrowernumber
211 Related object: L<Koha::Schema::Result::Borrower>
215 __PACKAGE__->belongs_to(
217 "Koha::Schema::Result::Borrower",
218 { borrowernumber => "borrowernumber" },
222 on_delete => "SET NULL",
223 on_update => "CASCADE",
231 Related object: L<Koha::Schema::Result::Branch>
235 __PACKAGE__->belongs_to(
237 "Koha::Schema::Result::Branch",
238 { branchcode => "branchcode" },
242 on_delete => "SET NULL",
243 on_update => "CASCADE",
251 Related object: L<Koha::Schema::Result::Item>
255 __PACKAGE__->belongs_to(
257 "Koha::Schema::Result::Item",
258 { itemnumber => "itemnumber" },
262 on_delete => "SET NULL",
263 on_update => "CASCADE",
271 Related object: L<Koha::Schema::Result::Borrower>
275 __PACKAGE__->belongs_to(
277 "Koha::Schema::Result::Borrower",
278 { borrowernumber => "manager_id" },
282 on_delete => "SET NULL",
283 on_update => "CASCADE",
288 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-17 17:00:42
289 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2NOxgVuaRQ+6oTqgYDqzBg
291 sub koha_objects_class {
292 'Koha::Account::Lines';
294 sub koha_object_class {
295 'Koha::Account::Line';