[Stoq-devel] [Bug 3163] - Error when paying using checks in
multiple installments
bugzilla-daemon at async.com.br
bugzilla-daemon at async.com.br
Fri Feb 9 12:31:47 BRST 2007
http://bugs.async.com.br/show_bug.cgi?id=3163
Johan Dahlin <jdahlin at async.com.br> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #3836|review?(jdahlin at async.com.br|review-
Flag|) |
--- Comment #3 from Johan Dahlin <jdahlin at async.com.br> 2007-02-09 12:31 BRT ---
(From update of attachment 3836)
>Index: stoqlib/gui/slaves/paymentslave.py
>+ def on_first_duedate__validate(self, widget, value):
>+ if value is None:
> return
Precisa mesmo, nunca vai receber None aqui.
>- if select_date < datetime.date.today():
>- proxy_date_entry.set_invalid(_("Expected first installment date must be set "
>- "to a future date"))
>+ if value < datetime.date.today():
>+ return ValidationError("Expected first installment date must be set "
>+ "to a future date")
Marca pra traduzação com _().
> self.update_view()
> self._refresh_next(False)
Não deve precisar esses dois.
More information about the Stoq-devel
mailing list