[POS-commit] r6375 - stoqlib/trunk/stoqlib/gui/wizards
fabio morbec
fabio at async.com.br
Mon Apr 16 15:44:47 BRT 2007
Author: fabio
Date: Mon Apr 16 15:44:46 2007
New Revision: 6375
Modified:
stoqlib/trunk/stoqlib/gui/wizards/abstractwizard.py
Log:
#3211: Deve ser possível escolher a quantidade de produtos antes de escolher o produto. r=jdahlin
Modified: stoqlib/trunk/stoqlib/gui/wizards/abstractwizard.py
==============================================================================
--- stoqlib/trunk/stoqlib/gui/wizards/abstractwizard.py (original)
+++ stoqlib/trunk/stoqlib/gui/wizards/abstractwizard.py Mon Apr 16 15:44:46 2007
@@ -254,6 +254,7 @@
def on_add_item_button__clicked(self, button):
self._add_item()
+ self.quantity.update(self.get_quantity())
def on_item__activate(self, combo):
self._get_sellable()
@@ -266,7 +267,7 @@
if not (item and self.item.get_text()):
self.proxy.set_model(None, relax_type=True)
return
- model = Settable(quantity=Decimal(1), cost=item.cost,
+ model = Settable(quantity=self.quantity.read(), cost=item.cost,
item=item)
self.proxy.set_model(model)
More information about the POS-commit
mailing list