form.AllowanceChargeAsDiscount nueva clase para descuentos

FossilOrigin-Name: 5b11ff93dff3a301628694c2a6e71940915aea8754a9eab3f35644bc669ddf87
This commit is contained in:
bit4bit
2020-12-02 18:10:29 +00:00
parent 48619106c5
commit e571009945
4 changed files with 21 additions and 3 deletions

View File

@@ -129,6 +129,11 @@ class FachoXML:
self.xpath_for = {}
self.extensions = []
@classmethod
def from_string(cls, document: str, namespaces: dict() = []) -> 'FachoXML':
xml = LXMLBuilder.from_string(document)
return FachoXML(xml, nsmap=namespaces)
def append_element(self, elem, new_elem):
#elem = self.find_or_create_element(xpath, append=append)
#self.builder.append(elem, new_elem)