Remove modifi precition in decimal context
This commit is contained in:
parent
4aad1a94eb
commit
25e86cd28c
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from decimal import Decimal, getcontext
|
||||
getcontext().prec = 6
|
||||
# ~ getcontext().prec = 6
|
||||
|
||||
import lxml.etree as ET
|
||||
from requests.structures import CaseInsensitiveDict as CIDict
|
||||
|
|
|
@ -5049,7 +5049,9 @@ class Facturas(BaseModel):
|
|||
(total_trasladados or 0) - (total_retenciones or 0) \
|
||||
+ locales_traslados - locales_retenciones
|
||||
total = round(total, DECIMALES)
|
||||
# ~ exchange_rate = float(invoice.tipo_cambio)
|
||||
total_mn = round(total * invoice.tipo_cambio, DECIMALES)
|
||||
# ~ total_mn = round(total * exchange_rate, DECIMALES)
|
||||
data = {
|
||||
'subtotal': subtotal,
|
||||
'descuento': descuento_cfdi,
|
||||
|
|
Loading…
Reference in New Issue