Sfoglia il codice sorgente

xmlns:schemaLocation deletion notation

marton levente 8 mesi fa
parent
commit
94fad4ded1
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      anafapi/anafoauth.py

+ 8 - 0
anafapi/anafoauth.py

@@ -113,6 +113,10 @@ class Efactoauth(Anafoauth):
             return resp.text
 
     def validate_invoice(self, fp, type_='FACT1'):
+        #
+        # xmlns:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2../../UBL-2.1(1)/xsd/maindoc/UBL-Invoice-2.1.xsd"
+        # must be deleted but why
+        #
         with open(fp, "r") as file:
             files = file.read()
             headers = {'Content-Type': 'text/plain'}
@@ -125,6 +129,10 @@ class Efactoauth(Anafoauth):
             return resp.json()
 
     def transform_to_pdf(self, fp, type_='FACT1', no_validation=False):
+        #
+        # xmlns:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2../../UBL-2.1(1)/xsd/maindoc/UBL-Invoice-2.1.xsd"
+        # must be deleted but why
+        #
         with open(fp, "r") as file:
             files = file.read()
             headers = {'Content-Type': 'text/plain'}