projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1230932
)
DeliveryOrder: TypeData aus SL::DB, nicht aus SL::Controller
author
Sven Schöling
<s.schoeling@googlemail.com>
Fri, 10 Dec 2021 12:39:13 +0000
(13:39 +0100)
committer
Jan Büren
<jan@kivitendo.de>
Mon, 14 Feb 2022 14:02:19 +0000
(15:02 +0100)
SL/DB/DeliveryOrder.pm
patch
|
blob
|
history
diff --git
a/SL/DB/DeliveryOrder.pm
b/SL/DB/DeliveryOrder.pm
index
1633b1c
..
03b35b3
100644
(file)
--- 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::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);
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) {
# 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 {
}
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 {
}
sub convert_to_invoice {