Fix - PDF con varios productos

This commit is contained in:
Mauricio Baeza 2017-10-31 20:08:18 -06:00
parent c1f08305c9
commit 295f1c80c5
1 changed files with 17 additions and 0 deletions

View File

@ -673,6 +673,23 @@ class LIBO(object):
cell_4 = self._set_cell('{cantidad}', cantidad, value=True)
cell_5 = self._set_cell('{valorunitario}', valor_unitario, value=True)
cell_6 = self._set_cell('{importe}', importe, value=True)
else:
row = cell_2.getCellAddress().Row + 1
self._sheet.getRows().insertByIndex(row, 1)
if cell_1:
self._copy_cell(cell_1)
cell_1 = self._set_cell(v=key, cell=cell_1)
if cell_3:
self._copy_cell(cell_3)
cell_3 = self._set_cell(v=unidad, cell=cell_3)
self._copy_cell(cell_2)
self._copy_cell(cell_4)
self._copy_cell(cell_5)
self._copy_cell(cell_6)
cell_2 = self._set_cell(v=description, cell=cell_2)
cell_4 = self._set_cell(v=cantidad, cell=cell_4, value=True)
cell_5 = self._set_cell(v=valor_unitario, cell=cell_5, value=True)
cell_6 = self._set_cell(v=importe, cell=cell_6, value=True)
return
def _totales(self, data):