From: Moritz Bunkus Date: Mon, 1 Jul 2013 15:29:50 +0000 (+0200) Subject: Nicht mehr benötigte Rose-Models löschen: DptTrans, TranslationPaymentTerm X-Git-Tag: release-3.1.0beta1~240 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2656dbf745e27d316ee0b6e2b5ad3caf66b5aec3;p=kivitendo-erp.git Nicht mehr benötigte Rose-Models löschen: DptTrans, TranslationPaymentTerm --- diff --git a/SL/DB/Department.pm b/SL/DB/Department.pm index afca1900f..b00468c16 100644 --- a/SL/DB/Department.pm +++ b/SL/DB/Department.pm @@ -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 index d91681442..000000000 --- a/SL/DB/DptTrans.pm +++ /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; diff --git a/SL/DB/Helper/ALL.pm b/SL/DB/Helper/ALL.pm index 6bc06ca3a..9f4cf3856 100644 --- a/SL/DB/Helper/ALL.pm +++ b/SL/DB/Helper/ALL.pm @@ -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 index 04c450773..000000000 --- a/SL/DB/TranslationPaymentTerm.pm +++ /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;