[POS-commit] r7075 - stoq/trunk/stoq/gui/pos
fabio morbec
fabio at async.com.br
Fri Aug 3 11:39:59 BRT 2007
Author: fabio
Date: Fri Aug 3 11:39:59 2007
New Revision: 7075
Modified:
stoq/trunk/stoq/gui/pos/deliveryeditor.py
Log:
#3505: Não deve ser possível colocar valor negativo em uma entrega. r=jdahlin
Modified: stoq/trunk/stoq/gui/pos/deliveryeditor.py
==============================================================================
--- stoq/trunk/stoq/gui/pos/deliveryeditor.py (original)
+++ stoq/trunk/stoq/gui/pos/deliveryeditor.py Fri Aug 3 11:39:59 2007
@@ -132,6 +132,9 @@
if price == 0:
return ValidationError(
_("The Delivery cost must be more than 0."))
+ if price < 0:
+ return ValidationError(
+ _("The Delivery cost must be a positive value."))
def on_client__content_changed(self, combo):
client = combo.get_selected_data()
More information about the POS-commit
mailing list