Explorar el Código

limit notes to 1000 chars

marton levente hace 3 meses
padre
commit
578456958c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      anafapi/anafoauth.py

+ 1 - 0
anafapi/anafoauth.py

@@ -549,6 +549,7 @@ class Efactoauth(Anafoauth):
             notes_ = ''
         for line in invoice.lines:
             notes_ += ' ' + line.item_name
+            notes_ = notes_[:1000]
         post = client.add_invoice2(code_,  # ciel.partners.PARTNERS[invoice.seller_party.name]
                                    lines=document_lines,
                                    date=invoice.issue_date.strftime('%Y-%m-%d'),