[Stoq-devel] [Bug 3568] Será necessário executar algumas mudanças na geração do arquivo ValidaPR

bugzilla-daemon at async.com.br bugzilla-daemon at async.com.br
Thu Nov 1 11:41:23 BRST 2007


http://bugs.async.com.br/show_bug.cgi?id=3568





--- Comment #6 from Fabio Morbec <fabio at async.com.br>  2007-11-01 11:41:22 BRT ---
> >Index: stoqlib/lib/sintegra.py
> 
> >+        product_code = "%0*d" % (14, product_code)
> >+        icms_aliquota = '%0*d' % (4, icms_aliquota)
> 
> Aqui use %014d, e %04d, por que o 4 e 14 são constantes.
Está da mesma forma em outras partes do sintegra.py. Ocorre o erro abaixo ao
fazer a mudança sugerida:

product_code = "%014d" % (14, product_code)
TypeError: not all arguments converted during string formatting


-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Stoq-devel mailing list