can you enter an issue for that too? http://code.google.com/p/getpaid/issues/list
Thanks! Lucie -- S i x F e e t U p , I n c . | http://www.sixfeetup.com Phone: +1 (317) 861-5948 x605 ANNOUNCING the first Plone Immersive Training Experience | Sept. 10-11-12, 2009 http://www.sixfeetup.com/immerse On Sat, Apr 18, 2009 at 4:51 PM, danielle davout <[email protected]> wrote: > > the condition if(settings.flatrate_option == "Percentage") seems wrong > should it not be > =="Flat Rate" ? > > def getCost( self, order ): > settings = self.settings > if(settings.flatrate_option == "Percentage"): > return self.settings.flat_rate > else: # we're calculating the percentage > items = filter( IShippableLineItem.providedBy, > order.shopping_cart.values() ) > cost = 0 > for item in items: > cost += item.cost > shipcost = cost * (settings.flatrate_percentage / 100) > if shipcost > settings.flatrate_max: > shipcost = settings.flatrate_max > return shipcost > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~---
