forked from elmau/empresa-libre
Fix in unit in invoice
This commit is contained in:
parent
d57ded161c
commit
8872af8c50
|
@ -0,0 +1,2 @@
|
|||
[ ] Permitir más de un remolque en la Carta Porte
|
||||
[ ] Representación impresa de Comercio Exterior
|
|
@ -881,8 +881,6 @@ class LIBO(object):
|
|||
image = self._template.createInstance('com.sun.star.drawing.GraphicObjectShape')
|
||||
gp = self._create_instance('com.sun.star.graphic.GraphicProvider')
|
||||
pd.add(image)
|
||||
# ~ image.GraphicURL = data['path_cbb']
|
||||
# ~ properties = self._set_properties({'URL': self._path_url(data['path_cbb'])})
|
||||
|
||||
instance = 'com.sun.star.io.SequenceInputStream'
|
||||
stream = self._create_instance(instance)
|
||||
|
@ -891,11 +889,11 @@ class LIBO(object):
|
|||
image.Graphic = gp.queryGraphic(properties)
|
||||
|
||||
s = Size()
|
||||
s.Width = 4150
|
||||
s.Height = 4500
|
||||
s.Width = 4000
|
||||
s.Height = 4000
|
||||
image.setSize(s)
|
||||
image.Anchor = self._set_cell('{timbre.cbb}')
|
||||
# ~ _kill(data['path_cbb'])
|
||||
|
||||
return
|
||||
|
||||
def _donataria(self, data):
|
||||
|
|
|
@ -5737,13 +5737,12 @@ class Facturas(BaseModel):
|
|||
'NoIdentificacion': key,
|
||||
'Cantidad': FORMAT.format(row.cantidad),
|
||||
'ClaveUnidad': row.unidad,
|
||||
# ~ 'Unidad': SATUnidades.get(SATUnidades.key==row.unidad).name[:20],
|
||||
'Descripcion': row.descripcion,
|
||||
'ValorUnitario': frm_vu.format(row.valor_unitario),
|
||||
'Importe': FORMAT.format(row.importe),
|
||||
}
|
||||
if not is_global:
|
||||
concepto['Unidad'] = SATUnidades.get(SATUnidades.key==row.unidad).name[:20],
|
||||
concepto['Unidad'] = SATUnidades.get(SATUnidades.key==row.unidad).name[:20]
|
||||
|
||||
if row.descuento:
|
||||
concepto['Descuento'] = FORMAT.format(row.descuento)
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue