Subversion Repositories SmartDukaan

Rev

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

Rev 14626 Rev 14648
Line 176... Line 176...
176
                    price = int(float(tdElements[2].text.strip().replace(",","")))
176
                    price = int(float(tdElements[2].text.strip().replace(",","")))
177
                    payOut = int(float(tdElements[6].text.strip().replace(",","")))
177
                    payOut = int(float(tdElements[6].text.strip().replace(",","")))
178
                    saleAmount = int(float(tdElements[4].text.strip().replace(",","")))
178
                    saleAmount = int(float(tdElements[4].text.strip().replace(",","")))
179
                    subTagId = tdElements[7].text.strip()
179
                    subTagId = tdElements[7].text.strip()
180
                    category = tdElements[1].text.strip()
180
                    category = tdElements[1].text.strip()
181
                    affiliateInfo = FlipkartAffiliateInfo(subTagId, syester5date, productCode, price, quantity, saleAmount, payOut, status, category) 
181
                    affiliateInfo = FlipkartAffiliateInfo(subTagId, syester5date, productCode, price, quantity, saleAmount, payOut, status, category)
-
 
182
                    affiliateInfo.productTitle =  tdElements[0].find('a').text
182
                    #updateMap['subOrders.$.unitPrice'] = price
183
                    #updateMap['subOrders.$.unitPrice'] = price
183
                    #updateMap['subOrders.$.cashBackAmount'], updateMap['subOrders.$.cashBacPercentage'] = self.getCashbackAmount(productCode, price)
184
                    #updateMap['subOrders.$.cashBackAmount'], updateMap['subOrders.$.cashBacPercentage'] = self.getCashbackAmount(productCode, price)
184
                    offers.append(affiliateInfo)
185
                    offers.append(affiliateInfo)
185
        self._saveToAffiliate(offers)
186
        self._saveToAffiliate(offers)
186
    
187