[POS-commit] r7456 - stoq/trunk/stoq/gui/pos

romaia at async.com.br romaia at async.com.br
Thu Feb 28 13:45:26 BRT 2008


Author: romaia
Date: Thu Feb 28 13:45:26 2008
New Revision: 7456

Log:
Bug 3565  Ao escolher a opção "Confirmar venda na aplicação de caixa" nada ocorre

Apenas tentar adicionar o item ao cupom se tiver um aberto.



Modified:
   stoq/trunk/stoq/gui/pos/pos.py

Modified: stoq/trunk/stoq/gui/pos/pos.py
==============================================================================
--- stoq/trunk/stoq/gui/pos/pos.py	(original)
+++ stoq/trunk/stoq/gui/pos/pos.py	Thu Feb 28 13:45:26 2008
@@ -206,7 +206,8 @@
         argument
         """
         if new_item:
-            if self._coupon_add_item(sale_item) == -1:
+            # Only add to the coupon if we really have one.
+            if self._coupon and self._coupon_add_item(sale_item) == -1:
                 return
             self.sale_items.append(sale_item)
         else:


More information about the POS-commit mailing list