Vauxoo / cfdilib

Electronic document signature -- lib
http://cfdi.org
ISC License
5 stars 8 forks source link

Limit digits in template to moves #53

Closed luistorresm closed 7 years ago

luistorresm commented 7 years ago

If I have a movement with many digits I get the next error:

Element '{www.sat.gob.mx/esquemas/ContabilidadE/1_1/PolizasPeriodo}Transaccion', attribute 'Debe': [facet 'fractionDigits'] The value '74.1408' has more fractional digits than are allowed ('2')., line 21479

In v8 we have: Haber="{{ formatLang(float(line.credit), digits=2, grouping=False) }}"

@nhomar

What do you think about to use formatLang?

Regards