forked from elmau/empresa-libre
Error #295
This commit is contained in:
parent
0465b684f0
commit
5ac614e079
|
@ -5369,7 +5369,13 @@ class FacturasPagos(BaseModel):
|
|||
fac = Facturas.get(Facturas.id==int(i))
|
||||
this_pay = values['this_pay']
|
||||
importe = values['importe']
|
||||
type_change = round(this_pay / importe, 6)
|
||||
type_change = round(1 / values['type_change'], 6)
|
||||
|
||||
validate = round(this_pay / type_change, 2)
|
||||
while validate > importe:
|
||||
type_change += 0.000001
|
||||
validate = round(this_pay / type_change, 2)
|
||||
|
||||
mov_ant, numero = cls._movimiento_anterior(cls, mov, fac)
|
||||
nuevo = {
|
||||
'movimiento': mov,
|
||||
|
|
Loading…
Reference in New Issue