my ($self, %params) = @_;
$self->setup_zugferd_action_bar;
- $self->render('zugferd/form', title => $::locale->text('ZUGFeRD import'));
+ $self->render('zugferd/form', title => $::locale->text('Factur-X/ZUGFeRD import'));
}
sub action_import_zugferd {
if ($info->{result} != SL::ZUGFeRD::RES_OK()) {
# An error occurred; log message from parser:
$::lxdebug->message(LXDebug::DEBUG1(), "Could not extract ZUGFeRD data, error message: " . $info->{message});
- die t8("Could not extract ZUGFeRD data, data and error message:") . $info->{message};
+ die t8("Could not extract Factur-X/ZUGFeRD data, data and error message:") . $info->{message};
}
# valid ZUGFeRD metadata
my $dom = XML::LibXML->load_xml(string => $info->{invoice_xml});
# 1. check if ZUGFeRD SellerTradeParty has a VAT-ID
my $ustid = $dom->findnodes('//ram:SellerTradeParty/ram:SpecifiedTaxRegistration')->string_value;
- die t8("No VAT Info for this ZUGFeRD invoice," .
- " please ask your vendor to add this for his ZUGFeRD data.") unless $ustid;
+ die t8("No VAT Info for this Factur-X/ZUGFeRD invoice," .
+ " please ask your vendor to add this for his Factur-X/ZUGFeRD data.") unless $ustid;
$ustid = SL::VATIDNr->normalize($ustid);