[POS-commit] r7132 - stoq/trunk/stoq/gui/pos
fabio morbec
fabio at async.com.br
Tue Aug 21 09:47:51 BRT 2007
Author: fabio
Date: Tue Aug 21 09:47:51 2007
New Revision: 7132
Modified:
stoq/trunk/stoq/gui/pos/pos.py
Log:
#3404: É possível confirmar uma venda sem produtos, somente possuindo entrega. r=jdahlin
Modified: stoq/trunk/stoq/gui/pos/pos.py
==============================================================================
--- stoq/trunk/stoq/gui/pos/pos.py (original)
+++ stoq/trunk/stoq/gui/pos/pos.py Tue Aug 21 09:47:51 2007
@@ -283,6 +283,10 @@
IService(sale_item.sellable, None) and
sale_item.sellable != sysparam(self.conn).DELIVERY_SERVICE)
self.edit_item_button.set_sensitive(can_edit)
+ if (len(self.sale_items) == 1 and
+ self.sale_items[0].sellable == sysparam(self.conn).DELIVERY_SERVICE):
+ self.set_sensitive((self.checkout_button,
+ self.OrderCheckout), False)
self._update_totals()
self._update_add_button()
More information about the POS-commit
mailing list