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'
116 __PACKAGE__->add_columns(
118 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
120 { data_type => "integer", is_nullable => 1 },
122 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
124 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
126 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
128 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
130 { data_type => "longtext", is_nullable => 1 },
132 { data_type => "varchar", is_nullable => 1, size => 5 },
134 { data_type => "varchar", is_nullable => 1, size => 80 },
136 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
138 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
141 data_type => "timestamp",
142 datetime_undef_if_invalid => 1,
143 default_value => \"current_timestamp",
147 { data_type => "mediumtext", is_nullable => 1 },
149 { data_type => "integer", is_nullable => 1 },
151 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
158 =item * L</accountlines_id>
164 __PACKAGE__->set_primary_key("accountlines_id");
168 =head2 account_offsets_credits
172 Related object: L<Koha::Schema::Result::AccountOffset>
176 __PACKAGE__->has_many(
177 "account_offsets_credits",
178 "Koha::Schema::Result::AccountOffset",
179 { "foreign.credit_id" => "self.accountlines_id" },
180 { cascade_copy => 0, cascade_delete => 0 },
183 =head2 account_offsets_debits
187 Related object: L<Koha::Schema::Result::AccountOffset>
191 __PACKAGE__->has_many(
192 "account_offsets_debits",
193 "Koha::Schema::Result::AccountOffset",
194 { "foreign.debit_id" => "self.accountlines_id" },
195 { cascade_copy => 0, cascade_delete => 0 },
198 =head2 borrowernumber
202 Related object: L<Koha::Schema::Result::Borrower>
206 __PACKAGE__->belongs_to(
208 "Koha::Schema::Result::Borrower",
209 { borrowernumber => "borrowernumber" },
213 on_delete => "SET NULL",
214 on_update => "CASCADE",
222 Related object: L<Koha::Schema::Result::Branch>
226 __PACKAGE__->belongs_to(
228 "Koha::Schema::Result::Branch",
229 { branchcode => "branchcode" },
233 on_delete => "SET NULL",
234 on_update => "CASCADE",
242 Related object: L<Koha::Schema::Result::Item>
246 __PACKAGE__->belongs_to(
248 "Koha::Schema::Result::Item",
249 { itemnumber => "itemnumber" },
253 on_delete => "SET NULL",
254 on_update => "SET NULL",
259 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-21 19:22:42
260 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hUtKezIBauLDzkRIq5ifTQ
262 sub koha_objects_class {
263 'Koha::Account::Lines';
265 sub koha_object_class {
266 'Koha::Account::Line';