Subversion Repositories SmartDukaan

Rev

Rev 9140 | Rev 9168 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9140 Rev 9141
Line 88... Line 88...
88
            elif 'brands' in args:
88
            elif 'brands' in args:
89
                catalog_client = CatalogClient().get_client()
89
                catalog_client = CatalogClient().get_client()
90
                brand = catalog_client.getItem(line.itemId).brand
90
                brand = catalog_client.getItem(line.itemId).brand
91
                if brand in args['brands']:
91
                if brand in args['brands']:
92
                    if type(args['brands'])==dict: 
92
                    if type(args['brands'])==dict: 
93
                        discount_value = args['categories'][brand]
93
                        discount_value = args['brands'][brand]
94
                        cart_has_specified_item = True
94
                        cart_has_specified_item = True
95
                    elif discountJ is not None:
95
                    elif discountJ is not None:
96
                        discount_value = discountJ 
96
                        discount_value = discountJ 
97
                        cart_has_specified_item = True
97
                        cart_has_specified_item = True
98
                else:
98
                else: