data_type: 'longtext'
is_nullable: 1
-=head2 accounttype
+=head2 credit_type_code
data_type: 'varchar'
+ is_foreign_key: 1
is_nullable: 1
size: 80
{ data_type => "decimal", is_nullable => 1, size => [28, 6] },
"description",
{ data_type => "longtext", is_nullable => 1 },
- "accounttype",
- { data_type => "varchar", is_nullable => 1, size => 80 },
+ "credit_type_code",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 80 },
"debit_type_code",
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 80 },
"status",
},
);
+=head2 credit_type_code
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::AccountCreditType>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "credit_type_code",
+ "Koha::Schema::Result::AccountCreditType",
+ { code => "credit_type_code" },
+ {
+ is_deferrable => 1,
+ join_type => "LEFT",
+ on_delete => "RESTRICT",
+ on_update => "CASCADE",
+ },
+);
+
=head2 debit_type_code
Type: belongs_to
{
is_deferrable => 1,
join_type => "LEFT",
- on_delete => "SET NULL",
+ on_delete => "RESTRICT",
on_update => "CASCADE",
},
);
);
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-11 11:36:33
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WZ2Mcd5gwQc69yDSEsJHGA
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-24 16:33:42
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q4Ahb8xIxAsjT/aF9yjrdQ
sub koha_objects_class {
'Koha::Account::Lines';