Subversion Repositories SmartDukaan

Rev

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

Rev 14864 Rev 14872
Line 255... Line 255...
255
        paymentDivs = prodDivs[2].findAll('div', recursive=False)
255
        paymentDivs = prodDivs[2].findAll('div', recursive=False)
256
        for paymentDiv in paymentDivs:
256
        for paymentDiv in paymentDivs:
257
            strPaymentDiv = str(paymentDiv)
257
            strPaymentDiv = str(paymentDiv)
258
            if "Unit Price" in strPaymentDiv:
258
            if "Unit Price" in strPaymentDiv:
259
                unitPrice = int(re.findall(r'\d+', strPaymentDiv)[0])
259
                unitPrice = int(re.findall(r'\d+', strPaymentDiv)[0])
260
            if "Offer Discount" in strPaymentDiv:
260
            elif "Offer Discount" in strPaymentDiv:
-
 
261
                offerDiscount += int(re.findall(r'\d+', strPaymentDiv)[0])
-
 
262
            elif "Discount" in strPaymentDiv:
261
                offerDiscount = int(re.findall(r'\d+', strPaymentDiv)[0])
263
                offerDiscount += int(re.findall(r'\d+', strPaymentDiv)[0])
262
            elif "SD Cash" in strPaymentDiv:
264
            elif "SD Cash" in strPaymentDiv:
263
                sdCash =   int(re.findall(r'\d+', strPaymentDiv)[0])
265
                sdCash =   int(re.findall(r'\d+', strPaymentDiv)[0])
264
            elif "Delivery Charges" in strPaymentDiv:
266
            elif "Delivery Charges" in strPaymentDiv:
265
                deliveryCharges =   int(re.findall(r'\d+', strPaymentDiv)[0])
267
                deliveryCharges =   int(re.findall(r'\d+', strPaymentDiv)[0])
266
            elif "Subtotal" in strPaymentDiv:
268
            elif "Subtotal" in strPaymentDiv: