Agregar ubicaciones a representación impresa de Carta Porte
This commit is contained in:
parent
0498217b65
commit
88bb6d9411
|
@ -969,14 +969,14 @@ class LIBO(object):
|
|||
cell_5 = self._set_cell('{cp.Domicilio}', domicilio)
|
||||
|
||||
row = cell_1.CellAddress.Row + 1
|
||||
try:
|
||||
self._sheet.Rows.insertByIndex(row, count)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
# ~ self._copy_paste_rows(cell_1, count)
|
||||
# ~ row = cell_1.getCellAddress().Row
|
||||
# ~ else:
|
||||
# ~ cell_1 = self._set_cell(v=tipo, cell=cell_1)
|
||||
self._sheet.getRows().insertByIndex(row, count)
|
||||
self._copy_paste_rows(cell_1, count)
|
||||
else:
|
||||
cell_1 = self._set_cell(v=tipo, cell=cell_1)
|
||||
cell_2 = self._set_cell(v=nombre, cell=cell_2)
|
||||
cell_3 = self._set_cell(v=rfc, cell=cell_3)
|
||||
cell_4 = self._set_cell(v=fecha, cell=cell_4)
|
||||
cell_5 = self._set_cell(v=domicilio, cell=cell_5)
|
||||
|
||||
return
|
||||
|
||||
|
@ -1202,14 +1202,15 @@ class LIBO(object):
|
|||
self._nomina(data['nomina'])
|
||||
else:
|
||||
self._totales(data['totales'])
|
||||
self._timbre(data['timbre'])
|
||||
|
||||
self._donataria(data['donataria'])
|
||||
self._ine(data['ine'])
|
||||
|
||||
self._divisas(data.get('divisas', {}))
|
||||
self._leyendas(data.get('leyendas', ''))
|
||||
self._carta_porte(data.get('carta_porte', {}))
|
||||
|
||||
self._timbre(data['timbre'])
|
||||
|
||||
self._cancelado(data['cancelada'])
|
||||
self._others_values(data)
|
||||
self._clean()
|
||||
|
@ -1224,7 +1225,6 @@ class LIBO(object):
|
|||
def pdf(self, path, data, ods=False):
|
||||
options = {'AsTemplate': True, 'Hidden': True}
|
||||
log.debug('Abrir plantilla...')
|
||||
|
||||
self._template = self._doc_open(path, options)
|
||||
if self._template is None:
|
||||
return b''
|
||||
|
|
|
@ -4785,6 +4785,7 @@ class Facturas(BaseModel):
|
|||
|
||||
values = cls._get_not_in_xml(cls, obj, emisor)
|
||||
data = util.get_data_from_xml(obj, values)
|
||||
data.update(utils.CfdiToDict(obj.xml).values)
|
||||
doc = util.to_pdf(data, emisor.rfc, True)
|
||||
return doc, name
|
||||
|
||||
|
|
Loading…
Reference in New Issue