thanks again, both is work, i've tested it.

grand_total=sum(item.promotion_price*session.order[item.id] for item in 
*db(db.product.id.belongs(*session.order.keys())&(db.product.promotion_price>0)).select(db.product.id,db.product.promotion_price))
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to