forked from elmau/empresa-libre
commit
95503188d9
|
@ -939,6 +939,7 @@ def _comprobante(doc, options):
|
||||||
data = CaseInsensitiveDict(doc.attrib.copy())
|
data = CaseInsensitiveDict(doc.attrib.copy())
|
||||||
del data['certificado']
|
del data['certificado']
|
||||||
|
|
||||||
|
data['seriefolio'] = '{} - {}'.format(data['serie'], data['folio'])
|
||||||
data['totalenletras'] = to_letters(float(data['total']), data['moneda'])
|
data['totalenletras'] = to_letters(float(data['total']), data['moneda'])
|
||||||
if data['version'] == '3.3':
|
if data['version'] == '3.3':
|
||||||
tipos = {
|
tipos = {
|
||||||
|
|
|
@ -2770,6 +2770,7 @@ class PreFacturas(BaseModel):
|
||||||
|
|
||||||
data['es_pre'] = True
|
data['es_pre'] = True
|
||||||
data['cancelada'] = False
|
data['cancelada'] = False
|
||||||
|
data['donativo'] = obj['donativo']
|
||||||
|
|
||||||
tipos = {
|
tipos = {
|
||||||
'I': 'ingreso',
|
'I': 'ingreso',
|
||||||
|
@ -2820,6 +2821,9 @@ class PreFacturas(BaseModel):
|
||||||
data['totales']['taxlocales'] = taxes['taxlocales']
|
data['totales']['taxlocales'] = taxes['taxlocales']
|
||||||
data['timbre'] = {}
|
data['timbre'] = {}
|
||||||
|
|
||||||
|
data['donataria'] = {}
|
||||||
|
data['ine'] = {}
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -2827,7 +2831,7 @@ class PreFacturas(BaseModel):
|
||||||
obj = PreFacturas.get(PreFacturas.id==id)
|
obj = PreFacturas.get(PreFacturas.id==id)
|
||||||
name = '{}{}_{}.pdf'.format(obj.serie, obj.folio, obj.cliente.rfc)
|
name = '{}{}_{}.pdf'.format(obj.serie, obj.folio, obj.cliente.rfc)
|
||||||
data = cls._get_info_to_pdf(cls, id)
|
data = cls._get_info_to_pdf(cls, id)
|
||||||
doc = util.to_pdf(data)
|
doc = util.to_pdf(data, data['emisor']['rfc'])
|
||||||
return doc, name
|
return doc, name
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
"fontSize": 8, "alignment": 0, "textColor": "black",
|
"fontSize": 8, "alignment": 0, "textColor": "black",
|
||||||
"backColor": "white"}
|
"backColor": "white"}
|
||||||
},
|
},
|
||||||
"folio": {
|
"seriefolio": {
|
||||||
"rectangulo": {"x": 15.1, "y": 23.2, "width": 3.0, "height": 0.4,
|
"rectangulo": {"x": 15.1, "y": 23.2, "width": 3.0, "height": 0.4,
|
||||||
"radius": 0.0, "stroke": false, "fill": false},
|
"radius": 0.0, "stroke": false, "fill": false},
|
||||||
"estilo": {"name": "nombre", "fontName": "Helvetica-Bold",
|
"estilo": {"name": "nombre", "fontName": "Helvetica-Bold",
|
||||||
|
|
Loading…
Reference in New Issue