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
58 datetime_undef_if_invalid: 1
84 =head2 amountoutstanding
98 data_type: 'timestamp'
99 datetime_undef_if_invalid: 1
100 default_value: current_timestamp
105 data_type: 'mediumtext'
122 __PACKAGE__->add_columns(
124 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
126 { data_type => "integer", is_nullable => 1 },
128 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
130 { data_type => "smallint", default_value => 0, is_nullable => 0 },
132 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
134 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
136 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
138 { data_type => "longtext", is_nullable => 1 },
140 { data_type => "varchar", is_nullable => 1, size => 5 },
142 { data_type => "varchar", is_nullable => 1, size => 80 },
144 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
146 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
149 data_type => "timestamp",
150 datetime_undef_if_invalid => 1,
151 default_value => \"current_timestamp",
155 { data_type => "mediumtext", is_nullable => 1 },
157 { data_type => "integer", is_nullable => 1 },
159 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
166 =item * L</accountlines_id>
172 __PACKAGE__->set_primary_key("accountlines_id");
176 =head2 account_offsets_credits
180 Related object: L<Koha::Schema::Result::AccountOffset>
184 __PACKAGE__->has_many(
185 "account_offsets_credits",
186 "Koha::Schema::Result::AccountOffset",
187 { "foreign.credit_id" => "self.accountlines_id" },
188 { cascade_copy => 0, cascade_delete => 0 },
191 =head2 account_offsets_debits
195 Related object: L<Koha::Schema::Result::AccountOffset>
199 __PACKAGE__->has_many(
200 "account_offsets_debits",
201 "Koha::Schema::Result::AccountOffset",
202 { "foreign.debit_id" => "self.accountlines_id" },
203 { cascade_copy => 0, cascade_delete => 0 },
206 =head2 borrowernumber
210 Related object: L<Koha::Schema::Result::Borrower>
214 __PACKAGE__->belongs_to(
216 "Koha::Schema::Result::Borrower",
217 { borrowernumber => "borrowernumber" },
221 on_delete => "SET NULL",
222 on_update => "CASCADE",
230 Related object: L<Koha::Schema::Result::Branch>
234 __PACKAGE__->belongs_to(
236 "Koha::Schema::Result::Branch",
237 { branchcode => "branchcode" },
241 on_delete => "SET NULL",
242 on_update => "CASCADE",
250 Related object: L<Koha::Schema::Result::Item>
254 __PACKAGE__->belongs_to(
256 "Koha::Schema::Result::Item",
257 { itemnumber => "itemnumber" },
261 on_delete => "SET NULL",
262 on_update => "SET NULL",
267 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-01-03 16:10:04
268 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BO7iSB+QzoJNuZ8Uttba6A
270 sub koha_objects_class {
271 'Koha::Account::Lines';
273 sub koha_object_class {
274 'Koha::Account::Line';