2 package Koha
::Schema
::Result
::AqinvoiceAdjustment
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AqinvoiceAdjustment
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<aqinvoice_adjustments>
22 __PACKAGE__
->table("aqinvoice_adjustments");
52 data_type: 'mediumtext'
69 data_type: 'timestamp'
70 datetime_undef_if_invalid: 1
71 default_value: current_timestamp
76 __PACKAGE__
->add_columns(
78 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
80 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
82 { data_type
=> "decimal", is_nullable
=> 1, size
=> [28, 6] },
84 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
86 { data_type
=> "mediumtext", is_nullable
=> 1 },
88 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
90 { data_type
=> "smallint", default_value
=> 1, is_nullable
=> 0 },
93 data_type
=> "timestamp",
94 datetime_undef_if_invalid
=> 1,
95 default_value
=> \"current_timestamp
",
104 =item * L</adjustment_id>
110 __PACKAGE__->set_primary_key("adjustment_id
");
118 Related object: L<Koha::Schema::Result::Aqbudget>
122 __PACKAGE__->belongs_to(
124 "Koha
::Schema
::Result
::Aqbudget
",
125 { budget_id => "budget_id
" },
129 on_delete => "SET NULL
",
130 on_update => "CASCADE
",
138 Related object: L<Koha::Schema::Result::Aqinvoice>
142 __PACKAGE__->belongs_to(
144 "Koha
::Schema
::Result
::Aqinvoice
",
145 { invoiceid => "invoiceid
" },
146 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
150 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-19 17:32:57
151 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jl0qxkZWVs2D1pi3kaRjpg
153 sub koha_object_class {
154 'Koha::Acquisition::Invoice::Adjustment';
156 sub koha_objects_class {
157 'Koha::Acquisition::Invoice::Adjustments';