Bug 23805: DBRev 19.06.00.044
[koha-ffzg.git] / Koha / Schema / Result / Accountline.pm
index 1561f99..1d455e6 100644 (file)
@@ -63,9 +63,10 @@ __PACKAGE__->table("accountlines");
   data_type: 'longtext'
   is_nullable: 1
 
-=head2 accounttype
+=head2 credit_type_code
 
   data_type: 'varchar'
+  is_foreign_key: 1
   is_nullable: 1
   size: 80
 
@@ -148,8 +149,8 @@ __PACKAGE__->add_columns(
   { 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",
@@ -261,6 +262,26 @@ __PACKAGE__->belongs_to(
   },
 );
 
+=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
@@ -342,8 +363,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-17 11:33:03
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5FjSicyeyUnnNh/pGs78zQ
+# 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';