Revision 45eb8765
Von Bernd Bleßmann vor mehr als 4 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
3268 | 3268 |
$self->{"employee_${_}"} = $defaults->$_ for qw(address businessnumber co_ustid company duns sepa_creditor_id taxnumber); |
3269 | 3269 |
} |
3270 | 3270 |
|
3271 |
# Load shipping address from database. If shipto_id is set then it's |
|
3272 |
# one from the customer's/vendor's master data. Otherwise look an a |
|
3273 |
# customized address linking back to the current record. |
|
3274 |
my $shipto_module = $self->{type} =~ /_delivery_order$/ ? 'DO' |
|
3275 |
: $self->{type} =~ /sales_order|sales_quotation|request_quotation|purchase_order/ ? 'OE' |
|
3276 |
: 'AR'; |
|
3277 |
my $shipto = $self->{shipto_id} ? SL::DB::Shipto->new(shipto_id => $self->{shipto_id})->load |
|
3278 |
: SL::DB::Manager::Shipto->get_first(where => [ module => $shipto_module, trans_id => $self->{id} ]); |
|
3279 |
if ($shipto) { |
|
3280 |
$self->{$_} = $shipto->$_ for grep { m{^shipto} } map { $_->name } @{ $shipto->meta->columns }; |
|
3281 |
$self->{"shiptocvar_" . $_->config->name} = $_->value_as_text for @{ $shipto->cvars_by_config }; |
|
3282 |
} |
|
3283 |
|
|
3284 | 3271 |
my $language = $self->{language} ? '_' . $self->{language} : ''; |
3285 | 3272 |
|
3286 | 3273 |
my ($language_tc, $output_numberformat, $output_dateformat, $output_longdates); |
Auch abrufbar als: Unified diff
Form::prepare_for_printing: Lieferadresse nicht mehr hier laden. …
Das passiert jetzt in FlattenToForm