From 2656dbf745e27d316ee0b6e2b5ad3caf66b5aec3 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 1 Jul 2013 17:29:50 +0200 Subject: [PATCH] =?utf8?q?Nicht=20mehr=20ben=C3=B6tigte=20Rose-Models=20l?= =?utf8?q?=C3=B6schen:=20DptTrans,=20TranslationPaymentTerm?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Department.pm | 6 ++---- SL/DB/DptTrans.pm | 15 --------------- SL/DB/Helper/ALL.pm | 2 -- SL/DB/TranslationPaymentTerm.pm | 15 --------------- 4 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 SL/DB/DptTrans.pm delete mode 100644 SL/DB/TranslationPaymentTerm.pm 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; -- 2.20.1