From 2cbd0263d57a62e36443b9180449a4d33450ff29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 10 Dec 2021 13:39:13 +0100 Subject: [PATCH] DeliveryOrder: TypeData aus SL::DB, nicht aus SL::Controller --- SL/DB/DeliveryOrder.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/DB/DeliveryOrder.pm b/SL/DB/DeliveryOrder.pm index 1633b1c94..03b35b300 100644 --- a/SL/DB/DeliveryOrder.pm +++ b/SL/DB/DeliveryOrder.pm @@ -17,7 +17,7 @@ use SL::DB::Helper::TransNumberGenerator; use SL::DB::Part; use SL::DB::Unit; -use SL::Controller::DeliveryOrder::TypeData; +use SL::DB::DeliveryOrder::TypeData qw(:types); use SL::Helper::Number qw(_format_total _round_total); @@ -326,13 +326,13 @@ sub new_from_time_recordings { # use type_data cusomtervendor and transfer direction instead sub is_sales { if ($_[0]->order_type) { - return SL::Controller::DeliveryOrder::TypeData::get3($_[0]->order_type, "properties", "is_customer"); + return SL::DB::DeliveryOrder::TypeData::get3($_[0]->order_type, "properties", "is_customer"); } return $_[0]{is_sales}; } sub customervendor { - SL::Controller::DeliveryOrder::TypeData::get3($_[0]->order_type, "properties", "is_customer") ? $_[0]->customer : $_[0]->vendor; + SL::DB::DeliveryOrder::TypeData::get3($_[0]->order_type, "properties", "is_customer") ? $_[0]->customer : $_[0]->vendor; } sub convert_to_invoice { -- 2.20.1