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
92 data_type: 'timestamp'
93 datetime_undef_if_invalid: 1
94 default_value: current_timestamp
99 data_type: 'mediumtext'
117 __PACKAGE__->add_columns(
119 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
121 { data_type => "integer", is_nullable => 1 },
123 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
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_foreign_key => 1, is_nullable => 1 },
152 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
159 =item * L</accountlines_id>
165 __PACKAGE__->set_primary_key("accountlines_id");
169 =head2 account_offsets_credits
173 Related object: L<Koha::Schema::Result::AccountOffset>
177 __PACKAGE__->has_many(
178 "account_offsets_credits",
179 "Koha::Schema::Result::AccountOffset",
180 { "foreign.credit_id" => "self.accountlines_id" },
181 { cascade_copy => 0, cascade_delete => 0 },
184 =head2 account_offsets_debits
188 Related object: L<Koha::Schema::Result::AccountOffset>
192 __PACKAGE__->has_many(
193 "account_offsets_debits",
194 "Koha::Schema::Result::AccountOffset",
195 { "foreign.debit_id" => "self.accountlines_id" },
196 { cascade_copy => 0, cascade_delete => 0 },
199 =head2 borrowernumber
203 Related object: L<Koha::Schema::Result::Borrower>
207 __PACKAGE__->belongs_to(
209 "Koha::Schema::Result::Borrower",
210 { borrowernumber => "borrowernumber" },
214 on_delete => "SET NULL",
215 on_update => "CASCADE",
223 Related object: L<Koha::Schema::Result::Branch>
227 __PACKAGE__->belongs_to(
229 "Koha::Schema::Result::Branch",
230 { branchcode => "branchcode" },
234 on_delete => "SET NULL",
235 on_update => "CASCADE",
243 Related object: L<Koha::Schema::Result::Item>
247 __PACKAGE__->belongs_to(
249 "Koha::Schema::Result::Item",
250 { itemnumber => "itemnumber" },
254 on_delete => "SET NULL",
255 on_update => "CASCADE",
263 Related object: L<Koha::Schema::Result::Borrower>
267 __PACKAGE__->belongs_to(
269 "Koha::Schema::Result::Borrower",
270 { borrowernumber => "manager_id" },
274 on_delete => "SET NULL",
275 on_update => "CASCADE",
280 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-03-22 20:06:37
281 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Op6tRrWF4pGrLcunNiXO+g
283 sub koha_objects_class {
284 'Koha::Account::Lines';
286 sub koha_object_class {
287 'Koha::Account::Line';