Revision f9422f02
Von Werner Hahn vor 4 Monaten hinzugefügt
- ID f9422f02f97d4de7deca35c4de0758e5b006873e
- Vorgänger 48fa6dcc
| SL/XMLInvoice/Base.pm | ||
|---|---|---|
|
=cut
|
||
|
|
||
|
sub data_keys {
|
||
|
my $self = shift;
|
||
|
my @keys = (
|
||
|
'currency', # The bill's currency, such as "EUR"
|
||
|
'direct_debit', # Boolean: whether the bill will get paid by direct debit (1) or not (0)
|
||
| ... | ... | |
|
=cut
|
||
|
|
||
|
sub item_keys {
|
||
|
my $self = shift;
|
||
|
my @keys = (
|
||
|
'currency',
|
||
|
'description',
|
||
| ... | ... | |
|
die "Children of $self must implement a check_signature() method returning 1 for supported XML, 0 for unsupported XML.";
|
||
|
}
|
||
|
|
||
|
=item namespaces($dom)
|
||
|
|
||
|
This static method takes a DOM object and returns an ArrayofHashes[ data => localname ]. C<SL::XMLInvoice> uses this method to determine which ns is valid for wich data. All child classes must implement this method.
|
||
|
|
||
|
=cut
|
||
|
|
||
|
sub namespaces {
|
||
|
my $self = shift;
|
||
|
die "Children of $self must implement a namespaces() method returning an aoh with the namespaces";
|
||
|
}
|
||
|
|
||
|
=item supported()
|
||
|
|
||
|
This static method returns an array of free-form strings describing XML invoice
|
||
| ... | ... | |
|
=head1 AUTHOR
|
||
|
|
||
|
Johannes Grassler <info@computer-grassler.de>
|
||
|
Werner Hahn <wh@futureworldsearch.net>
|
||
|
|
||
|
=cut
|
||
|
|
||
Auch abrufbar als: Unified diff
XMLInvoice: gültige namespaces aus der xml holen ...
Die namespaces CrossIndustryInvoice, ReusableAggregateBusinessInformationEntity, UnqualifiedDataType
können beliebig sein und sind von ZUGfERD nicht festgelegt.
Deswegen werden die ns jetzt vorher ausgelesen.