Revision c6bdeb99
Von Moritz Bunkus vor fast 11 Jahren hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
106 | 106 |
# save it, too. |
107 | 107 |
my $custom_shipto; |
108 | 108 |
if (!$source->shipto_id && $source->id) { |
109 |
require SL::DB::Shipto; |
|
110 |
|
|
111 |
my $old = SL::DB::Manager::Shipto->find_by(trans_id => $source->id); |
|
109 |
my $old = $source->custom_shipto; |
|
112 | 110 |
if ($old) { |
113 | 111 |
$custom_shipto = SL::DB::Shipto->new( |
114 | 112 |
map { +($_ => $old->$_) } |
... | ... | |
116 | 114 |
map { $_->name } |
117 | 115 |
@{ $old->meta->columns } |
118 | 116 |
); |
117 |
$custom_shipto->module('DO'); |
|
119 | 118 |
} |
120 | 119 |
|
121 | 120 |
} else { |
Auch abrufbar als: Unified diff
SL::DB::DeliveryOrder: angepasste Lieferadressen richtig behandeln