2 package Koha::Schema::Result::CashRegisterAction;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::CashRegisterAction
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<cash_register_actions>
22 __PACKAGE__->table("cash_register_actions");
32 unique identifier for each account register action
40 action code denoting the type of action recorded (enum),
48 id of cash_register this action belongs to,
56 staff member performing the action
64 amount recorded in action (signed)
68 data_type: 'timestamp'
69 datetime_undef_if_invalid: 1
70 default_value: current_timestamp
75 __PACKAGE__->add_columns(
77 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
79 { data_type => "varchar", is_nullable => 0, size => 24 },
81 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
83 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
85 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
88 data_type => "timestamp",
89 datetime_undef_if_invalid => 1,
90 default_value => \"current_timestamp",
105 __PACKAGE__->set_primary_key("id");
113 Related object: L<Koha::Schema::Result::Borrower>
117 __PACKAGE__->belongs_to(
119 "Koha::Schema::Result::Borrower",
120 { borrowernumber => "manager_id" },
121 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
128 Related object: L<Koha::Schema::Result::CashRegister>
132 __PACKAGE__->belongs_to(
134 "Koha::Schema::Result::CashRegister",
135 { id => "register_id" },
136 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
140 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
141 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Fo6979mQEueJrDQw38Bh0w
143 sub koha_objects_class {
144 'Koha::Cash::Register::Actions';
147 sub koha_object_class {
148 'Koha::Cash::Register::Action';