KI-AGENT: E-Rechnungen in der Belegvorbereitung verarbeiten
This commit is contained in:
@@ -39,14 +39,14 @@ const detectXmlSyntax = (xml: Buffer): ElectronicInvoiceSyntax | null => {
|
||||
}
|
||||
|
||||
if (
|
||||
/<Invoice(?:\s|>)/i.test(sample)
|
||||
/<(?:[A-Za-z_][\w.-]*:)?Invoice(?:\s|>)/i.test(sample)
|
||||
&& /urn:oasis:names:specification:ubl:schema:xsd:Invoice-2/i.test(sample)
|
||||
) {
|
||||
return "ubl-invoice"
|
||||
}
|
||||
|
||||
if (
|
||||
/<CreditNote(?:\s|>)/i.test(sample)
|
||||
/<(?:[A-Za-z_][\w.-]*:)?CreditNote(?:\s|>)/i.test(sample)
|
||||
&& /urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2/i.test(sample)
|
||||
) {
|
||||
return "ubl-credit-note"
|
||||
|
||||
Reference in New Issue
Block a user