[POS-commit] r5486 - stoqlib/trunk/stoqlib/lib
Johan Dahlin
jdahlin at async.com.br
Thu Dec 14 17:09:23 BRST 2006
Author: jdahlin
Date: Thu Dec 14 17:09:22 2006
New Revision: 5486
Modified:
stoqlib/trunk/stoqlib/lib/drivers.py
Log:
avoid map()
Modified: stoqlib/trunk/stoqlib/lib/drivers.py
==============================================================================
--- stoqlib/trunk/stoqlib/lib/drivers.py (original)
+++ stoqlib/trunk/stoqlib/lib/drivers.py Thu Dec 14 17:09:22 2006
@@ -231,7 +231,8 @@
coupon.identify_customer(sale.client.person)
if not coupon.open():
return False
- map(coupon.add_item, products)
+ for product in products:
+ coupon.add_item(product)
if not coupon.totalize():
return False
if not coupon.setup_payments():
More information about the POS-commit
mailing list