This commit is contained in:
Mauricio Baeza 2018-10-04 17:52:50 -05:00
parent ae4c4b9355
commit 3cc85e2644
2 changed files with 5 additions and 4 deletions

View File

@ -40,8 +40,9 @@ from settings import log, DEBUG, VERSION, PATH_CP, COMPANIES, PRE, CURRENT_CFDI,
FORMAT = '{0:.2f}'
FORMAT3 = '{0:.3f}'
FORMAT_TAX = '{0:.4f}'
FORMAT_PRECIO = '{0:.4f}'
FORMAT4 = '{0:.4f}'
FORMAT_TAX = FORMAT4
FORMAT_PRECIO = FORMAT4
RFC_PUBLICO = 'XAXX010101000'
@ -5626,7 +5627,7 @@ class CfdiPagos(BaseModel):
r['IdDocumento'] = str(r['IdDocumento'])
r['Folio'] = str(r['Folio'])
r['NumParcialidad'] = str(r['NumParcialidad'])
r['TipoCambioDR'] = FORMAT.format(r['TipoCambioDR'])
r['TipoCambioDR'] = FORMAT4.format(r['TipoCambioDR'])
r['MetodoDePagoDR'] = DEFAULT_CFDIPAY['WAYPAY']
r['ImpSaldoAnt'] = FORMAT.format(r['ImpSaldoAnt'])
r['ImpPagado'] = FORMAT.format(r['ImpPagado'])

View File

@ -203,7 +203,7 @@ function format_currency2(value){
function format_currency4(value){
return '$ ' + format_decimal_2(value)
return '$ ' + format_decimal_4(value)
}