[Stoq-devel] [Bug 3387] Retirar o valor 0.01 do dialogo de
sangria/sumprimento.
bugzilla-daemon at async.com.br
bugzilla-daemon at async.com.br
Tue Jun 12 12:43:00 BRT 2007
http://bugs.async.com.br/show_bug.cgi?id=3387
Johan Dahlin <jdahlin at async.com.br> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #4161|review?(jdahlin at async.com.br|review-
Flag|) |
--- Comment #6 from Johan Dahlin <jdahlin at async.com.br> 2007-06-12 12:42:59 BRT ---
(From update of attachment 4161)
>Index: stoqlib/gui/editors/tilleditor.py
> def on_value__content_changed(self, entry):
>- value = self.model.get_balance() + self.model.value
>- self.proxy.update('balance', currency(value))
>+ try:
>+ if entry.read() <= (0, ValueUnset):
Isso tá errado, o comparação sempre vai returnar False
>+ value = self.model.get_balance()
>+ else:
>+ value = self.model.get_balance() + self.model.value
Tá duplicando codigo, é muito facil evitar isso né?
--
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