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:
325c539
)
SL::DB::DeliveryOrder: angepasste Lieferadressen richtig behandeln
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 6 Feb 2014 13:24:16 +0000
(14:24 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 24 Feb 2014 13:40:01 +0000
(14:40 +0100)
SL/DB/DeliveryOrder.pm
patch
|
blob
|
history
diff --git
a/SL/DB/DeliveryOrder.pm
b/SL/DB/DeliveryOrder.pm
index
8409c2b
..
cc4d930
100644
(file)
--- a/
SL/DB/DeliveryOrder.pm
+++ b/
SL/DB/DeliveryOrder.pm
@@
-106,9
+106,7
@@
sub new_from {
# save it, too.
my $custom_shipto;
if (!$source->shipto_id && $source->id) {
- require SL::DB::Shipto;
-
- my $old = SL::DB::Manager::Shipto->find_by(trans_id => $source->id);
+ my $old = $source->custom_shipto;
if ($old) {
$custom_shipto = SL::DB::Shipto->new(
map { +($_ => $old->$_) }
@@
-116,6
+114,7
@@
sub new_from {
map { $_->name }
@{ $old->meta->columns }
);
+ $custom_shipto->module('DO');
}
} else {