Nicht mehr benötigte Rose-Models löschen: DptTrans, TranslationPaymentTerm
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 1 Jul 2013 15:29:50 +0000 (17:29 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 1 Jul 2013 15:29:50 +0000 (17:29 +0200)
SL/DB/Department.pm
SL/DB/DptTrans.pm [deleted file]
SL/DB/Helper/ALL.pm
SL/DB/TranslationPaymentTerm.pm [deleted file]

index afca190..b00468c 100644 (file)
@@ -5,8 +5,6 @@ use strict;
 use SL::DB::MetaSetup::Department;
 use SL::DB::Manager::Department;
 
-use SL::DB::DptTrans;
-
 __PACKAGE__->meta->initialize;
 
 sub validate {
@@ -21,9 +19,9 @@ sub validate {
 sub is_used {
   my ($self) = @_;
 
+  # Since the removal of table dpt_trans no check is required here anymore.
   return undef if !$self->id;
-  my $is_used = SL::DB::Manager::DptTrans->find_by(department_id => $self->id);
-  return !!$is_used;
+  return 0;
 }
 
 1;
diff --git a/SL/DB/DptTrans.pm b/SL/DB/DptTrans.pm
deleted file mode 100644 (file)
index d916814..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file has been auto-generated only because it didn't exist.
-# Feel free to modify it at will; it will not be overwritten automatically.
-
-package SL::DB::DptTrans;
-
-use strict;
-
-use SL::DB::MetaSetup::DptTrans;
-
-__PACKAGE__->meta->initialize;
-
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
-
-1;
index 6bc06ca..9f4cf38 100644 (file)
@@ -36,7 +36,6 @@ use SL::DB::DeliveryOrder;
 use SL::DB::DeliveryOrderItem;
 use SL::DB::DeliveryOrderItemsStock;
 use SL::DB::Department;
-use SL::DB::DptTrans;
 use SL::DB::Draft;
 use SL::DB::Dunning;
 use SL::DB::DunningConfig;
@@ -82,7 +81,6 @@ use SL::DB::TaxZone;
 use SL::DB::TodoUserConfig;
 use SL::DB::TransferType;
 use SL::DB::Translation;
-use SL::DB::TranslationPaymentTerm;
 use SL::DB::Unit;
 use SL::DB::UnitsLanguage;
 use SL::DB::VC;
diff --git a/SL/DB/TranslationPaymentTerm.pm b/SL/DB/TranslationPaymentTerm.pm
deleted file mode 100644 (file)
index 04c4507..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file has been auto-generated only because it didn't exist.
-# Feel free to modify it at will; it will not be overwritten automatically.
-
-package SL::DB::TranslationPaymentTerm;
-
-use strict;
-
-use SL::DB::MetaSetup::TranslationPaymentTerm;
-
-__PACKAGE__->meta->initialize;
-
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
-
-1;