Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6a7a7415

Von Tamino Steinert vor 6 Monaten hinzugefügt

  • ID 6a7a74155d8c676a57d8369c911d930e6709ab39
  • Vorgänger bb633bf5
  • Nachfolger 8378a566

ZUGFeRD: elektronische Adresse des Käufers

Feld BT-59 (Käufer E-Mail oder GLN)

Unterschiede anzeigen:

SL/DB/Helper/ZUGFeRD.pm
# </ram:PostalTradeAddress>
}
sub _buyer_communication {
my (%params) = @_;
my $customer = $params{customer};
my $buyer_electronic_address = first {$_} (
$customer->invoice_mail,
$customer->email,
);
if ($buyer_electronic_address) {
$params{xml}->startTag("ram:URIUniversalCommunication");
$params{xml}->dataElement("ram:URIID", _u8($buyer_electronic_address), schemeID => 'EM');
$params{xml}->endTag;
} elsif ($customer->gln) {
$params{xml}->startTag("ram:URIUniversalCommunication");
$params{xml}->dataElement("ram:URIID", _u8($customer->gln), schemeID => '0088');
$params{xml}->endTag;
}
}
sub _tax_rate_and_code {
my ($taxzone, $tax) = @_;
......
_buyer_contact_information($self, %params, contact => $self->contact) if ($self->cp_id);
_customer_postal_trade_address(%params, customer => $self->customer);
_buyer_communication(%params, customer => $self->customer);
_specified_tax_registration($self->customer->ustid, %params) if $self->customer->ustid;
$params{xml}->endTag;

Auch abrufbar als: Unified diff