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'
115 __PACKAGE__->add_columns(
117 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
119 { data_type => "integer", is_nullable => 1 },
121 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
123 { data_type => "smallint", default_value => 0, is_nullable => 0 },
125 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
127 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
129 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
131 { data_type => "longtext", is_nullable => 1 },
133 { data_type => "varchar", is_nullable => 1, size => 5 },
135 { data_type => "varchar", is_nullable => 1, size => 80 },
137 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
139 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
142 data_type => "timestamp",
143 datetime_undef_if_invalid => 1,
144 default_value => \"current_timestamp",
148 { data_type => "mediumtext", is_nullable => 1 },
150 { data_type => "integer", is_nullable => 1 },
157 =item * L</accountlines_id>
163 __PACKAGE__->set_primary_key("accountlines_id");
167 =head2 account_offsets_credits
171 Related object: L<Koha::Schema::Result::AccountOffset>
175 __PACKAGE__->has_many(
176 "account_offsets_credits",
177 "Koha::Schema::Result::AccountOffset",
178 { "foreign.credit_id" => "self.accountlines_id" },
179 { cascade_copy => 0, cascade_delete => 0 },
182 =head2 account_offsets_debits
186 Related object: L<Koha::Schema::Result::AccountOffset>
190 __PACKAGE__->has_many(
191 "account_offsets_debits",
192 "Koha::Schema::Result::AccountOffset",
193 { "foreign.debit_id" => "self.accountlines_id" },
194 { cascade_copy => 0, cascade_delete => 0 },
197 =head2 borrowernumber
201 Related object: L<Koha::Schema::Result::Borrower>
205 __PACKAGE__->belongs_to(
207 "Koha::Schema::Result::Borrower",
208 { borrowernumber => "borrowernumber" },
212 on_delete => "SET NULL",
213 on_update => "CASCADE",
221 Related object: L<Koha::Schema::Result::Item>
225 __PACKAGE__->belongs_to(
227 "Koha::Schema::Result::Item",
228 { itemnumber => "itemnumber" },
232 on_delete => "SET NULL",
233 on_update => "SET NULL",
238 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-12-19 16:19:16
239 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kvBIJshNRsm/HYJBbhm0IA
241 sub koha_objects_class {
242 'Koha::Account::Lines';
244 sub koha_object_class {
245 'Koha::Account::Line';